Vungle Mediation Guide - uc-union/union-ads-sdk-demo GitHub Wiki
Require Android SDK level 14 or above. For there are still some bugs in the latest Vungle SDK (version 3.3.5),we have to integrate the version 3.3.4 instead.
- Add the following
repositories
info to project section inbuild.gradle
file, more details in build.gradle
repositories {
maven {
url 'https://raw.githubusercontent.com/uc-union/union-ads-maven-repository/master'
}
}
- Add
dependencies
dependency (usually defined inapp/build.gradle
), more details in app/build.gradle
dependencies {
compile 'com.vungle:vungle-ads:3.3.4'
}
- Add the following contents to
AndroidManifest.xml
, more details in AndroidManifest.xml.
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application>
<activity
android:name="com.vungle.publisher.FullScreenAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
</application>
- Add the following content to
proguard.pro
.
-keep class com.vungle.** { public *; }
-keep class javax.inject.*
-keepattributes *Annotation*
-keepattributes Signature
-keep class dagger.*