Files
an-ying-sai-che-shou/app/build.gradle
陈巨龙 13b5cd7f4b 8.18
2025-08-20 15:23:27 +08:00

103 lines
3.2 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 = "5730398"
// TTNative = "969319561"
// TTBanner = "969319562"
// TTReward = "969319669"
// TTDrawFeedAd = "969443442"
// TTSplashAd = "892369760"
// TTFullScreenVideo = "969443440"
// }
//
//
// GDTAdConfig {
// GDTAppId = "1211101695"
// GDTRewardId = "1199952030892702"
// GDTBannerId = "1109458071404410"
// GDTNativeId = "7159954061308134"
// }
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"
}
}