Skip to content

Commit

Permalink
Merge pull request #188 from adjust/readme_proguard
Browse files Browse the repository at this point in the history
ProGuard flags
  • Loading branch information
uerceg committed Apr 20, 2016
2 parents 78423c4 + c878248 commit 381a380
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ If you are using Proguard, add these lines to your Proguard file:
int SUCCESS;
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
getAdvertisingIdInfo (android.content.Context);
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 ();
Expand All @@ -130,6 +129,13 @@ If you are *not* targeting the Google Play Store, you can remove the

![][proguard]

**Important**: If you are using an `-overloadaggressively` flag in
your Proguard file, then in order for the adjust SDK to work properly you should consider one
of two possible scenarios:

* Remove `-overloadaggressively` if it is not necessary
* Add a `-useuniqueclassmembernames` flag to your Proguard file

### <a id="broadcast_receiver"></a>6. Add broadcast receiver

In your `AndroidManifest.xml` add the following `receiver` tag inside the
Expand Down

0 comments on commit 381a380

Please sign in to comment.