apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics' afterEvaluate { generateReleaseBuildConfig.enabled = false generateDebugBuildConfig.enabled =false } dependencies { implementation project(':tuanjieLibrary') } android { namespace "com.fort23.xy001" ndkPath "D:/tuanJieEditor/2022.3.48t1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" compileSdkVersion 33 buildToolsVersion '34.0.0' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } defaultConfig { minSdkVersion 22 targetSdkVersion 33 applicationId 'com.fort23.xy001' ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' } versionCode 1 versionName '1.0' multiDexEnabled true } aaptOptions { noCompress = ['.tj3d', '.ress', '.resource', '.obb', '.bundle', '.tuanjieexp'] + tuanjieStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" } signingConfigs { release { storeFile file('D:/unityProject/XY001/xy001.keystore') storePassword '' keyAlias 'com.fort23.xy001' keyPassword '' } } lintOptions { abortOnError false } buildTypes { debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt') signingConfig signingConfigs.release jniDebuggable true } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt') signingConfig signingConfigs.release } } packagingOptions { doNotStrip '*/armeabi-v7a/*.so' doNotStrip '*/arm64-v8a/*.so' jniLibs { useLegacyPackaging true } } bundle { language { enableSplit = false } density { enableSplit = false } abi { enableSplit = true } } task copyJsonFile { copy { delete("D:/unityProject/XY001/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/google-services.json") from('D:/unityProject/XY001/Assets/PottingMobileSDK/') into("D:/unityProject/XY001/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/") include("google-services.json") println "Copy google-services.json completed.--->> IL2CPP" } } preBuild.dependsOn copyJsonFile }