From 5c617db7ec3bafb60683ad2d38aa0b9352fb4852 Mon Sep 17 00:00:00 2001 From: Fabio Insolia Date: Thu, 24 Oct 2024 23:25:00 +0100 Subject: [PATCH] Adding jetbrains kotlin plugin to app build.gradle --- app/build.gradle | 1 + buildSrc/src/main/java/Versions.kt | 2 +- .../src/main/java/com/checkout/buildsrc/BaseDependencies.kt | 1 - example_app_frames/lint-baseline.xml | 6 +++--- frames/lint-baseline.xml | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4d99286a..27bbfc18 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,6 @@ plugins { id("com.android.application") + id("org.jetbrains.kotlin.android") } android { diff --git a/buildSrc/src/main/java/Versions.kt b/buildSrc/src/main/java/Versions.kt index 2a4b6d49..b4ef5fdc 100644 --- a/buildSrc/src/main/java/Versions.kt +++ b/buildSrc/src/main/java/Versions.kt @@ -19,7 +19,7 @@ object Versions { const val appcompat = "1.3.1" const val constraintLayout = "2.1.1" const val materialDesign = "1.4.0" - const val lifeCycle = "2.7.0" + const val lifeCycle = "2.5.1" const val compose_compiler_ext = "1.5.3" const val compose_material3 = "1.1.2" const val compose_version = "1.7.2" diff --git a/buildSrc/src/main/java/com/checkout/buildsrc/BaseDependencies.kt b/buildSrc/src/main/java/com/checkout/buildsrc/BaseDependencies.kt index a9480f83..fbd630a9 100644 --- a/buildSrc/src/main/java/com/checkout/buildsrc/BaseDependencies.kt +++ b/buildSrc/src/main/java/com/checkout/buildsrc/BaseDependencies.kt @@ -35,7 +35,6 @@ fun DependencyHandler.androidDeclarativeUI() { implementation(Dependencies.compose_ui_tooling_preview) implementation(Dependencies.compose_material3) implementation(Dependencies.lifecycle_viewmodel) - implementation(Dependencies.lifeCycleLiveData) implementation(Dependencies.compose_viewmodel) implementation(Dependencies.compose_navigation) implementation(Dependencies.compose_navigation_accompanist) diff --git a/example_app_frames/lint-baseline.xml b/example_app_frames/lint-baseline.xml index d1a542d0..8cae809b 100644 --- a/example_app_frames/lint-baseline.xml +++ b/example_app_frames/lint-baseline.xml @@ -5,21 +5,21 @@ id="ObsoleteLintCustomCheck" message="Library lint checks reference invalid APIs; these checks **will be skipped**! Lint found an issue registry (`androidx.compose.runtime.lint.RuntimeIssueRegistry`) which contains some references to invalid API: org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory() (Referenced from androidx/compose/runtime/lint/AutoboxingStateCreationDetector.class) Therefore, this lint check library is **not** included in analysis. This affects the following lint checks: `AutoboxingStateValueProperty` `AutoboxingStateCreation` `CoroutineCreationDuringComposition` `FlowOperatorInvokedInComposition` `ComposableLambdaParameterNaming` `ComposableLambdaParameterPosition` `ComposableNaming` `StateFlowValueCalledInComposition` `CompositionLocalNaming` `MutableCollectionMutableState` `ProduceStateDoesNotAssignValue` `RememberReturnType` `OpaqueUnitKey` `UnrememberedMutableState` To use this lint check, upgrade to a more recent version of the library."> + file="$GRADLE_USER_HOME/caches/transforms-3/1722247d2fdea24a20de7c485c0f52fa/transformed/jetified-runtime-release/jars/lint.jar"/> + file="$GRADLE_USER_HOME/caches/transforms-3/85709128200ad5189d44a69e9890fcf9/transformed/jetified-ui-release/jars/lint.jar"/> + file="$GRADLE_USER_HOME/caches/transforms-3/3eef0617fe2986da3d2fb7faa7aaad80/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/> + file="$GRADLE_USER_HOME/caches/transforms-3/1722247d2fdea24a20de7c485c0f52fa/transformed/jetified-runtime-release/jars/lint.jar"/> + file="$GRADLE_USER_HOME/caches/transforms-3/85709128200ad5189d44a69e9890fcf9/transformed/jetified-ui-release/jars/lint.jar"/> + file="$GRADLE_USER_HOME/caches/transforms-3/3eef0617fe2986da3d2fb7faa7aaad80/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/>