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' }