Skip to main content

Build ProCONF React Native SDK artifacts/binaries

Prerequisites

Note: Building the apps / SDKs is supported on macOS and Linux, but not supported on Windows.

  • Make sure the following dependencies are installed:

    • watchman
    • nodejs
    • npm

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.json file.
  • 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/repo directory.
  • 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-level build.gradle file: Add pre-build SDK artifacts/binaries