|
|
@@ -1,5 +1,3 @@
|
|
|
-import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
-
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
RES_PATH = RES_PATH.replace("\\", "/")
|
|
|
@@ -10,7 +8,7 @@ android {
|
|
|
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
|
|
|
buildToolsVersion PROP_BUILD_TOOLS_VERSION
|
|
|
ndkPath PROP_NDK_PATH
|
|
|
- namespace APPLICATION_ID
|
|
|
+ namespace NAME_SPACE
|
|
|
|
|
|
compileOptions {
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
@@ -55,7 +53,7 @@ android {
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
|
- release {
|
|
|
+ release {
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE") && !RELEASE_STORE_FILE.isEmpty()) {
|
|
|
storeFile file(RELEASE_STORE_FILE)
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
@@ -76,7 +74,7 @@ android {
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
|
|
signingConfig signingConfigs.release
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
externalNativeBuild {
|
|
|
cmake {
|
|
|
// switch HIDE_SYMBOLS to OFF to skip compilation flag `-fvisibility=hidden`
|
|
|
@@ -88,6 +86,8 @@ android {
|
|
|
getIsDefault().set(true)
|
|
|
}
|
|
|
|
|
|
+ buildConfigField "String", "ATMOB_CENTRAL_APP_KEY", "\"$atmob_central_app_key\""
|
|
|
+ buildConfigField "String", "GRAVITY_ACCESS_TOKEN", "\"$gravity_access_token\""
|
|
|
}
|
|
|
|
|
|
debug {
|
|
|
@@ -96,13 +96,20 @@ 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\""
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ buildFeatures {
|
|
|
+ buildConfig = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
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')
|
|
|
@@ -110,4 +117,5 @@ 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"
|
|
|
}
|