Preparation
To setup Android SDK correctly, you must complete the steps below.
General Requirements
The minimum requirements for the SDK are:
- minSdkVersion 21
- compileSdk 34
Compiled with Java 17, minimum Java Version should be 17 as follows.
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget=17
}
kotlin {
jvmToolchain(17)
}
Required Permissions
This SDK makes use of the devices Camera, Location and NFC permissions. If you don't want to use location service, please provide in init method.
You must have the folowing keys in your application's manifest file:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
ProGuard Rule Usage
- If you are using ProGuard in your application, you just need to add this line into your ProGuard Rules!
-keep class ai.amani** {*;}
-dontwarn ai.amani**
-keep class com.cloudwebrtc.webrtc.** { *; }
-keep class org.webrtc.** { *; }
## Installation
1. Add the following dependencies to your Module build.gradle file.
```groovy
implementation 'ai.amani.android:amanivideosdk:1.4.1'
- Enable view-binding in the Module build.gradle by adding this line into code block of android :
buildFeatures {
viewBinding true
}
- Add the following in the Project build.gradle within in buildscript within the buildscript->repositories and buildscript->allprojects.
maven { url "https://jfrog.amani.ai/artifactory/amani-video-sdk"}
You're now ready to use our SDK.