@@ -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,8 +118,8 @@ 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 "
121
+ def junit_version = " 4.13.2 "
122
+ def robolectric_version = " 4.7.3 "
124
123
def truth_version = " 1.1.2"
125
124
def androidxtest_version = " 1.1.0"
126
125
0 commit comments