@@ -47,7 +47,7 @@ buildscript {
47
47
}
48
48
dependencies {
49
49
if (project == rootProject) {
50
- classpath ' com.android.tools.build:gradle:3.6.4 '
50
+ classpath ' com.android.tools.build:gradle:4.2.2 '
51
51
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$asyncStorageKtVersion "
52
52
}
53
53
}
@@ -80,7 +80,7 @@ android {
80
80
compileSdkVersion safeExtGet(' compileSdkVersion' , 31 )
81
81
defaultConfig {
82
82
minSdkVersion safeExtGet(' minSdkVersion' , 21 )
83
- targetSdkVersion safeExtGet(' targetSdkVersion' , 29 )
83
+ targetSdkVersion safeExtGet(' targetSdkVersion' , 31 )
84
84
buildConfigField " Long" , " AsyncStorage_db_size" , " ${ dbSizeInMB} L"
85
85
buildConfigField " boolean" , " AsyncStorage_useDedicatedExecutor" , " ${ useDedicatedExecutor} "
86
86
buildConfigField " boolean" , " AsyncStorage_useNextStorage" , " ${ useNextStorage} "
@@ -91,11 +91,10 @@ android {
91
91
92
92
if (useNextStorage) {
93
93
testOptions {
94
- unitTests. returnDefaultValues = true
95
- }
96
- compileOptions {
97
- sourceCompatibility JavaVersion . VERSION_1_8
98
- targetCompatibility JavaVersion . VERSION_1_8
94
+ unitTests {
95
+ returnDefaultValues = true
96
+ includeAndroidResources = true
97
+ }
99
98
}
100
99
}
101
100
}
@@ -119,10 +118,11 @@ dependencies {
119
118
// would add one automatically, probably a version that is not compatible with
120
119
// used kotlin
121
120
def kotlinReflect_version = project. ext. asyncStorageKtVersion
122
- def junit_version = " 4.12"
123
- def robolectric_version = " 4.5.1"
124
- def truth_version = " 1.1.2"
125
- def androidxtest_version = " 1.1.0"
121
+ def junit_version = " 4.13.2"
122
+ def robolectric_version = " 4.7.3"
123
+ def truth_version = " 1.1.3"
124
+ def androidxtest_version = " 1.4.0"
125
+ def androidtest_junit_version = " 1.1.3"
126
126
127
127
implementation " androidx.room:room-runtime:$room_version "
128
128
implementation " androidx.room:room-ktx:$room_version "
@@ -134,7 +134,7 @@ dependencies {
134
134
testImplementation " junit:junit:$junit_version "
135
135
testImplementation " androidx.test:runner:$androidxtest_version "
136
136
testImplementation " androidx.test:rules:$androidxtest_version "
137
- testImplementation " androidx.test.ext:junit:$a ndroidxtest_version "
137
+ testImplementation " androidx.test.ext:junit:$a ndroidtest_junit_version "
138
138
testImplementation " org.robolectric:robolectric:$robolectric_version "
139
139
testImplementation " com.google.truth:truth:$truth_version "
140
140
testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesTest_version "
0 commit comments