Skip to content

chore(default-storage): Bump versions #1094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/default-storage/android/config.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import java.nio.file.Paths

def DEFAULT_KOTLIN_VERSION = "1.9.20"
def DEFAULT_ROOM_VERSION = "2.4.3"
def DEFAULT_KOTLIN_VERSION = "1.9.24"
def DEFAULT_ROOM_VERSION = "2.6.1"

def kotlinVersion = getKotlinVersion(DEFAULT_KOTLIN_VERSION)

Expand All @@ -19,8 +19,8 @@ project.ext.AsyncStorageConfig = [
]

project.ext.AsyncStorageLibs = [
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3",
testCoroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3",
coroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0",
testCoroutines : "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0",
testJunit : "junit:junit:4.13.2",
testRunner : "androidx.test:runner:1.4.0",
testRules : "androidx.test:rules:1.4.0",
Expand Down Expand Up @@ -54,6 +54,10 @@ String getKspVersion(String kotlinVersion) {
}
// https://github.com/google/ksp/releases
def kspVersions = [
"1.9.24-1.0.20",
"1.9.23-1.0.20",
"1.9.22-1.0.17",
"1.9.21-1.0.16",
"1.9.20-1.0.14",
"1.9.10-1.0.13",
"1.9.0-1.0.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ newArchEnabled=true
#ANDROID_NDK_VERSION=26.1.10909125

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

# This is an example of how you can change default DB size (6MB) to 10MB
#AsyncStorage_db_size_in_MB=10
Expand Down
12 changes: 6 additions & 6 deletions packages/website/docs/advanced/Next.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,36 @@ AsyncStorage_useNextStorage=true

**Kotlin version**

Next storage is tested against Kotlin version `1.9.20`.
Next storage is tested against Kotlin version `1.9.24`.
You can specify different version, in one of two ways:

- add `kotlinVersion` extension to the `rootProject`:

```groovy
rootProject.ext.kotlinVersion = '1.9.20'
rootProject.ext.kotlinVersion = '1.9.24'
```

- specify `AsyncStorage_kotlinVersion` in `gradle.properties`:

```groovy
AsyncStorage_kotlinVersion=1.9.20
AsyncStorage_kotlinVersion=1.9.24
```

**Room**

Next AsyncStorage uses [Room persistence library](https://developer.android.com/jetpack/androidx/releases/room) to store data.
Currently, tested version is `2.4.3`. You can specify different version, by adding a flag to `gradle.properties`:
Currently, tested version is `2.6.1`. You can specify different version, by adding a flag to `gradle.properties`:

```groovy
AsyncStorage_next_roomVersion=2.4.3
AsyncStorage_next_roomVersion=2.6.1
```

KSP is enabled for symbol processing for the Room library.
KSP version will be selected based on Kotlin version in your project.
If you want to use different KSP version, you can set a property in `gradle.properties`:

```groovy
AsyncStorage_next_kspVersion=1.9.20-1.0.14
AsyncStorage_next_kspVersion=1.9.24-1.0.20
```

### Notable changes
Expand Down
Loading