-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/BranchMetrics/android-bra…
…nch-deep-linking-attribution into gdeluna-branch/SDK-2025
- Loading branch information
Showing
6 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Branch-SDK/src/main/java/io/branch/referral/util/DependencyUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.branch.referral.util | ||
|
||
import io.branch.referral.PrefHelper | ||
|
||
fun classExists(className: String): Boolean { | ||
return try { | ||
Class.forName(className) | ||
true | ||
} catch (e: ClassNotFoundException) { | ||
PrefHelper.Debug("Could not find $className. If expected, import the dependency into your app.") | ||
false | ||
} | ||
} | ||
|
||
const val playStoreInstallReferrerClass = "com.android.installreferrer.api.InstallReferrerClient" | ||
|
||
const val playStoreAdvertisingIdClientClass = | ||
"com.google.android.gms.ads.identifier.AdvertisingIdClient" | ||
|
||
const val huaweiInstallReferrerClass = | ||
"com.huawei.hms.ads.installreferrer.api.InstallReferrerClient" | ||
|
||
const val galaxyStoreInstallReferrerClass = | ||
"com.sec.android.app.samsungapps.installreferrer.api.InstallReferrerClient" | ||
|
||
const val xiaomiInstallReferrerClass = "com.miui.referrer.api.GetAppsReferrerClient" | ||
|
||
const val billingGooglePlayClass = "com.android.billingclient.api.BillingClient" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters