Skip to content

Commit fee9503

Browse files
add test imports
1 parent 97f2453 commit fee9503

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Branch-SDK/build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ dependencies {
4545
// In app browser experience
4646
compileOnly("androidx.browser:browser:1.8.0")
4747

48-
4948
androidTestImplementation("androidx.test.ext:junit:1.1.5")
5049
androidTestImplementation("androidx.test:runner:1.5.2")
5150
androidTestImplementation("androidx.test:rules:1.5.0")
@@ -61,9 +60,22 @@ dependencies {
6160
androidTestImplementation("store.galaxy.samsung.installreferrer:samsung_galaxystore_install_referrer:4.0.0")
6261
androidTestImplementation("com.miui.referrer:homereferrer:1.0.0.7")
6362

64-
testImplementation("junit:junit:4.13.2")
6563
testImplementation("org.json:json:20230227")
6664
testImplementation("org.skyscreamer:jsonassert:1.5.0")
65+
66+
// For JUnit tests
67+
testImplementation ("junit:junit:4.13.2")
68+
// Mockito core library
69+
testImplementation("org.mockito:mockito-core:5.4.0")
70+
// Mockito Kotlin extensions
71+
testImplementation ("org.mockito.kotlin:mockito-kotlin:4.1.0")
72+
// For Android instrumented tests (if needed)
73+
androidTestImplementation ("org.mockito:mockito-android:4.11.0")
74+
75+
// Mockito needs these classes in the test class path
76+
testImplementation("androidx.browser:browser:1.8.0")
77+
testImplementation("com.android.billingclient:billing:6.0.1")
78+
6779
}
6880

6981
val VERSION_NAME: String by project

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import org.gradle.api.tasks.testing.logging.*
22

33
plugins {
4-
id("com.android.library") version "8.9.2" apply false
5-
id("com.android.application") version "8.9.2" apply false
4+
id("com.android.library") version "8.10.1" apply false
5+
id("com.android.application") version "8.10.1" apply false
66
id("org.jetbrains.kotlin.android") version "1.6.21" apply false
77
}
88

0 commit comments

Comments
 (0)