-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to kotlin 1.8.10 and remove support for old memory model (#147)
Description This updates to kotlin 1.8.10. In that version, calling freeze now cause compilation errors. We are now dropping support for old MM We are also updating various libraries. Ktlint was updated so this is why there is a lot of code style changes. Motivation and Context Old MM has become obsolete in favor of the new MM. How Has This Been Tested? I tested it in another project to test ABI compatibility. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Changes are ABI compatible. Old freezing utils were deprecated and will just do nothing. This is however breaking in the sense that we drop support for old memory model. New android lifecycle library also as a breaking change but that's not on us.
- Loading branch information
1 parent
7bf0ba5
commit ff9756c
Showing
120 changed files
with
284 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
object Versions { | ||
const val KOTLIN = "1.7.20" | ||
const val ATOMIC_FU = "0.18.5" | ||
const val KOTLIN = "1.8.10" | ||
const val ATOMIC_FU = "0.20.0" | ||
const val ANDROID_GRADLE_PLUGIN = "7.3.1" | ||
const val JETPACK_COMPOSE_COMPILER = "1.3.2" | ||
const val JETPACK_COMPOSE_RUNTIME = "1.3.2" | ||
const val JETPACK_COMPOSE_COMPILER = "1.4.3" | ||
const val JETPACK_COMPOSE_RUNTIME = "1.3.3" | ||
const val JETPACK_COMPOSE_FOUNDATION = "1.3.1" | ||
const val JETPACK_COMPOSE_UI_TOOLING = "1.3.2" | ||
const val JETPACK_COMPOSE_UI_TOOLING = "1.3.3" | ||
const val JETPACK_COMPOSE_MATERIAL = "1.3.1" | ||
const val JETPACK_COMPOSE_MATERIAL_3 = "1.1.0-alpha03" | ||
const val JETPACK_COMPOSE_MATERIAL_3 = "1.1.0-alpha07" | ||
const val COIL = "2.0.0-rc03" | ||
const val KTLINT = "10.3.0" | ||
const val KOTLINX_SERIALIZATION = "1.4.1" | ||
const val KOTLINX_COROUTINES = "1.6.3" | ||
const val KTLINT = "11.2.0" | ||
const val KOTLINX_SERIALIZATION = "1.5.0" | ||
const val KOTLINX_COROUTINES = "1.6.4" | ||
const val KTOR = "2.0.3" | ||
const val KOTLIN_WRAPPERS_EXTENSIONS = "1.0.1-pre.459" | ||
const val ANDROIDX_LIFECYCLE = "2.4.0" | ||
const val ANDROIDX_LIFECYCLE = "2.6.0-rc01" | ||
const val OKIO = "3.2.0" | ||
const val KSP = "1.7.10-1.0.6" | ||
const val KSP = "1.8.10-1.0.9" | ||
const val KOTLIN_POET = "1.12.0" | ||
const val ACCOMPANIST = "0.28.0" | ||
|
||
object Android { | ||
const val TARGET_SDK = 33 | ||
const val COMPILE_SDK = 33 | ||
const val MIN_SDK = 21 | ||
const val MIN_SDK = 24 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
trikot-bluetooth/swift-extensions/TrikotBluetoothExtensions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 19 additions & 4 deletions
23
...rikotFoundation/src/commonMain/kotlin/com/mirego/trikot/foundation/concurrent/MrFreeze.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package com.mirego.trikot.foundation.concurrent | ||
|
||
expect object MrFreeze { | ||
fun <T> freeze(objectToFreeze: T): T | ||
actual fun ensureNeverFrozen(objectToProtect: Any) | ||
@Deprecated("No longer needed in new MM") | ||
object MrFreeze { | ||
@Deprecated( | ||
"freeze is no longer needed in new MM", | ||
replaceWith = ReplaceWith("this") | ||
) | ||
fun <T> freeze(objectToFreeze: T): T = objectToFreeze | ||
|
||
@Deprecated( | ||
"ensureNeverFrozen is no longer needed in new MM", | ||
replaceWith = ReplaceWith("this") | ||
) | ||
@Suppress("UNUSED_PARAMETER") | ||
fun ensureNeverFrozen(objectToProtect: Any) {} | ||
} | ||
|
||
expect fun <T> freeze(objectToFreeze: T): T | ||
@Deprecated( | ||
"ensureNeverFrozen is no longer needed in new MM", | ||
replaceWith = ReplaceWith("this") | ||
) | ||
fun <T> freeze(objectToFreeze: T): T = objectToFreeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.