Vungle Mediation Guide - uc-union/union-ads-sdk-demo GitHub Wiki

Environment Setup

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.

AndroidStudio

  1. Add the following repositories info to project section in build.gradle file, more details in build.gradle
repositories {
    maven {
        url 'https://raw.githubusercontent.com/uc-union/union-ads-maven-repository/master'
    }
}
  1. Add dependencies dependency (usually defined in app/build.gradle), more details in app/build.gradle
dependencies {
    compile 'com.vungle:vungle-ads:3.3.4'
}
  1. 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>
  1. Add the following content to proguard.pro.
-keep class com.vungle.** { public *; }
-keep class javax.inject.*
-keepattributes *Annotation*
-keepattributes Signature
-keep class dagger.*

Eclipse

See Vungle SDK integration guide.

⚠️ **GitHub.com Fallback** ⚠️