|
|
@@ -1,3 +1,5 @@
|
|
|
+import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
+
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
RES_PATH = RES_PATH.replace("\\", "/")
|
|
|
@@ -8,7 +10,7 @@ android {
|
|
|
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
|
|
|
buildToolsVersion PROP_BUILD_TOOLS_VERSION
|
|
|
ndkPath PROP_NDK_PATH
|
|
|
- namespace NAME_SPACE
|
|
|
+ namespace APPLICATION_ID
|
|
|
|
|
|
compileOptions {
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
@@ -20,7 +22,7 @@ android {
|
|
|
minSdkVersion PROP_MIN_SDK_VERSION
|
|
|
targetSdkVersion PROP_TARGET_SDK_VERSION
|
|
|
versionCode 1
|
|
|
- versionName "1.0.0"
|
|
|
+ versionName "1.0"
|
|
|
|
|
|
externalNativeBuild {
|
|
|
cmake {
|
|
|
@@ -53,7 +55,7 @@ android {
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
|
- release {
|
|
|
+ release {
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE") && !RELEASE_STORE_FILE.isEmpty()) {
|
|
|
storeFile file(RELEASE_STORE_FILE)
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
@@ -74,7 +76,7 @@ android {
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
|
|
signingConfig signingConfigs.release
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
externalNativeBuild {
|
|
|
cmake {
|
|
|
// switch HIDE_SYMBOLS to OFF to skip compilation flag `-fvisibility=hidden`
|
|
|
@@ -86,9 +88,6 @@ android {
|
|
|
getIsDefault().set(true)
|
|
|
}
|
|
|
|
|
|
- buildConfigField "String", "ATMOB_CENTRAL_APP_KEY", "\"$atmob_central_app_key\""
|
|
|
- buildConfigField "String", "GRAVITY_ACCESS_TOKEN", "\"$gravity_access_token\""
|
|
|
- buildConfigField "String", "TEST_CHANNEL", "\"$test_channel\""
|
|
|
}
|
|
|
|
|
|
debug {
|
|
|
@@ -97,28 +96,13 @@ android {
|
|
|
renderscriptDebuggable true
|
|
|
// resValue "string", "app_name", "${PROP_APP_NAME}-dbg"
|
|
|
// applicationIdSuffix ".debug"
|
|
|
-
|
|
|
- buildConfigField "String", "ATMOB_CENTRAL_APP_KEY", "\"$atmob_central_app_key\""
|
|
|
- buildConfigField "String", "GRAVITY_ACCESS_TOKEN", "\"$gravity_access_token\""
|
|
|
- buildConfigField "String", "TEST_CHANNEL", "\"$test_channel\""
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- buildFeatures {
|
|
|
- buildConfig = true
|
|
|
- }
|
|
|
-
|
|
|
- configurations.configureEach {
|
|
|
- resolutionStrategy {
|
|
|
- // don't cache changing modules at all
|
|
|
- cacheChangingModulesFor 10, 'seconds'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- implementation fileTree(dir: '../libs', include: ['*.jar', '*.aar'])
|
|
|
- implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
|
+ implementation fileTree(dir: '../libs', include: ['*.jar','*.aar'])
|
|
|
+ implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
|
|
|
implementation fileTree(dir: "${COCOS_ENGINE_PATH}/cocos/platform/android/java/libs", include: ['*.jar'])
|
|
|
implementation project(':libservice')
|
|
|
implementation project(':libcocos')
|
|
|
@@ -126,5 +110,4 @@ dependencies {
|
|
|
implementation 'com.google.android.libraries.play.games:inputmapping:1.1.0-beta'
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.10"
|
|
|
}
|
|
|
- implementation "atmob.central:cocos-bridge:0.0.1-SNAPSHOT"
|
|
|
}
|