apply plugin: 'com.android.library' 
 | 
  
 | 
android { 
 | 
  
 | 
    compileSdkVersion 27 
 | 
  
 | 
    defaultConfig { 
 | 
        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_sdgame { 
 | 
            dimension "default" 
 | 
            manifestPlaceholders.put("appId", "com.xjaz.sp") 
 | 
            manifestPlaceholders.put("JpushAppKey", "22186239fee975f883198cf4") 
 | 
            manifestPlaceholders.put("SUPERDREAM_APPID", "21") 
 | 
        } 
 | 
    } 
 | 
} 
 | 
  
 | 
dependencies { 
 | 
    implementation files('libs/alipaySdk-20170710.jar') 
 | 
    implementation files('libs/android-support-v4.jar') 
 | 
    implementation files('libs/bugly_crash_release.jar') 
 | 
    implementation files('libs/buglyagent.jar') 
 | 
    implementation files('libs/HeepayPlugin_v3.6.jar') 
 | 
    implementation files('libs/okhttp-3.9.0.jar') 
 | 
    implementation files('libs/okio-1.13.0.jar') 
 | 
    implementation files('libs/sdp_merchant_pay-1.0.2.jar') 
 | 
    implementation files('libs/superdream_6.0.0.jar') 
 | 
    implementation files('libs/tbs_sdk_thirdapp_v3.5.0.1004.jar') 
 | 
    implementation files('libs/TenpayServiceSDK.jar') 
 | 
    compileOnly files('libs/unity-classes.jar') 
 | 
    implementation files('libs/weiboSDKCore_3.1.4.jar') 
 | 
} 
 | 
  
 | 
task autoCopy_sdgame_Manifest(type: Copy) { 
 | 
    dependsOn 'assembleGame_sdgameRelease' 
 | 
    from zipTree("build/outputs/aar/sd_sdk-game_sdgame-release.aar") 
 | 
    include "AndroidManifest.xml" 
 | 
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\sdgame\\" 
 | 
} 
 | 
  
 | 
task autoCopy_sdgame(type: Copy) { 
 | 
    dependsOn autoCopy_sdgame_Manifest 
 | 
    from "build/outputs/aar/" 
 | 
    include "sd_sdk-game_sdgame-release.aar" 
 | 
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\sdgame\\libs\\" 
 | 
} 
 |