@@ -12,7 +12,6 @@ android {
1212 targetSdkVersion target_sdk_version
1313 versionCode 1
1414 versionName " 1.0.2"
15- testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
1615 }
1716 testOptions {
1817 unitTests. returnDefaultValues = true
@@ -23,6 +22,8 @@ android {
2322 minifyEnabled true
2423 debuggable false
2524 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' test-app-proguard-rules.pro'
25+ // Disable minification for Android tests to avoid missing class issues with mockito
26+ testProguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' test-app-proguard-rules.pro'
2627 }
2728 release {
2829 minifyEnabled true
@@ -77,25 +78,8 @@ dependencies {
7778 testImplementation " junit:junit:$junit_ver "
7879 testImplementation " org.mockito:mockito-core:$mockito_ver "
7980 testImplementation " com.noveogroup.android:android-logger:$android_logger_ver "
80- // testImplementation 'com.optimizely.ab:android-sdk:1.0.0'
8181 testImplementation project(' :android-sdk' )
8282
83- androidTestImplementation " androidx.work:work-testing:$work_runtime "
84- androidTestImplementation " androidx.test.ext:junit:$androidx_test_junit "
85- androidTestImplementation " androidx.test.espresso:espresso-core:$espresso_ver "
86- // Set this dependency to use JUnit 4 rules
87- androidTestImplementation " androidx.test:rules:$androidx_test_rules "
88- androidTestImplementation " androidx.test:core:$androidx_test_core "
89- androidTestImplementation " androidx.test:core-ktx:$androidx_test_core "
90-
91- androidTestImplementation " org.mockito:mockito-core:$mockito_ver "
92- androidTestImplementation " com.crittercism.dexmaker:dexmaker:$dexmaker_ver "
93- androidTestImplementation " com.crittercism.dexmaker:dexmaker-dx:$dexmaker_ver "
94- androidTestImplementation " com.crittercism.dexmaker:dexmaker-mockito:$dexmaker_ver "
95- // androidTestImplementation 'com.optimizely.ab:android-sdk:1.0.0'
96- androidTestImplementation project(' :android-sdk' )
97- androidTestImplementation project(path : ' :shared' )
98- androidTestImplementation " com.fasterxml.jackson.core:jackson-databind:$jacksonversion "
9983 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
10084}
10185
0 commit comments