apply plugin: 'com.android.library'
|
|
android {
|
|
compileSdkVersion 26
|
|
defaultConfig {
|
//applicationId "com.secondworld.univeralsdk"
|
minSdkVersion 18
|
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_mrgame {
|
dimension "default"
|
manifestPlaceholders.put("appId", "com.ziyouyouxi08.snxxz")
|
manifestPlaceholders.put("JpushAppKey", "803d5cb73efe51a59968bf52")
|
manifestPlaceholders.put("Mr_ADID", "_2417")
|
manifestPlaceholders.put("Mr_PLATFORM", "_mrgame")
|
manifestPlaceholders.put("Mr_GAME_ID", "_498")
|
// manifestPlaceholders.put("Mr_GAME_ID", "_559")
|
}
|
}
|
}
|
|
dependencies {
|
implementation files('libs/android-support-v4.jar')
|
implementation files('libs/commonsdk-201806061118.jar')
|
implementation files('libs/mrgame-201806061118.jar')
|
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')
|
}
|
|
task autoCopy_mrgame_Manifest(type: Copy) {
|
dependsOn 'assembleGame_mrgameRelease'
|
from zipTree("build/outputs/aar/mr_sdk-game_mrgame-release.aar")
|
include "AndroidManifest.xml"
|
into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\mrgame\\"
|
}
|
|
task autoCopy_mrgame(type: Copy) {
|
dependsOn autoCopy_mrgame_Manifest
|
from "build/outputs/aar/"
|
include "mr_sdk-game_mrgame-release.aar"
|
into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\mrgame\\libs\\"
|
}
|