diff --git a/manager/build.gradle.kts b/manager/build.gradle.kts index 586087d..8cecf82 100644 --- a/manager/build.gradle.kts +++ b/manager/build.gradle.kts @@ -1,3 +1,5 @@ +import com.android.build.gradle.BaseExtension + val androidCompileSdkVersion: Int by rootProject.extra val androidMinSdkVersion: Int by rootProject.extra val androidTargetSdkVersion: Int by rootProject.extra @@ -32,6 +34,7 @@ android { release { isMinifyEnabled = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + signingConfig = projects.app.dependencyProject.extensions.getByName("android").buildTypes["release"].signingConfig } } diff --git a/manager/proguard-rules.pro b/manager/proguard-rules.pro index 481bb43..5d42643 100644 --- a/manager/proguard-rules.pro +++ b/manager/proguard-rules.pro @@ -1,21 +1,5 @@ -# 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 com.beust.jcommander.** { *; } +-keep class org.lsposed.lspatch.Patcher$Options { *; } +-keepclassmembers class org.lsposed.patch.LSPatch { + private ; +}