Build ProCONF React Native SDK artifacts/binaries
Prerequisites
-
It uses the React Native framework.
Note: Building the apps / SDKs is supported on macOS and Linux, but not supported on Windows.
-
Make sure the following dependencies are installed:
watchmannodejsnpm
Note: Node 20.x and npm 10.x are required. Any other version may result in runtime errors.
-
Make sure Android Studio is installed.
Set the JDK in Android Studio to at least Java 11
How to generate ProCONF React Native SDK artifacts/binaries
Follow below steps:
-
Step 1 - Extract
- Extract Proconf-react-native-SDk.zip
-
Step 2 - Navigate to the Project Directory
cd example/path/to/proconf-react-native-sdk -
Step 3 - Install npm
- execute
npm install - This will install all the packages listed in the
package.jsonfile.
- execute
-
Step 4 - Execute the SDK Release Script
- execute
./android/scripts/release-sdk.sh ./tmp/repo - This will generate the release of the SDK and output it to the
/tmp/repodirectory.
- execute
-
Step 5 - Use
- You're now ready to use the artifacts.
- In your project, add the Maven repository that you used above (
/tmp/repo) into your top-levelbuild.gradlefile: Add pre-build SDK artifacts/binaries