Skip to content
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

Update kmp.viewmodel to v0.8.0 - autoclosed #165

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 9, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.github.hoc081098:kmp-viewmodel-koin-compose 0.7.1 -> 0.8.0 age adoption passing confidence
io.github.hoc081098:kmp-viewmodel-koin 0.7.1 -> 0.8.0 age adoption passing confidence
io.github.hoc081098:kmp-viewmodel-compose 0.7.1 -> 0.8.0 age adoption passing confidence
io.github.hoc081098:kmp-viewmodel-savedstate 0.7.1 -> 0.8.0 age adoption passing confidence
io.github.hoc081098:kmp-viewmodel 0.7.1 -> 0.8.0 age adoption passing confidence

Release Notes

hoc081098/kmp-viewmodel (io.github.hoc081098:kmp-viewmodel-koin-compose)

v0.8.0

Compare Source

Update dependencies
kmp-viewmodel-savedstate
  • Added JvmSerializable - multiplatform reference to Java java.io.Serializable interface,
    along with NonNullSavedStateHandleKey.Companion.serializable and NullableSavedStateHandleKey.Companion.serializable

    // Use `JvmSerializable` with enum classes.
    enum class Gender : JvmSerializable {
      MALE,
      FEMALE,
    }
    
    // Create a `NonNullSavedStateHandleKey` for a serializable type.
    private val genderKey: NonNullSavedStateHandleKey<Gender> = NonNullSavedStateHandleKey.serializable(
      key = "gender",
      defaultValue = Gender.MALE,
    )
    
    // Use `SavedStateHandle.safe` extension function to access `SavedStateHandle` in a type-safe way.
    val genderStateFlow: NonNullStateFlowWrapper<Gender> = savedStateHandle
      .safe { it.getStateFlow(genderKey) }
      .wrap()
  • Since Kotlin 2.0.0, you must add "plugin:org.jetbrains.kotlin.parcelize:additionalAnnotation=com.hoc081098.kmp.viewmodel.parcelable.Parcelize"
    as a free compiler argument to able to use @Parcelize annotation in the common/shared module (Kotlin Multiplatform module).

    // build.gradle.kts
    plugins {
      id("kotlin-parcelize") // Apply the plugin for Android
    }
    
    // Since Kotlin 2.0.0, you must add the below code to your build.gradle.kts of the common/shared module (Kotlin Multiplatform module).
    kotlin {
      [...] // Other configurations
    
      targets.configureEach {
        val isAndroidTarget = platformType == org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.androidJvm
        compilations.configureEach {
          compileTaskProvider.configure {
            compilerOptions {
              if (isAndroidTarget) {
                freeCompilerArgs.addAll(
                  "-P",
                  "plugin:org.jetbrains.kotlin.parcelize:additionalAnnotation=com.hoc081098.kmp.viewmodel.parcelable.Parcelize",
                )
              }
            }
          }
        }
      }
    }

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

| datasource | package                                        | from  | to    |
| ---------- | ---------------------------------------------- | ----- | ----- |
| maven      | io.github.hoc081098:kmp-viewmodel-koin-compose | 0.7.1 | 0.8.0 |
| maven      | io.github.hoc081098:kmp-viewmodel-koin         | 0.7.1 | 0.8.0 |
| maven      | io.github.hoc081098:kmp-viewmodel-compose      | 0.7.1 | 0.8.0 |
| maven      | io.github.hoc081098:kmp-viewmodel-savedstate   | 0.7.1 | 0.8.0 |
| maven      | io.github.hoc081098:kmp-viewmodel              | 0.7.1 | 0.8.0 |
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 9, 2024
@renovate renovate bot requested a review from hoc081098 June 9, 2024 11:57
@renovate renovate bot changed the title Update kmp.viewmodel to v0.8.0 Update kmp.viewmodel to v0.8.0 - autoclosed Jul 20, 2024
@renovate renovate bot closed this Jul 20, 2024
@renovate renovate bot deleted the renovate/kmp.viewmodel branch July 20, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant