154 lines
5.3 KiB
Groovy
154 lines
5.3 KiB
Groovy
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
//apply plugin: 'com.android.application'
|
|
plugins {
|
|
id 'com.android.application'
|
|
// Add the Google services Gradle plugin
|
|
id 'com.google.gms.google-services'
|
|
// Add the Crashlytics Gradle plugin
|
|
id 'com.google.firebase.crashlytics'
|
|
}
|
|
android {
|
|
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
|
|
buildToolsVersion PROP_BUILD_TOOLS_VERSION
|
|
assetPacks = [":UnityDataAssetPack"] //PAD资源分发
|
|
ndkVersion "21.3.6528147"
|
|
bundle {
|
|
language {
|
|
enableSplit = false
|
|
}
|
|
density {
|
|
enableSplit = false
|
|
}
|
|
abi {
|
|
enableSplit = true
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "com.cege.games.release"
|
|
minSdkVersion PROP_MIN_SDK_VERSION
|
|
targetSdkVersion PROP_TARGET_SDK_VERSION
|
|
versionCode 46
|
|
versionName "1.0.46"
|
|
|
|
manifestPlaceholders = [
|
|
'appAuthRedirectScheme': 'com.googleusercontent.apps.53206975661-asnf3qe4bg29p8h981pgf099osvrjbme'
|
|
]
|
|
}
|
|
|
|
sourceSets.main {
|
|
java.srcDirs "../src", "src"
|
|
res.srcDirs "../res", 'res'
|
|
jniLibs.srcDirs "../libs", 'libs'
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
}
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file("${rootDir}/keys/release")
|
|
storePassword '7654321'
|
|
keyAlias 'release'
|
|
keyPassword '7654321'
|
|
}
|
|
release {
|
|
storeFile file("${rootDir}/keys/release")
|
|
storePassword "7654321"
|
|
keyAlias "release"
|
|
keyPassword "7654321"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.debug
|
|
ndk {
|
|
abiFilters 'arm64-v8a'
|
|
}
|
|
}
|
|
release {
|
|
ndk {
|
|
abiFilters 'armeabi-v7a','arm64-v8a'
|
|
}
|
|
minifyEnabled false
|
|
signingConfig signingConfigs.release
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
firebaseCrashlytics {
|
|
// Enable processing and uploading of native symbols to Firebase servers.
|
|
// By default, this is disabled to improve build speeds.
|
|
// This flag must be enabled to see properly-symbolicated native
|
|
// stack traces in the Crashlytics dashboard.
|
|
nativeSymbolUploadEnabled true
|
|
strippedNativeLibsDir 'build/intermediates/stripped_native_libs/release/out/lib'
|
|
unstrippedNativeLibsDir 'build/intermediates/merged_native_libs/release/out/lib'
|
|
}
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
packagingOptions {
|
|
exclude("META-INF/DEPENDENCIES")
|
|
exclude("META-INF/LICENSE")
|
|
exclude("META-INF/LICENSE.txt")
|
|
exclude("META-INF/license.txt")
|
|
exclude("META-INF/NOTICE")
|
|
exclude("META-INF/NOTICE.txt")
|
|
exclude("META-INF/notice.txt")
|
|
exclude("META-INF/ASL2.0")
|
|
exclude("META-INF/*.kotlin_module")
|
|
}
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: '../libs', include: ['*.jar','*.aar'])
|
|
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
|
|
implementation project(':unityLibrary')
|
|
implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('\\libs'), include: ['*.jar'])
|
|
|
|
implementation "androidx.appcompat:appcompat:1.0.2"
|
|
implementation "androidx.biometric:biometric:1.1.0"
|
|
|
|
implementation 'com.google.android.gms:play-services-auth:21.2.0'
|
|
|
|
// implementation 'com.xm.permissions:XmPermissions:1.0.1'
|
|
implementation 'pub.devrel:easypermissions:3.0.0'
|
|
implementation 'com.github.jenly1314:zxing-lite:2.1.1'
|
|
implementation 'net.openid:appauth:0.11.1'
|
|
implementation "com.squareup.okio:okio:2.10.0"
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
implementation 'com.bytedance.ies.ugc.aweme:opensdk-oversea-external:0.2.1.0'
|
|
implementation 'com.google.android.play:core:1.10.3' //PAD资源分发
|
|
implementation 'com.facebook.android:facebook-core:latest.release'
|
|
implementation 'com.facebook.android:facebook-login:latest.release'
|
|
implementation 'com.facebook.android:facebook-share:latest.release'
|
|
implementation "com.squareup.okhttp3:okhttp:4.10.0"
|
|
// begin of firebase
|
|
implementation platform('com.google.firebase:firebase-bom:32.1.1')
|
|
implementation 'com.google.firebase:firebase-analytics'
|
|
implementation 'com.google.firebase:firebase-crashlytics-ndk'
|
|
implementation "org.greenrobot:eventbus:3.3.1"
|
|
// end of firebase
|
|
// google pay
|
|
implementation "com.android.billingclient:billing:6.0.1"
|
|
|
|
// google drive
|
|
implementation('com.google.api-client:google-api-client-android:2.2.0') {
|
|
exclude group: 'org.apache.httpcomponents'
|
|
exclude module: 'guava-jdk5'
|
|
}
|
|
implementation 'com.google.http-client:google-http-client-android:1.23.0'
|
|
implementation('com.google.apis:google-api-services-drive:v3-rev20230815-2.0.0') {
|
|
exclude group: 'org.apache.httpcomponents'
|
|
exclude module: 'guava-jdk5'
|
|
}
|
|
} |