plugins { id 'com.android.application' id 'com.reno.plugin.gradleX' version '1.0.0' } dependencies { compileOnly fileTree(dir: 'javaScaffolding', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) //Below you can custom your dependencies implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'com.alibaba:fastjson:1.1.54.android' } android { namespace 'com.dj.dpzzl.mi' compileSdkVersion 29 buildToolsVersion '30.0.1' compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { minSdkVersion 26 targetSdkVersion 30 applicationId 'com.dj.dpzzl.mi' externalNativeBuild { cmake { cppFlags "-std=c++11" } } ndk { abiFilters 'arm64-v8a' // you can make one only for dev to improve building speed } versionCode 119 versionName '1.0.0' multiDexEnabled true } aaptOptions { //TODO NOTE when you happen a asset file access problem you can try add pattern here noCompress = ['.unity3d', '.ress', '.resource', '.obb'] ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" } lintOptions { abortOnError false } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" version "3.22.1" } } ndkVersion '21.1.6352462' MiAdConfig { banner = "bade8048b8504c0dd00269a0d52978b0" interstitial = "f7f826ff4f92ea6cb4505219184d9f1c" fullInterstitial = "1f62333d25a9f88d275b95ed895575a7" templateA = "6021793606e1c70acc4c6e7d86c1b9e9" templateB = "09da82d6e3d09fd8eb69b94004f4ead8" templateC = "defa9154c6eb5be73370c23710a79845" templateD = "344e3940496a083dc9885a0477cfeef7" reward = "ab32e2c1739cce7b107d20dbf5084e04" } //测试 // TTAdConfig { // TTAppID = "5730713" // TTNative = "969361965" // TTBanner = "969361964" // TTReward = "969361966" // TTDrawFeedAd = "969361967" // TTSplashAd = "892343398" // TTFullScreenVideo = "969380516" // } TTAdConfig { TTAppID = "5738643" TTNative = "970340834" TTBanner = "970340854" TTReward = "970340941" TTDrawFeedAd = "970340969" TTSplashAd = "892651665" TTFullScreenVideo = "970340909" } GDTAdConfig { GDTAppId = "1211155694" GDTRewardId = "3270045232299012" GDTBannerId = "5250043232396650" GDTNativeId = "1220649202894238" } ext { // getAdConfig = true // refreshJavaScaffolding = true ad_strategy = "version4" gameActivity = "com.unity3d.player.UnityPlayerActivity" // checkDuplicateXmlAttributes = true // setPackageName = "com.dj.dpzzl.mi" // findStr = "com.mm.rzcf.mi" } }