diff --git a/app/build.gradle b/app/build.gradle index c1a6876899..3b60c1a3ed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,12 +14,30 @@ android { versionName appVerName } + if (project.hasProperty('releaseStoreFile')) { + signingConfigs { + config { + storeFile = file(project.properties['releaseStoreFile']) + storePassword = project.properties['releaseStorePassword'] + keyAlias = project.properties['releaseKeyAlias'] + keyPassword = project.properties['releaseKeyPassword'] + } + } + } + buildTypes { + all { + if (project.hasProperty('releaseStoreFile')) { + signingConfig signingConfigs.config + } else { + println("using debug sign") + signingConfig signingConfigs.debug + } + } release { minifyEnabled true shrinkResources true proguardFiles 'proguard-rules.pro' - signingConfig signingConfigs.debug } } diff --git a/app/src/main/java/me/iacn/biliroaming/SettingDialog.kt b/app/src/main/java/me/iacn/biliroaming/SettingDialog.kt index b9d9c104d8..5ac82cc9ed 100644 --- a/app/src/main/java/me/iacn/biliroaming/SettingDialog.kt +++ b/app/src/main/java/me/iacn/biliroaming/SettingDialog.kt @@ -115,7 +115,6 @@ class SettingDialog(context: Context) : AlertDialog.Builder(context) { var supportAdd4K = false var supportMusicNotificationHook = true var supportDark = true - var supportAddChannel = false var supportCustomizeTab = true val supportFullSplash = try { instance.splashInfoClass?.getMethod("getMode") != null diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index c768c97974..0000000000 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - \ No newline at end of file