@@ -27,7 +27,7 @@ android {
2727 minSdkVersion 26
2828 targetSdkVersion 32
2929 versionCode 4
30- versionName " 2.0.5 "
30+ versionName " 2.0.6 "
3131 testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
3232 }
3333 buildTypes {
@@ -62,6 +62,7 @@ android {
6262 buildConfigField " String" , " RAR_PASSWORD" , ' ")(#$1HsD"'
6363 buildConfigField " String" , " API_VERSION" , ' "3"'
6464 resValue " string" , " release_tag" , " release/25.04"
65+ resValue " string" , " sentry_dsn" , " "
6566 }
6667
6768 productFlavors {
@@ -180,6 +181,13 @@ android {
180181 packagingOptions {
181182 exclude ' META-INF/DEPENDENCIES'
182183 }
184+
185+ testOptions {
186+ unitTests {
187+ includeAndroidResources = true
188+ returnDefaultValues = true
189+ }
190+ }
183191}
184192
185193apollo {
@@ -193,6 +201,13 @@ apollo {
193201 ]
194202}
195203
204+ tasks. withType(Test ). configureEach {
205+ testLogging {
206+ events " passed" , " skipped" , " failed"
207+ exceptionFormat " full"
208+ showStandardStreams = false
209+ }
210+ }
196211
197212// Apply custom flavours
198213if (file(' custom-flavours.gradle' ). exists()){
@@ -215,10 +230,15 @@ dependencies {
215230 implementation (' com.apollographql.apollo:apollo-android-support:2.5.14' ){
216231 because(" Apollo 3+ only works with Kotlin coroutines" )
217232 }
218- testImplementation ' junit:junit:4.12'
233+ testImplementation ' junit:junit:4.13.2'
234+ testImplementation ' org.mockito:mockito-core:5.5.0'
235+ testImplementation ' org.robolectric:robolectric:4.11.1'
236+ testImplementation ' androidx.test:core:1.5.0'
219237 androidTestImplementation ' androidx.test.ext:junit:1.1.5'
220238 androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1'
239+ androidTestImplementation ' androidx.test:core:1.5.0'
221240 implementation group : ' com.squareup.picasso' , name : ' picasso' , version : ' 2.71828'
222241 implementation group : ' net.lingala.zip4j' , name : ' zip4j' , version : ' 1.2.7'
242+ implementation ' io.sentry:sentry-android:8.25.0'
223243
224244}
0 commit comments