IronSource - Android
Based on IronSource demo project: https://github.com/ironsource-mobile/Mediation-Demo-Apps you can check Nefta custom adapter integration example here: https://github.com/Nefta-io/NeftaISAdapter-Android.
Include the SDK
Gradle
Add the following repository to the settings.gradle:
dependencyResolutionManagement {
repositories {
...
maven { url 'https://maven.nefta.app/android-sdk' }
}
}Then add the libraries to your app build.gradle:
dependencies {
...
implementation 'com.nefta:nefta-sdk-is:4.3.0'
}Manually
If you want to integrate manually: https://docs.nefta.io/update/docs/manual-android-integration-1#/
Permissions
Add the following permissions to your project's AndroidManifest.xml if you don't have them already:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Code integration
You should initialize the SDK as soon as possible (for session tracking) with the following:
NeftaCustomAdapter.InitWithAppId(MainActivity.this, "5657497763315712", true, (InitConfiguration config) -> {
Log.i("NeftaPluginIS", "Nefta initialized nuid: " + config._nuid);
});Testing
You can enable logging with:
NeftaPlugin.EnableLogging(true);Updated 7 days ago