From bdd9b063316fb2e5584d1df56821bc8d21471d97 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 17 Oct 2024 16:50:54 +0200 Subject: [PATCH] disable roaming for kotlin-onboarding.xml GitOrigin-RevId: 6d697e33034d5055b7779d59e81e316e115263bf --- .../onboarding/gradle/BuildProcessSatisfactionSurveyStore.kt | 2 +- .../src/org/jetbrains/kotlin/onboarding/KotlinNewUserTracker.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kotlin/onboarding-gradle/src/org/jetbrains/kotlin/onboarding/gradle/BuildProcessSatisfactionSurveyStore.kt b/plugins/kotlin/onboarding-gradle/src/org/jetbrains/kotlin/onboarding/gradle/BuildProcessSatisfactionSurveyStore.kt index f65b2453cfe4..f90a236fb641 100644 --- a/plugins/kotlin/onboarding-gradle/src/org/jetbrains/kotlin/onboarding/gradle/BuildProcessSatisfactionSurveyStore.kt +++ b/plugins/kotlin/onboarding-gradle/src/org/jetbrains/kotlin/onboarding/gradle/BuildProcessSatisfactionSurveyStore.kt @@ -27,7 +27,7 @@ internal fun Project.isKotlinGradleProject(): Boolean { } @ApiStatus.Internal -@State(name = "BuildProcessSatisfactionSurveyStore", storages = [Storage("kotlin-onboarding.xml")]) +@State(name = "BuildProcessSatisfactionSurveyStore", storages = [Storage(value = "kotlin-onboarding.xml", roamingType = RoamingType.DISABLED)]) internal class BuildProcessSatisfactionSurveyStore : PersistentStateComponent { override fun getState(): BuildProcessSatisfactionSurveyState = currentState diff --git a/plugins/kotlin/onboarding/src/org/jetbrains/kotlin/onboarding/KotlinNewUserTracker.kt b/plugins/kotlin/onboarding/src/org/jetbrains/kotlin/onboarding/KotlinNewUserTracker.kt index 3f2a85f82913..7faa12aa8a24 100644 --- a/plugins/kotlin/onboarding/src/org/jetbrains/kotlin/onboarding/KotlinNewUserTracker.kt +++ b/plugins/kotlin/onboarding/src/org/jetbrains/kotlin/onboarding/KotlinNewUserTracker.kt @@ -19,7 +19,7 @@ class KotlinNewUserTrackerState : BaseState() { var newKtUserSince by property(0L) } -@State(name = "KotlinNewUserTracker", storages = [Storage("kotlin-onboarding.xml")]) +@State(name = "KotlinNewUserTracker", storages = [Storage(value = "kotlin-onboarding.xml", roamingType = RoamingType.DISABLED)]) class KotlinNewUserTracker : PersistentStateComponent { companion object { // Offer survey after one week of using Kotlin