Bug 1245711 - Update Adjust proguard cfg to match docs. r=mfinkle draft
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 03 Feb 2016 16:49:30 -0800
changeset 328703 785c03fc92005c10e4e2fa3520ff90803b296713
parent 327786 c286d0dfe75578c79ed52e7e5ec06a642c812930
child 513852 e2c0ddcf74b95ff69d848973a357f4f83709c39c
push id10398
push usermichael.l.comella@gmail.com
push dateThu, 04 Feb 2016 00:49:57 +0000
reviewersmfinkle
bugs1245711
milestone47.0a1
Bug 1245711 - Update Adjust proguard cfg to match docs. r=mfinkle
mobile/android/config/proguard/adjust-keeps.cfg
--- a/mobile/android/config/proguard/adjust-keeps.cfg
+++ b/mobile/android/config/proguard/adjust-keeps.cfg
@@ -1,8 +1,20 @@
 # Rules to make the Adjust install tracking library work.
+# via https://github.com/adjust/android_sdk#5-add-permissions
 
-# Needed to keep some constants in the install tracking library.
--keep class com.adjust.sdk.** { *; }
-
-# Needed to keep some constants required for the install tracking library.
--keep class com.google.android.gms.common.** { *; }
--keep class com.google.android.gms.ads.identifier.** { *; }
+-keep class com.adjust.sdk.plugin.MacAddressUtil {
+    java.lang.String getMacAddress(android.content.Context);
+}
+-keep class com.adjust.sdk.plugin.AndroidIdUtil {
+    java.lang.String getAndroidId(android.content.Context);
+}
+-keep class com.google.android.gms.common.ConnectionResult {
+    int SUCCESS;
+}
+-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
+    com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
+        getAdvertisingIdInfo (android.content.Context);
+}
+-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
+    java.lang.String getId ();
+    boolean isLimitAdTrackingEnabled();
+}