forked from upstream-mirrors/OpenTracks
Enabling Proguard to reduce APK size.
This commit is contained in:
@@ -2,5 +2,6 @@ syntax:glob
|
|||||||
|
|
||||||
*/bin
|
*/bin
|
||||||
*/gen/**
|
*/gen/**
|
||||||
|
*/proguard/**
|
||||||
.metadata
|
.metadata
|
||||||
MyTracksTest/annotations.log
|
MyTracksTest/annotations.log
|
||||||
|
|||||||
@@ -11,4 +11,5 @@
|
|||||||
split.density=false
|
split.density=false
|
||||||
# Project target.
|
# Project target.
|
||||||
target=Google Inc.:Google APIs:9
|
target=Google Inc.:Google APIs:9
|
||||||
|
proguard.config=proguard.cfg
|
||||||
android.library.reference.1=../MyTracksLib/
|
android.library.reference.1=../MyTracksLib/
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
-target 6
|
||||||
-optimizationpasses 5
|
-optimizationpasses 5
|
||||||
-dontusemixedcaseclassnames
|
-dontusemixedcaseclassnames
|
||||||
-dontskipnonpubliclibraryclasses
|
-dontskipnonpubliclibraryclasses
|
||||||
@@ -5,9 +6,18 @@
|
|||||||
-verbose
|
-verbose
|
||||||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
|
-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.**
|
||||||
|
|
||||||
|
# Keep everything android references from XMLs
|
||||||
-keep public class * extends android.app.Activity
|
-keep public class * extends android.app.Activity
|
||||||
-keep public class * extends android.app.Application
|
-keep public class * extends android.app.Application
|
||||||
-keep public class * extends android.app.Service
|
-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.BroadcastReceiver
|
||||||
-keep public class * extends android.content.ContentProvider
|
-keep public class * extends android.content.ContentProvider
|
||||||
-keep public class com.android.vending.licensing.ILicensingService
|
-keep public class com.android.vending.licensing.ILicensingService
|
||||||
|
|||||||
@@ -9,4 +9,5 @@
|
|||||||
|
|
||||||
# Project target.
|
# Project target.
|
||||||
target=Google Inc.:Google APIs:9
|
target=Google Inc.:Google APIs:9
|
||||||
|
proguard.config=proguard.cfg
|
||||||
android.library.reference.1=../MyTracksLib/
|
android.library.reference.1=../MyTracksLib/
|
||||||
|
|||||||
Reference in New Issue
Block a user