@@ -15,27 +15,42 @@ dependencies {
1515 implementation(kotlin(" stdlib-jdk8" ))
1616 implementation(" androidx.annotation:annotation:1.4.0" )
1717 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion " )
18- implementation(" com.android.installreferrer:installreferrer:2.2" )
1918
2019 // --- optional dependencies -----
21- // Please note that the Branch SDK does not require any of the below optional dependencies to operate. This dependency is listed here so there will not be build errors,
22- // but the library is *not* added to your app unless you do so yourself. Please check the code in gradle-mvn-push script to see how this works
20+ // Please note that the Branch SDK does not require any of the below optional dependencies to operate.
21+ // Import these into your app to enable these features.
2322
23+ // Google Advertising ID
2424 compileOnly(" com.google.android.gms:play-services-ads-identifier:18.0.1" )
25- compileOnly( " com.huawei.hms:ads-installreferrer:3.4.39.302 " )
25+ // Huawei Open Advertising ID
2626 compileOnly(" com.huawei.hms:ads-identifier:3.4.62.300" )
27+
28+ // Google Play install referrer, included in the build
29+ implementation(" com.android.installreferrer:installreferrer:2.2" )
30+ // Huawei install referrer
31+ compileOnly(" com.huawei.hms:ads-installreferrer:3.4.39.302" )
32+ // Samsung install referrer
33+ compileOnly(" store.galaxy.samsung.installreferrer:samsung_galaxystore_install_referrer:4.0.0" )
34+ // Xiaomi install referrer
35+ compileOnly(" com.miui.referrer:homereferrer:1.0.0.7" )
36+
37+ // Google Play Billing library
2738 compileOnly(" com.android.billingclient:billing:6.0.1" )
2839
2940 androidTestImplementation(" androidx.test.ext:junit:1.1.5" )
3041 androidTestImplementation(" androidx.test:runner:1.5.2" )
3142 androidTestImplementation(" androidx.test:rules:1.5.0" )
3243 androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
3344 androidTestImplementation(" org.skyscreamer:jsonassert:1.5.0" )
34- androidTestImplementation( " org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion " )
45+ androidTestImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion " )
46+
3547 androidTestImplementation(" com.google.android.gms:play-services-ads-identifier:18.0.1" )
36- androidTestImplementation(" com.android.billingclient:billing:6.0.1" )
3748 androidTestImplementation(" com.huawei.hms:ads-identifier:3.4.62.300" )
49+ androidTestImplementation(" com.huawei.hms:ads-installreferrer:3.4.39.302" )
3850 androidTestImplementation(" com.huawei.hms:base:4.0.2.300" )
51+ androidTestImplementation(" com.android.billingclient:billing:6.0.1" )
52+ androidTestImplementation(" store.galaxy.samsung.installreferrer:samsung_galaxystore_install_referrer:4.0.0" )
53+ androidTestImplementation(" com.miui.referrer:homereferrer:1.0.0.7" )
3954
4055 testImplementation(" junit:junit:4.13.2" )
4156 testImplementation(" org.json:json:20230227" )
0 commit comments