Android Studio development environment setup
For all brackets that have no parameters to fill in due to not using the corresponding function, please do not delete the fields, just keep the unchanged bracket content
1.1 Import ULUSDKAD library in moudle's build.gradle
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'//To ensure you get the latest library. This can be removed when build takes too long
}
dependencies {
implementation 'com.ulusdk.ad:ulusdkAd:【Please replace the brackets and the text in brackets with the latest ULUSDKAD version】-SNAPSHOT'
}
1.2 Config project's build.gradle
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jfrog.anythinktech.com/artifactory/android_sdk"
}
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea"
}
maven {
url "https://s01.oss.sonatype.org/content/groups/staging/"
}
maven {
url "https://artifact.bytedance.com/repository/pangle"
}
maven { url 'https://repo.ulugame.com/repository/maven-public'}
}
}
1.3 Config AndroidManifest.xml
<application>
<uses-library android:name="org.apache.http.legacy"
android:required="false"/>
<meta-data
android:name="com.google.android.gms.ads.AD_MANAGER_APP"
android:value="true" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="【Please replace the brackets and the text in brackets with the admob application id in the parameter table】"/>
<meta-data android:name="applovin.sdk.key"
android:value="【Please replace the brackets and the text in brackets with the applovin key in the parameter table】" />
</application>
1.4 Config res/values/strings.xml
<!-- ulusdkad environment sandbox:1 production:0 -->
<string name="ulu_ads_env">1</string>
<string name="topon_app_id">【Please replace the brackets and the text in brackets with the topon app id in the parameter table】</string>
<string name="topon_app_key">【Please replace the brackets and the text in brackets with the topon app key in the parameter table】</string>