

To prevent this, make sure to implement the Branch SDK in the launcher activity. If your app has multiple activities triggered by multiple intent filters with the same scheme, your app may run into a race condition when clicking on links that open the app (ex. You can read more about Single Task mode here. If the Activity exists in the background, every subsequent intent to the Activity just brings it to the foreground. The Single Task mode instantiates the Main/Splash Activity only if it does not exist in the Activity Stack.
#PROGUARD ANDROID STUDIO TUTORIAL INSTALL#
This dependency will add Install Referrer support on the Samsung Galaxy store Please reach out to your Xiaomi representative for additional details. This dependency will add Install Referrer support on the Xiaomi GetApps store. This dependency will add Install Referrer support on the Huawei AppGallery store and attribution using OAID. The Branch SDK supports Huawei devices without Google Mobile Services. gradle file enables and disables Proguard for release builds.


In Android Studio project, the minifyEnabled property in the build. Having Proguard run is completely optional, but highly recommended. Proguard runs only when you build your application in release mode.
#PROGUARD ANDROID STUDIO TUTORIAL UPDATE#
If you are using a version below 4.3.0, you must update your app's dependencies to include the Play Install Referrer Library. Proguard is integrated into the Android build system. Implementation ":play-services-ads-identifier:18.0.1"Īs of version 4.3.0, Google's Play Install Referrer Library is bundled into Branch Android SDK. Of the play-services-ads-identifier dependency or explicitly declare within the app's manifest file. In order for Branch to properly access the GAID value of a device, apps targeting Android 13+ will need to use the latest version Replace above with the line below if you do not support androidx Implementation 'androidx.browser:browser:1.0.0' Chrome Tab matching (enables 100% guaranteed matching based on cookies) implementation ':play-services-ads:17.2.0' alternatively, use the following lib for getting the AAID Implementation ':play-services-ads-identifier:17.1.0+' required if your app is in the Google Play Store (tip: avoid using bundled play services libs) ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' TestInstrumentationRunner ".AndroidJUnitRunner"
