From bec65abf12534a6b720ab87d689898ae2056e826 Mon Sep 17 00:00:00 2001 From: Russell Date: Tue, 27 Apr 2021 23:18:24 -0400 Subject: [PATCH] Update to Kotlin 1.5.0 --- CHANGELOG.md | 4 ++++ README.md | 14 +++++++------- buildSrc/src/main/kotlin/Versions.kt | 4 ++-- sample/build.gradle.kts | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43775bb1..c793820d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index d1fd06c9..4b9a4895 100644 --- a/README.md +++ b/README.md @@ -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") } } ``` @@ -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 @@ -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. @@ -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 @@ -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. @@ -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 diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 36ef7dbf..3e5779fc 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -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 @@ -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" } diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index bfbcae73..37214bd4 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -22,7 +22,7 @@ plugins { } allprojects { - ext["library_version"] = "0.7.5" + ext["library_version"] = "0.7.6" repositories { mavenLocal()