| 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 { | 
|         game_jisugame { | 
|             dimension "default" | 
|             manifestPlaceholders.put("appId", "com.lingleigame.shaonianqixiachuan") | 
|             manifestPlaceholders.put("JpushAppKey", "803d5cb73efe51a59968bf52") | 
|             manifestPlaceholders.put("LL_APPID", "1073") | 
| //            manifestPlaceholders.put("Mr_GAME_ID", "_559") | 
|         } | 
|     } | 
| } | 
|   | 
| dependencies { | 
|     implementation files('libs/jcore-android-1.2.1.jar') | 
|     implementation files('libs/jpush-android-3.1.3.jar') | 
|     implementation files('libs/gson.jar') | 
|     implementation files('libs/okhttp.jar') | 
|     implementation files('libs/okio.jar') | 
|     compileOnly files('libs/unity-classes.jar') | 
|     implementation files('libs/bugly.jar') | 
|     implementation files('libs/buglyagent.jar') | 
|     implementation files('libs/lingleisdk-3.0.1.jar') | 
| } | 
|   | 
| task autoCopy_jisugame_Manifest(type: Copy) { | 
|     dependsOn 'assembleGame_jisugameRelease' | 
|     from zipTree("build/outputs/aar/js_sdk-game_jisugame-release.aar") | 
|     include "AndroidManifest.xml" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\jisugame\\" | 
| } | 
|   | 
| task autoCopy_jisugame(type: Copy) { | 
|     dependsOn autoCopy_jisugame_Manifest | 
|     from "build/outputs/aar/" | 
|     include "js_sdk-game_jisugame-release.aar" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\jisugame\\libs\\" | 
| } |