Skip to content

Commit

Permalink
bump version, move to ksp
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Borowy committed Nov 18, 2023
1 parent 006738a commit 8e6533f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions packages/default-storage-backend/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ buildscript {
? rootProject.ext['kotlinVersion']
: rootProject.hasProperty('AsyncStorage_kotlinVersion')
? rootProject.properties['AsyncStorage_kotlinVersion']
: '1.8.10'
: '1.9.20'

def kspVersion = rootProject.hasProperty("AsyncStorage_next_kspVersion")
? rootProject.properties["AsyncStorage_next_kspVersion"]
: '1.9.20-1.0.14'

repositories {
mavenCentral()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$asyncStorageKtVersion"
classpath "com.google.devtools.ksp:symbol-processing-gradle-plugin:$kspVersion"
}
}

Expand All @@ -76,8 +81,8 @@ def useNextStorage = getFlagOrDefault("AsyncStorage_useNextStorage", false)

apply plugin: 'com.android.library'
if (useNextStorage) {
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: './testresults.gradle'
}

Expand Down Expand Up @@ -153,12 +158,7 @@ dependencies {

if (useNextStorage) {
def room_version = getVersionOrDefault('AsyncStorage_next_roomVersion', '2.4.3')
def coroutines_version = "1.6.4"
def coroutinesTest_version = "1.6.4"
// if we don't provide explicit dependency on reflection, kotlin plugin
// would add one automatically, probably a version that is not compatible with
// used kotlin
def kotlinReflect_version = project.ext.asyncStorageKtVersion
def coroutines_version = "1.7.3"
def junit_version = "4.13.2"
def robolectric_version = "4.7.3"
def truth_version = "1.1.3"
Expand All @@ -167,18 +167,17 @@ dependencies {

implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinReflect_version"
ksp "androidx.room:room-compiler:$room_version"

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
kapt "androidx.room:room-compiler:$room_version"

testImplementation "junit:junit:$junit_version"
testImplementation "androidx.test:runner:$androidxtest_version"
testImplementation "androidx.test:rules:$androidxtest_version"
testImplementation "androidx.test.ext:junit:$androidtest_junit_version"
testImplementation "org.robolectric:robolectric:$robolectric_version"
testImplementation "com.google.truth:truth:$truth_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesTest_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
}

implementation 'com.facebook.react:react-native:+' // from node_modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ newArchEnabled=true
#ANDROID_NDK_VERSION=21.4.7075529

# Version of Kotlin to build against.
KOTLIN_VERSION=1.8.10
KOTLIN_VERSION=1.9.20

# This is an example of how you can change default DB size (6MB) to 10MB
#AsyncStorage_db_size_in_MB=10
Expand Down

0 comments on commit 8e6533f

Please sign in to comment.