Getting Started - uc-union/union-ads-sdk-demo GitHub Wiki

Set up the SDK

SDK requires Android SDK level 11 or above.

Android Studio / Gradle (Highly recommended)

If you employ Eclipse as the development environment, please go to Eclipse

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'
    }
}

Add dependencies dependency (usually defined in app/build.gradle), more details in app/build.gradle

dependencies {
    compile 'com.ucweb.union.ads:unionads:3.0.+'
}

Eclipse

Note: If you use Android Studio, you can skip this section.

  1. Download Union Ad SDK from HERE

  2. Decompress the aar file and get the following directory layout:

    unionads_xxx.aar
        |--(Directories)
        |--AndroidManifest.xml
        |--proguard.txt
        |--classes.jar
    
  3. Rename classes.jar to unionads.jar, and move it into libs directory.

  4. Merge AndroidManifest.xml into the one of developer's project.

  5. Merge proguard.txt into proguard.pro of the developer's project.

Next Steps

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