Files
SNFLauncherMain_AllWinner/app/build.gradle
冯新 646719c3fb 1.AppManager和SplashView处理图片断电重启无论多少次图片不显示而其原因为文件变回-tmp情况,广告位5s后刷新
2.DownLoadManeger 处理下载apk安装未完成重启无论多少次不安装情况
3.重命名系统概率不成功把重命名和删除文件操作分开间隔5s
2025-11-08 09:03:38 +08:00

105 lines
3.1 KiB
Groovy

apply plugin: 'com.android.application'
static def getManufacturer(){
return 'allwinner'
}
android {
namespace 'com.ik.mboxlauncher'
compileSdk 34
defaultConfig {
applicationId "com.droidlogic.mboxlauncher"
minSdkVersion 21
targetSdkVersion 34
multiDexEnabled true
versionCode 568888806
versionName "SNFLauncher-5.6.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "String", "MANUFACTURER", '"allwinner"'
buildConfigField "boolean", "LOG_ENABLED", "false"
buildConfigField "int", "NETWORK_TIMEOUT", "30"
buildConfigField "double", "PI_VALUE", "3.1415926535"
}
// RK方案 版本名3.5.0,版本号 3588880
// Allwinner方案 版本名5.5.0,版本号 5588880
signingConfigs {
release {
storeFile file("../app/platform.keystore")
storePassword 'android'
keyAlias 'platform'
keyPassword 'android'
}
debug {
storeFile file("../app/platform.keystore")
storePassword 'android'
keyAlias 'platform'
keyPassword 'android'
}
}
buildTypes {
release {
minifyEnabled false
// shrinkResources true
// 启用代码压缩(配合混淆,但此处可单独用于删除未使用类)
// minifyEnabled true
// 配置混淆文件(即使不混淆,也可用于定义保留规则)
// 启用Zipalign优化
// zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "app-${variant.buildType.name}-${variant.versionName}-${getManufacturer()}-${variant.versionCode}-${new Date().format('yyyyMMddHHmm')}.apk"
}
}
buildFeatures{
aidl = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
sourceSets {
main {
aidl {
srcDirs 'src/main/aidl'
}
}
}
buildFeatures {
buildConfig true
}
}
dependencies {
implementation fileTree(dir:"libs", includes:["*.aar"])
implementation 'com.github.bumptech.glide:glide:3.6.1'
implementation project(':mylibrary')
def media3_version = "1.3.1"
implementation "androidx.media3:media3-ui:$media3_version"
implementation "androidx.media3:media3-exoplayer:$media3_version"
// The library adds the IMA ExoPlayer integration for ads.
implementation "androidx.media3:media3-exoplayer-ima:$media3_version"
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.android.material:material:1.9.0'
//消息组件
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.google.android.gms:play-services-ads:20.3.0'
}