mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 20:36:51 +01:00
Added a base set of Proguard rules in case optimization is enabled
This commit is contained in:
parent
0c09c29da4
commit
a773258f49
29
app/proguard-rules.pro
vendored
29
app/proguard-rules.pro
vendored
@ -9,9 +9,26 @@
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# 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 *;
|
||||
#}
|
||||
# Pebble BG-JS
|
||||
-keepclassmembers class * {
|
||||
@android.webkit.JavascriptInterface <methods>;
|
||||
}
|
||||
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.webview.JSInterface {
|
||||
public *;
|
||||
}
|
||||
-keepattributes JavascriptInterface
|
||||
|
||||
# https://github.com/tony19/logback-android/issues/29
|
||||
-dontwarn javax.mail.**, javax.naming.Context, javax.naming.InitialContext
|
||||
|
||||
# To avoid any stacktrace ambiguity
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# GreenDAO 2 - http://greenrobot.org/greendao/documentation/technical-faq/
|
||||
-keepclassmembers class * extends de.greenrobot.dao.AbstractDao {
|
||||
public static java.lang.String TABLENAME;
|
||||
}
|
||||
|
||||
-keep class **$Properties
|
||||
|
||||
-keep class **$Properties { *; }
|
Loading…
Reference in New Issue
Block a user