107 lines
3.0 KiB
Groovy
107 lines
3.0 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'])
|
|
//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.slxf.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.slxf.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 = "918a708a082d29213662adcf07c50ce4"
|
|
interstitial = "a896baf283cedfb20fcd112e89ddb86e"
|
|
fullInterstitial = "7529d22238e9b09bf643981b4c4a2aea"
|
|
templateA = "19277c09ff09a6488dc73874f033830d"
|
|
templateB = "24deeed099000568157cd6d88ef9e4fa"
|
|
templateC = "49864d58344cd7a2e6831bb905cd14db"
|
|
templateD = "4fbe085325ce4e6cb5951d3590388909"
|
|
reward = "384d03f15c7a4155e56a31150177eb95"
|
|
}
|
|
//测试
|
|
// TTAdConfig {
|
|
// TTAppID = "5730713"
|
|
// TTNative = "969361965"
|
|
// TTBanner = "969361964"
|
|
// TTReward = "969361966"
|
|
// TTDrawFeedAd = "969361967"
|
|
// TTSplashAd = "892343398"
|
|
// TTFullScreenVideo = "969380516"
|
|
// }
|
|
|
|
TTAdConfig {
|
|
TTAppID = "5735014"
|
|
TTNative = "969875615"
|
|
TTBanner = "969875616"
|
|
TTReward = "969875618"
|
|
TTDrawFeedAd = "969875619"
|
|
TTSplashAd = "892504014"
|
|
TTFullScreenVideo = "969875617"
|
|
}
|
|
|
|
|
|
GDTAdConfig {
|
|
GDTAppId = "1211121560"
|
|
GDTRewardId = "3169595527448143"
|
|
GDTBannerId = "5119298597441301"
|
|
GDTNativeId = "8119497507643262"
|
|
}
|
|
|
|
ext {
|
|
// getAdConfig = true
|
|
// refreshJavaScaffolding = true
|
|
ad_strategy = "version4"
|
|
gameActivity = "com.unity3d.player.UnityPlayerActivity"
|
|
// checkDuplicateXmlAttributes = true
|
|
// setPackageName = "com.dj.slxf.mi"
|
|
// findStr = "com.mm.rzcf.mi"
|
|
}
|
|
}
|