| apply plugin: 'com.android.library' | 
|   | 
| android { | 
|   | 
|     compileSdkVersion 26 | 
|   | 
|     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_ylgame { | 
|             dimension "default" | 
|             manifestPlaceholders.put("JpushAppKey", "de9e26bb35598bd8c602e1d9") | 
|             // -------------------------------------------------------------- | 
|             // 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("appId", "com.yiru.menhtj") //2.0 | 
|             manifestPlaceholders.put("TrackAppID", "34984be594b93353e6fd41d0b4f3b78d") // 2.0 | 
|             manifestPlaceholders.put("TT_AppName", "mhtj_new") // 2.0 | 
|             manifestPlaceholders.put("TT_AppID", "162325") // 2.0 | 
|             // -------------------------------------------------------------- | 
|             manifestPlaceholders.put("TrackChannelID", "_default_") | 
|             manifestPlaceholders.put("TT_Chanel", "_default_") | 
|   | 
|             manifestPlaceholders.put("WANCMS_APPID", "2") | 
|             manifestPlaceholders.put("WANCMS_GAMEID", "2") | 
|             manifestPlaceholders.put("WANCMS_AGENT", "cps001") | 
|             manifestPlaceholders.put("WANCMS_DEBUG", "1") | 
|             manifestPlaceholders.put("WX_APP_ID", "") | 
|             manifestPlaceholders.put("WX_APP_SECRET", "") | 
|         } | 
|     } | 
| } | 
|   | 
| repositories { | 
|     flatDir { | 
|         dirs 'libs' | 
|     } | 
| } | 
|   | 
| 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') | 
|     implementation files('libs/tracking1.3.0.jar') | 
|     compileOnly files('libs/unity-classes.jar') | 
|     implementation files('libs/bugly.jar') | 
|     implementation files('libs/buglyagent.jar') | 
|     // ---------------------------------------------------------- | 
|     implementation files('libs/xUtils-2.5.5.jar') | 
|     implementation files('libs/open_sdk_r5785.jar') | 
|     implementation files('libs/mta-sdk-1.6.2.jar') | 
|     implementation files('libs/libammsdk.jar') | 
|     implementation files('libs/aoyou_sdk1.0.jar') | 
|     implementation files('libs/android-support-v4.jar') | 
|     dependencies { | 
|         implementation(name: 'applog-release', ext: 'aar') | 
|     } | 
|     implementation files('libs/alipaySdk-20180403.jar') | 
| } | 
|   | 
| task autoCopy_ylgame_Manifest(type: Copy) { | 
|     dependsOn 'assembleGame_ylgameRelease' | 
|     from zipTree("build/outputs/aar/yl_sdk-game_ylgame-release.aar") | 
|     include "AndroidManifest.xml" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilegame\\" | 
| } | 
|   | 
| task autoCopy_ylgame(type: Copy) { | 
|     dependsOn autoCopy_ylgame_Manifest | 
|     from "build/outputs/aar/" | 
|     include "yl_sdk-game_ylgame-release.aar" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilegame\\libs\\" | 
| } | 
|   | 
|   | 
| task autoCopy_yilexbqy_Manifest(type: Copy) { | 
|     dependsOn 'assembleGame_ylgameRelease' | 
|     from zipTree("build/outputs/aar/yl_sdk-game_ylgame-release.aar") | 
|     include "AndroidManifest.xml" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilexbqy\\" | 
| } | 
|   | 
| task autoCopy_yilexbqy(type: Copy) { | 
|     dependsOn autoCopy_yilexbqy_Manifest | 
|     from "build/outputs/aar/" | 
|     include "yl_sdk-game_ylgame-release.aar" | 
|     into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilexbqy\\libs\\" | 
| } |