apply plugin: 'com.android.library' 
 | 
  
 | 
android { 
 | 
  
 | 
    compileSdkVersion 22 
 | 
  
 | 
    defaultConfig { 
 | 
        //applicationId "com.secondworld.univeralsdk" 
 | 
        minSdkVersion 16 
 | 
        targetSdkVersion 22 
 | 
        versionCode 1 
 | 
        versionName "1.1.0" 
 | 
    } 
 | 
  
 | 
    buildTypes { 
 | 
        release { 
 | 
            //混淆 
 | 
            minifyEnabled true 
 | 
            //对齐 
 | 
            zipAlignEnabled true 
 | 
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
 | 
  
 | 
        } 
 | 
    } 
 | 
  
 | 
    flavorDimensions "default" 
 | 
    productFlavors { 
 | 
        // 思璞SDK 
 | 
        game_spxjgame { 
 | 
            dimension "default" 
 | 
            manifestPlaceholders.put("appId", "com.xjaz.sp") 
 | 
            manifestPlaceholders.put("JpushAppKey", "22186239fee975f883198cf4") 
 | 
        } 
 | 
    } 
 | 
} 
 | 
  
 | 
dependencies { 
 | 
    implementation files('libs/android-support-v4.jar') 
 | 
    implementation files('libs/bugly.jar') 
 | 
    implementation files('libs/buglyagent.jar') 
 | 
    implementation files('libs/jcore-android-1.2.1.jar') 
 | 
    implementation files('libs/jpush-android-3.1.3.jar') 
 | 
    implementation files('libs/tracking1.3.0.jar') 
 | 
    compileOnly files('libs/unity-classes.jar') 
 | 
    implementation files('libs/org.apache.http.legacy.jar') 
 | 
    implementation files('libs/sp_common_lib.jar') 
 | 
    implementation files('libs/tbs_sdk_thirdapp.jar') 
 | 
    implementation files('libs/glidecompiler-4.6.1.jar') 
 | 
    implementation files('libs/applog.jar') 
 | 
    implementation 'org.greenrobot:greendao:3.2.2' 
 | 
    implementation 'org.freemarker:freemarker-gae:2.3.23' 
 | 
} 
 | 
  
 | 
task autoCopy_spxjgame_Manifest(type: Copy) { 
 | 
    dependsOn 'assembleGame_spxjgameRelease' 
 | 
    from zipTree("build/outputs/aar/sp_sdk-game_spxjgame-release.aar") 
 | 
    include "AndroidManifest.xml" 
 | 
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\spxjgame\\" 
 | 
} 
 | 
  
 | 
task autoCopy_spxjgame(type: Copy) { 
 | 
    dependsOn autoCopy_spxjgame_Manifest 
 | 
    from "build/outputs/aar/" 
 | 
    include "sp_sdk-game_spxjgame-release.aar" 
 | 
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\spxjgame\\libs\\" 
 | 
} 
 |