4. Integrate Bayun SDK
4.1 Bayun SDK integration in the Project
Create a folder named
Bayun
in your project and add theBayun.aar
file.
The Bayun SDK requires some dependencies that couldn't be included in the archive itself. For the SDK to work, these dependencies must be added by the app implementing the Bayun SDK. In the "build.gradle" file of the "app" module of your application, add the following code.
If your application uses Java and not Kotlin, you might need to also add another dependency that will form a bridge between the Kotlin dependencies of the SDK and your Java code.
If your application uses Java and Kotlin, you might need to also add
:Bayun
insetting.gradle
file
4.2 AndroidManifest.xml
The Bayun Android SDK requires some permissions and references from your app’s AndroidManifest.xml file. These permissions allow the SDK to monitor network state.
The Bayun Android SDK contains a service and an activity that must be declared in your app's AndroidManifest.xml file under
<application/>
section, for it to work.
Last updated
Was this helpful?