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.kbbqq.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.kbbqq.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 = "bcd511c535ecc305ae8443d3c70b563f" interstitial = "dd6f59af288e4a3d5f7f22e0b3b789d7" fullInterstitial = "d0761b9d3883ed45ba5f84d683dc0881" templateA = "6b89dc3a6bc52622171daa7e73c2a2a4" templateB = "c4ad88b956f007dd860ce7b7a153400a" templateC = "18e00ceb62cc8e9af4907a11f40a741c" templateD = "9f5a2c3ca6c9c816b3b9ebdff72f1474" reward = "d868d20d1615277780ae720f202ce140" } //测试 // TTAdConfig { // TTAppID = "5730713" // TTNative = "969361965" // TTBanner = "969361964" // TTReward = "969361966" // TTDrawFeedAd = "969361967" // TTSplashAd = "892343398" // TTFullScreenVideo = "969380516" // } TTAdConfig { TTAppID = "5738608" TTNative = "970331645" TTBanner = "970331647" TTReward = "970331652" TTDrawFeedAd = "970331653" TTSplashAd = "892648207" TTFullScreenVideo = "970331651" } GDTAdConfig { GDTAppId = "1211155513" GDTRewardId = "8280747171480094" GDTBannerId = "9280441101489115" GDTNativeId = "9280447141580121" } ext { // getAdConfig = true // refreshJavaScaffolding = true ad_strategy = "version4" gameActivity = "com.unity3d.player.UnityPlayerActivity" // checkDuplicateXmlAttributes = true // setPackageName = "com.dj.kbbqq.mi" // findStr = "com.mm.rzcf.mi" } }