apply plugin: 'com.android.library'
|
|
android {
|
compileSdkVersion 26
|
|
defaultConfig {
|
minSdkVersion 18
|
targetSdkVersion 26
|
versionCode 1
|
versionName "1.1.0"
|
}
|
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
}
|
}
|
|
flavorDimensions "default"
|
productFlavors {
|
game_yj {
|
dimension "default"
|
manifestPlaceholders.put("appId", "{0988C5A3-101098E5}")
|
// manifestPlaceholders.put("JpushAppKey", "22186239fee975f883198cf4")
|
}
|
}
|
}
|
|
repositories {
|
flatDir {
|
dirs 'libs'
|
}
|
}
|
|
dependencies {
|
implementation files('libs/ahelper.jar')
|
implementation files('libs/android-support-v4.jar')
|
implementation files('libs/bugly.jar')
|
implementation files('libs/buglyagent.jar')
|
implementation files('libs/gangaonlinehelper.jar')
|
implementation files('libs/gangaonlineyijie.jar')
|
implementation files('libs/jcore-android-1.2.1.jar')
|
implementation files('libs/jpush-android-3.1.3.jar')
|
implementation files('libs/tracking1.3.0.jar')
|
compileOnly files('libs/unity-classes.jar')
|
}
|
|
task autoCopy_yjgame_Manifest(type: Copy) {
|
dependsOn 'assembleGame_yjRelease'
|
from zipTree("build/outputs/aar/yj_sdk-game_yj-release.aar")
|
include "AndroidManifest.xml"
|
into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yjgame\\"
|
}
|
|
task autoCopy_yjgame(type: Copy) {
|
dependsOn autoCopy_yjgame_Manifest
|
from "build/outputs/aar/"
|
include "yj_sdk-game_yj-release.aar"
|
into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yjgame\\libs\\"
|
}
|