| apply plugin: 'com.android.library' | 
|   | 
| android { | 
|     compileSdkVersion 26 | 
|   | 
|     defaultConfig { | 
|         //applicationId "com.secondworld.univeralsdk" | 
|         minSdkVersion 19 | 
|         targetSdkVersion 26 | 
|         versionCode 1 | 
|         versionName "1.1.0" | 
|     } | 
|   | 
|     buildTypes { | 
|         release { | 
|             //混淆 | 
|             minifyEnabled true | 
|             //对齐 | 
|             zipAlignEnabled true | 
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | 
|   | 
|         } | 
|     } | 
|   | 
|     flavorDimensions "default" | 
|     productFlavors { | 
|         game_ky { | 
|             dimension "default" | 
|             // -------------------------------------------------------------- | 
|             // manifestPlaceholders.put("JpushAppKey", "de9e26bb35598bd8c602e1d9") //1.6 | 
|             // manifestPlaceholders.put("appId", "com.android.yiru.menghtj") //1.6 | 
|             // manifestPlaceholders.put("TrackAppID", "ffae98b68ba32b45a6d5fbd1203b9ae1") // 1.6 | 
|             // manifestPlaceholders.put("TT_AppName", "menghuantianjiao") // 1.6 | 
|             // manifestPlaceholders.put("TT_AppID", "155534") // 1.6 | 
|             // -------------------------------------------------------------- | 
|             manifestPlaceholders.put("JpushAppKey", "fde69694a5e00c2813740da3") // 2.0 | 
|             manifestPlaceholders.put("appId", "com.mhtj.mg") //2.0 | 
|             // -------------------------------------------------------------- | 
| //            <meta-data android:name="qd_code" android:value="32016"></meta-data> | 
| //            <meta-data android:name="XOPENSDK_APPKEY" android:value="323"></meta-data> | 
|             manifestPlaceholders.put("qd_code", "32016") | 
|             manifestPlaceholders.put("XOPENSDK_APPKEY", "323") | 
|         } | 
|     } | 
| } | 
|   | 
| dependencies { | 
|     implementation files('libs/base_mg.jar') | 
|     implementation files('libs/classes.jar') | 
|     implementation files('libs/ky_sdk_common.jar') | 
|     implementation files('libs/pay_mg.jar') | 
|     implementation files('libs/wftsdk3.3.jar') | 
|     implementation files('libs/okhttp.jar') | 
|     implementation files('libs/tracking1.3.0.jar') | 
|     implementation files('libs/android-support-v4.jar') | 
|     implementation files('libs/bugly.jar') | 
|     implementation files('libs/jcore-android-1.2.1.jar') | 
|     implementation files('libs/jpush-android-3.1.3.jar') | 
|     implementation files('libs/okio.jar') | 
|     implementation files('libs/gson.jar') | 
|     implementation files('libs/buglyagent.jar') | 
|     compileOnly files('libs/unity-classes.jar') | 
| } | 
|   | 
| task autoCopy_ky_Manifest(type: Copy) { | 
|     dependsOn 'assembleGame_kyRelease' | 
|     from zipTree("build/outputs/aar/ky_sdk-game_ky-release.aar") | 
|     include "AndroidManifest.xml" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\mgxbqy\\" | 
| } | 
|   | 
| task autoCopy_kygame(type: Copy) { | 
|     dependsOn autoCopy_ky_Manifest | 
|     from "build/outputs/aar/" | 
|     include "ky_sdk-game_ky-release.aar" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\mgxbqy\\libs\\" | 
| } |