diff --git a/README.md b/README.md index 85af702..8494489 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ 仅测试于`1.1.0`版本 +## 下载 + +https://github.com/Xposed-Modules-Repo/io.github.duzhaokun123.darkaischedule + ## 已知问题 - 登录失效 diff --git a/app/.gitignore b/app/.gitignore index 42afabf..956c004 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ -/build \ No newline at end of file +/build +/release \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 436f400..7b15f2c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,7 +19,8 @@ android { buildTypes { release { - isMinifyEnabled = false + isMinifyEnabled = true + isShrinkResources = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" @@ -34,6 +35,9 @@ android { jvmTarget = "11" languageVersion = "2.0" } + packaging { + resources.excludes.add("**") + } } dependencies { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..bbd26e9 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,21 +1 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +-keep class io.github.duzhaokun123.darkaischedule.XposedInit \ No newline at end of file