mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
76 lines
2.2 KiB
INI
76 lines
2.2 KiB
INI
-target 6
|
|
-optimizationpasses 5
|
|
-dontusemixedcaseclassnames
|
|
-dontskipnonpubliclibraryclasses
|
|
-dontpreverify
|
|
-verbose
|
|
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
|
|
|
|
# Add the libraries, but ignore warnings about them
|
|
-libraryjars libs
|
|
-libraryjars ../MyTracksLib/libs
|
|
-dontwarn com.google.android.googleapps.**
|
|
-dontwarn com.android.common.**
|
|
-dontwarn com.google.android.gsf.**
|
|
-dontwarn org.codehaus.**
|
|
-dontwarn com.google.appengine.**
|
|
-dontwarn org.apache.avalon.framework.logger.**
|
|
-dontwarn org.apache.log.**
|
|
-dontwarn org.apache.log4j.**
|
|
-dontwarn javax.servlet.**
|
|
|
|
# Make our stack traces useful
|
|
# Line numbers will be correct, file names will be replaced by "MT" since the
|
|
# class name is enough to get the file name.
|
|
-renamesourcefileattribute MT
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
# Keep everything android references from XMLs
|
|
-keep public class * extends android.app.Activity
|
|
-keep public class * extends android.app.Application
|
|
-keep public class * extends android.app.Service
|
|
-keep public class * extends android.app.backup.BackupAgent
|
|
-keep public class * extends android.content.BroadcastReceiver
|
|
-keep public class * extends android.content.ContentProvider
|
|
-keep public class * extends android.preference.Preference
|
|
-keep public class com.android.vending.licensing.ILicensingService
|
|
|
|
-keepclasseswithmembers class * {
|
|
native <methods>;
|
|
}
|
|
|
|
-keepclasseswithmembers class * {
|
|
public <init>(android.content.Context, android.util.AttributeSet);
|
|
}
|
|
|
|
-keepclasseswithmembers class * {
|
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
|
}
|
|
|
|
-keepclassmembers enum * {
|
|
public static **[] values();
|
|
public static ** valueOf(java.lang.String);
|
|
}
|
|
|
|
-keep class * implements android.os.Parcelable {
|
|
public static final android.os.Parcelable$Creator *;
|
|
}
|
|
|
|
# Needed by google-api-client to keep generic types and @Key annotations accessed via reflection
|
|
|
|
-keepclassmembers class * {
|
|
@com.google.api.client.util.Key <fields>;
|
|
}
|
|
|
|
-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault
|
|
|
|
# Needed by Guava
|
|
|
|
-dontwarn sun.misc.Unsafe
|
|
|
|
# Keep services needed by ANT+ protocol
|
|
-keep public class com.dsi.ant.IAnt_6
|
|
-keep public class com.dsi.ant.IAnt
|
|
-keep public class com.dsi.ant.IServiceSettings
|
|
|