From 3484f96373394eff0afe1cb332a48ef5a2e6b1b7 Mon Sep 17 00:00:00 2001 From: NekoInverter <7741672-NekoInverter@users.noreply.gitlab.com> Date: Mon, 25 Jan 2021 19:55:06 +0800 Subject: [PATCH] Update gradle files --- app/build.gradle | 40 ++++++++++++++++++++++++++++------------ build.gradle | 2 +- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2b0bc869..073a7629 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,9 +2,13 @@ apply plugin: 'com.android.application' apply plugin: 'com.google.android.gms.oss-licenses-plugin' android { + compileSdkVersion 30 + buildToolsVersion "30.0.3" + buildFeatures { viewBinding = true } + signingConfigs { def keystorePwd = null def alias = null @@ -23,25 +27,42 @@ android { keyPassword pwd != null ? pwd : System.getenv("ALIAS_PASS") } } - lintOptions { - disable 'MissingTranslation' - disable 'ExtraTranslation' - } - compileSdkVersion 30 - buildToolsVersion "30.0.2" + defaultConfig { applicationId "org.meowcat.edxposed.manager" minSdkVersion 26 targetSdkVersion 30 versionCode 458010 versionName "4.5.8.1" - signingConfig signingConfigs.release } + + compileOptions { + sourceCompatibility = 1.8 + targetCompatibility = 1.8 + } + + lintOptions { + disable 'MissingTranslation' + disable 'ExtraTranslation' + abortOnError true + checkReleaseBuilds true + } + + packagingOptions { + exclude 'META-INF/**' + exclude 'org/**' + exclude '**.properties' + exclude '**.bin' + } + + dependenciesInfo.includeInApk false + buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release } debug { minifyEnabled false @@ -49,11 +70,6 @@ android { signingConfig signingConfigs.release } } - compileOptions { - sourceCompatibility = 1.8 - targetCompatibility = 1.8 - } - applicationVariants.all { variant -> variant.outputs.all { output -> outputFileName = "EdXposedManagerR-${defaultConfig.versionName}-${defaultConfig.versionCode}-${buildType.name}.apk" diff --git a/build.gradle b/build.gradle index a39a416e..0f4a00fa 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.1.1' + classpath 'com.android.tools.build:gradle:4.1.2' classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2' // NOTE: Do not place your application dependencies here; they belong