The Bright SDK Unity Plugin is a Unity Editor extension designed to automate the process of integrating the Bright SDK into your Unity Android projects. This plugin handles downloading, updating, and extracting the Bright SDK, ensuring you have the latest version integrated into your project seamlessly.
- Automatic SDK Updates: Automatically fetches and updates the Bright SDK before building your Android project.
- Version Management: Supports fetching the latest SDK versions from the server.
- Clean Up: Removes obsolete SDK files to prevent conflicts and ensure a clean build environment.
- Extraction: Extracts the Bright SDK from a compressed file and places it in the appropriate directory.
Install SharpZipLib
- Select
Window > Package Manager. - Click the
+button in the top left corner. - Select
Add package by name.... - Enter
com.unity.sharp-zip-libas package name. - Click
Add.
- Select
Window > Package Manager. - Click the
+button in the top left corner. - Select
Add package from git URL.... - Enter
https://github.com/vladislavs-luminati/bright-sdk-unity-updater.git. - Click
Add.
- Select
Unity -> Quit - Open Unity project again from Unity Hub
The plugin runs automatically during the build process for Android projects.
- Open the Build Settings in Unity (File > Build Settings).
- Select Android as the platform.
- Click on Build or Build and Run.
- The plugin will execute the
OnPreprocessBuildmethod, which includes:- Fetching the latest Bright SDK versions.
- Downloading and extracting the latest SDK if necessary.
- Cleaning up obsolete SDK files.
You can customize the SDK version by modifying the sdkVersion variable in the packages/BrightSdkPreBuildProcessor/Editor/UpdateBrightSdk.cs. The plugin currently defaults to the latest version.
The plugin provides debug logs in the Unity Console, allowing you to track the process and identify any issues during the SDK update process.
- Unity 2019.4 or later (other versions can also be supported, but were not tested, feel free to report)
- Android Build Support installed in Unity
This project is licensed under the MIT License. See the LICENSE file for more information.
Contributions are welcome! Please fork this repository and submit a pull request if you would like to add features or improve the plugin.
For issues or support, please open an issue in this repository.