103 lines
3.1 KiB
Groovy
103 lines
3.1 KiB
Groovy
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'])
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
|
|
implementation 'com.alibaba:fastjson:1.1.54.android'
|
|
implementation "androidx.recyclerview:recyclerview:1.3.0"
|
|
// 也要确保 appcompat、cardview、constraintlayout 等 AndroidX 库版本一致
|
|
implementation "androidx.appcompat:appcompat:1.6.1"
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
|
|
}
|
|
|
|
android {
|
|
namespace 'com.mm.ayscs.mi'
|
|
compileSdkVersion 33
|
|
buildToolsVersion '30.0.1'
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
dexOptions {
|
|
incremental false // 禁用增量 dex 编译
|
|
preDexLibraries false // 禁用预编译库
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 26
|
|
targetSdkVersion 30
|
|
applicationId 'com.mm.ayscs.mi'
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags "-std=c++11"
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters 'arm64-v8a' // you can make one only for dev to improve building speed
|
|
}
|
|
versionCode 1
|
|
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.10.2"
|
|
}
|
|
}
|
|
|
|
|
|
TTAdConfig {
|
|
TTAppID = "5735159"
|
|
TTNative = "969900913"
|
|
TTBanner = "969900917"
|
|
TTReward = "969901122"
|
|
TTDrawFeedAd = "969901158"
|
|
TTSplashAd = "892511485"
|
|
TTFullScreenVideo = "969900955"
|
|
}
|
|
|
|
|
|
GDTAdConfig {
|
|
GDTAppId = "1211122856"
|
|
GDTRewardId = "5129098823630341"
|
|
GDTBannerId = "7139390803538679"
|
|
GDTNativeId = "7169893833736513"
|
|
}
|
|
|
|
|
|
MiAdConfig {
|
|
banner = "b441b7aeba83843af14f372eb935af3a"
|
|
interstitial = "3247f54075d9d8db22fb52b0c9393ab5"
|
|
fullInterstitial = "139ff644f5546244f5b3e6e14367e8e5"
|
|
templateA = "a65bc11cefafe386cf336d8382b2d045"
|
|
templateB = "dd2ae11a2d4b5c00108671b19ea76acf"
|
|
templateC = "9cfca1767b66b85e29656f81e960adb0"
|
|
templateD = "38f263b2a67ae8e30f6fecff394420cd"
|
|
reward = "499dd7b265d8bb04e2e89ab8a06d73a0"
|
|
}
|
|
ext {
|
|
// getAdConfig = true
|
|
// checkDuplicateXmlAttributes = true
|
|
// refreshJavaScaffolding = true
|
|
ad_strategy = "version4"
|
|
gameActivity = "com.yyxx.buin.activity.MyMainActivity"
|
|
// setPackageName = "com.mm.ayscs.mi"
|
|
}
|
|
}
|