Skip to content

Commit

Permalink
Update to Kotlin 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
russhwolf committed Apr 28, 2021
1 parent 6c028d0 commit bec65ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog #

## v0.7.6 *(2021-04-27)* ##

- Update to Kotlin 1.5.0

## v0.7.5 *(2021-04-25)* ##

- Update to Kotlin 1.4.32, Gradle 7.0, and Android Gradle Plugin 4.1.2
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Then, simply add the dependency to your common source-set dependencies
commonMain {
dependencies {
// ...
implementation("com.russhwolf:multiplatform-settings:0.7.5")
implementation("com.russhwolf:multiplatform-settings:0.7.6")
}
}
```
Expand Down Expand Up @@ -144,7 +144,7 @@ val factory: Settings.Factory = AppleSettings.Factory()
To create a `Settings` instance from common without needing to pass platform-specific dependencies, add the `multiplatform-settings-no-arg` gradle dependency. This exports `multiplatform-settings` as an API dependency, so you can use it as a replacement for that default dependency.

```kotlin
implementation("com.russhwolf:multiplatform-settings-no-arg:0.7.5")
implementation("com.russhwolf:multiplatform-settings-no-arg:0.7.6")
```

Then from common code, you can write
Expand Down Expand Up @@ -238,7 +238,7 @@ Note that for the `AppleSettings` implementation, some entries are unremovable a
A testing dependency is available to aid in testing code that interacts with this library.

```kotlin
implementation("com.russhwolf:multiplatform-settings-test:0.7.5")
implementation("com.russhwolf:multiplatform-settings-test:0.7.6")
```

This includes a `MockSettings` implementation of the `Settings` interface, which is backed by an in-memory `MutableMap` on all platforms.
Expand Down Expand Up @@ -309,7 +309,7 @@ On Apple platforms, the `AppleSettings` listeners are designed to work within th
A `kotlinx-serialization` integration exists so it's easier to save non-primitive data

```kotlin
implementation("com.russhwolf:multiplatform-settings-serialization:0.7.5")
implementation("com.russhwolf:multiplatform-settings-serialization:0.7.6")
```

This essentially uses the `Settings` store as a serialization format. Thus for a serializable class
Expand Down Expand Up @@ -346,10 +346,10 @@ Usage requires accepting both the `@ExperimentalSettingsApi` and `@ExperimentalS
A separate `multiplatform-settings-coroutines` dependency includes various coroutine APIs.

```kotlin
implementation("com.russhwolf:multiplatform-settings-coroutines:0.7.5")
implementation("com.russhwolf:multiplatform-settings-coroutines:0.7.6")

// Or, if you use native-mt coroutines release
implementation("com.russhwolf:multiplatform-settings-coroutines-native-mt:0.7.5")
implementation("com.russhwolf:multiplatform-settings-coroutines-native-mt:0.7.6")
```

This adds flow extensions for all types which use the listener APIs internally.
Expand Down Expand Up @@ -389,7 +389,7 @@ val blockingSettings: Settings = suspendSettings.toBlockingSettings()
An implementation of `FlowSettings` on the Android exists in the `multiplatform-settings-datastore` dependency, based on [Jetpack DataStore](https://developer.android.com/jetpack/androidx/releases/datastore)

```kotlin
implementation("com.russhwolf:multiplatform-settings-datastore:0.7.5")
implementation("com.russhwolf:multiplatform-settings-datastore:0.7.6")
```

This provides a `DataStoreSettings` class
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@file:Suppress("KDocMissingDocumentation")

object Versions {
const val multiplatformSettings = "0.7.5"
const val multiplatformSettings = "0.7.6"

const val minSdk = 15
const val compileSdk = 30
Expand All @@ -32,7 +32,7 @@ object Versions {
const val coroutinesNativeMt = "1.4.3-native-mt"
const val junit = "4.13.2"
const val robolectric = "4.5.1"
const val serializationPlugin = "1.4.32"
const val serializationPlugin = "1.5.0"
const val serializationRuntime = "1.1.0"
const val turbine = "0.4.1"
}
2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins {
}

allprojects {
ext["library_version"] = "0.7.5"
ext["library_version"] = "0.7.6"

repositories {
mavenLocal()
Expand Down

0 comments on commit bec65ab

Please sign in to comment.