Android Minimum Requirements
- Support with Arm64-v8a CPU instruction set
- Support with API level 27 and higher
1. Include AAR
Include AAR as a new module
- After creating a new project, go to New > New Module.
- Select Import .JAR/.AAR Package.
- Click Next.
- Select the AAR file (Binah's SDK) - (bnhhrlib.aar).
- Click Finish. The Subproject bnhhrlib is added to your project.
2. Create Dependencies
Create dependencies
- Open the build.gradle of your application.
- Under dependencies, add implementation project(':bnhhrlib').
- Under dependencies, add the following:
implementation 'com.appmattus.certificatetransparency:certificatetransparency-android:1.0.0'
- Open settings.gradle, and make sure the include ':bnhhrlib' is there. If it is not there, simply add it to the file.
The SDK is ready for implementations.
3. Configure C++ and NDK
Configure C++ and NDK
To enable your Android to work with our C++ native libraries, install an NDK that supports C++ 17.
- Install NDK version 20 and higher (Recommend: 20.1.5948944)
- Open Android Studio.
- Go to Tools > SDK Manager.
- In the Preferences for New Projects window, do the following:
- Select SDK Tools.
- Select the Show Package Details option.
- Scroll to NDK (Side by side), and select the correct NDK version (20.1.5948944)
- Click OK to begin the installation.
- When asked, click OK to confirm the changes.
The NDK installation begins.
Tip: Click Background to move this window to the background.
4. Start Implementation
Start implementation
- Open the MainActivity Java file and add import ai.binah.hrv.*;.
- When you start typing, an auto completion box opens, indicating the SDK was added.
5. Add Unique IDs
Add unique IDs for license management
- Create a Java file in the same location where the mainActivity is located, and name it LicenseDetails.java.
- Include one string for the license key as follows:
public static final String LICENSE_KEY = "XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX";
6. Configure Build/Deployment Configurations
Configure build/deployment configurations
Configure build/deployment configurations (default APK or APK from app bundle)
- Add the following line of code to the gradle.properties file
android.bundle.enableUncompressedNativeLibs=false
- Save the changes made to the file.
- Go to Run/Debug Configurations.
- Select app.
- Change Installation Options > Deploy from Default APK to APK from app bundle.
- Click OK.
- Run the Project on a real device to test the configuration.
Note
- Run the application on a real device to test (it does not work on an emulator)
- Google prefers publishing with the Android App Bundle on Google Play. To learn more, see about About Android App Bundles.
Comments
1 commentPlease sign in to leave a comment.
pressure gauge app for android