Skip to content

Commit

Permalink
Adding jetbrains kotlin plugin to app build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-insolia-cko committed Oct 24, 2024
1 parent 5d48fb7 commit 5c617db
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}

android {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions example_app_frames/lint-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/cc56642b7683c3aa51ed8863166597af/transformed/jetified-runtime-release/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/1722247d2fdea24a20de7c485c0f52fa/transformed/jetified-runtime-release/jars/lint.jar"/>
</issue>

<issue
id="ObsoleteLintCustomCheck"
message="Library lint checks reference invalid APIs; these checks **will be skipped**!&#xA;&#xA;Lint found an issue registry (`androidx.compose.ui.lint.UiIssueRegistry`)&#xA;which contains some references to invalid API:&#xA;org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory()&#xA;(Referenced from androidx/compose/ui/lint/ModifierDeclarationDetectorKt$ensureReceiverIsReferenced$1.class)&#xA;&#xA;Therefore, this lint check library is **not** included&#xA;in analysis. This affects the following lint checks:&#xA;`UnnecessaryComposedModifier`&#xA;`ModifierFactoryExtensionFunction`&#xA;`ModifierFactoryReturnType`&#xA;`ModifierFactoryUnreferencedReceiver`&#xA;`ModifierNodeInspectableProperties`&#xA;`ModifierParameter`&#xA;`MultipleAwaitPointerEventScopes`&#xA;`ReturnFromAwaitPointerEventScope`&#xA;`SuspiciousCompositionLocalModifierRead`&#xA;`SuspiciousModifierThen`&#xA;&#xA;To use this lint check, upgrade to a more recent version&#xA;of the library.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/5b1a0ac4965f04dae0485fbbb6a3ac3d/transformed/jetified-ui-release/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/85709128200ad5189d44a69e9890fcf9/transformed/jetified-ui-release/jars/lint.jar"/>
</issue>

<issue
id="ObsoleteLintCustomCheck"
message="Library lint checks reference invalid APIs; these checks **will be skipped**!&#xA;&#xA;Lint found an issue registry (`androidx.lifecycle.lint.LiveDataCoreIssueRegistry`)&#xA;which contains some references to invalid API:&#xA;org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory()&#xA;(Referenced from androidx/lifecycle/lint/NonNullableMutableLiveDataDetector$createUastHandler$1.class)&#xA;&#xA;Therefore, this lint check library is **not** included&#xA;in analysis. This affects the following lint checks:&#xA;`NullSafeMutableLiveData`&#xA;&#xA;To use this lint check, upgrade to a more recent version&#xA;of the library.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/209e6251c468dc656f3b6f4d790b7faf/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/3eef0617fe2986da3d2fb7faa7aaad80/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/>
</issue>

<issue
Expand Down
6 changes: 3 additions & 3 deletions frames/lint-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
id="ObsoleteLintCustomCheck"
message="Library lint checks reference invalid APIs; these checks **will be skipped**!&#xA;&#xA;Lint found an issue registry (`androidx.compose.runtime.lint.RuntimeIssueRegistry`)&#xA;which contains some references to invalid API:&#xA;org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory()&#xA;(Referenced from androidx/compose/runtime/lint/AutoboxingStateCreationDetector.class)&#xA;&#xA;Therefore, this lint check library is **not** included&#xA;in analysis. This affects the following lint checks:&#xA;`AutoboxingStateValueProperty`&#xA;`AutoboxingStateCreation`&#xA;`CoroutineCreationDuringComposition`&#xA;`FlowOperatorInvokedInComposition`&#xA;`ComposableLambdaParameterNaming`&#xA;`ComposableLambdaParameterPosition`&#xA;`ComposableNaming`&#xA;`StateFlowValueCalledInComposition`&#xA;`CompositionLocalNaming`&#xA;`MutableCollectionMutableState`&#xA;`ProduceStateDoesNotAssignValue`&#xA;`RememberReturnType`&#xA;`OpaqueUnitKey`&#xA;`UnrememberedMutableState`&#xA;&#xA;To use this lint check, upgrade to a more recent version&#xA;of the library.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/cc56642b7683c3aa51ed8863166597af/transformed/jetified-runtime-release/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/1722247d2fdea24a20de7c485c0f52fa/transformed/jetified-runtime-release/jars/lint.jar"/>
</issue>

<issue
id="ObsoleteLintCustomCheck"
message="Library lint checks reference invalid APIs; these checks **will be skipped**!&#xA;&#xA;Lint found an issue registry (`androidx.compose.ui.lint.UiIssueRegistry`)&#xA;which contains some references to invalid API:&#xA;org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory()&#xA;(Referenced from androidx/compose/ui/lint/ModifierDeclarationDetectorKt$ensureReceiverIsReferenced$1.class)&#xA;&#xA;Therefore, this lint check library is **not** included&#xA;in analysis. This affects the following lint checks:&#xA;`UnnecessaryComposedModifier`&#xA;`ModifierFactoryExtensionFunction`&#xA;`ModifierFactoryReturnType`&#xA;`ModifierFactoryUnreferencedReceiver`&#xA;`ModifierNodeInspectableProperties`&#xA;`ModifierParameter`&#xA;`MultipleAwaitPointerEventScopes`&#xA;`ReturnFromAwaitPointerEventScope`&#xA;`SuspiciousCompositionLocalModifierRead`&#xA;`SuspiciousModifierThen`&#xA;&#xA;To use this lint check, upgrade to a more recent version&#xA;of the library.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/5b1a0ac4965f04dae0485fbbb6a3ac3d/transformed/jetified-ui-release/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/85709128200ad5189d44a69e9890fcf9/transformed/jetified-ui-release/jars/lint.jar"/>
</issue>

<issue
id="ObsoleteLintCustomCheck"
message="Library lint checks reference invalid APIs; these checks **will be skipped**!&#xA;&#xA;Lint found an issue registry (`androidx.lifecycle.lint.LiveDataCoreIssueRegistry`)&#xA;which contains some references to invalid API:&#xA;org.jetbrains.kotlin.analysis.api.session.KtAnalysisSessionProvider: org.jetbrains.kotlin.analysis.api.lifetime.KtLifetimeTokenFactory getTokenFactory()&#xA;(Referenced from androidx/lifecycle/lint/NonNullableMutableLiveDataDetector$createUastHandler$1.class)&#xA;&#xA;Therefore, this lint check library is **not** included&#xA;in analysis. This affects the following lint checks:&#xA;`NullSafeMutableLiveData`&#xA;&#xA;To use this lint check, upgrade to a more recent version&#xA;of the library.">
<location
file="$GRADLE_USER_HOME/caches/transforms-3/209e6251c468dc656f3b6f4d790b7faf/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/>
file="$GRADLE_USER_HOME/caches/transforms-3/3eef0617fe2986da3d2fb7faa7aaad80/transformed/lifecycle-livedata-core-2.8.3/jars/lint.jar"/>
</issue>

</issues>

0 comments on commit 5c617db

Please sign in to comment.