Skip to content

Commit

Permalink
[1.68.*] Pre-release merge (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
tramline-github[bot] authored Mar 5, 2024
2 parents d3b6328 + a161769 commit 0658fcf
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 46 deletions.
9 changes: 1 addition & 8 deletions android/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">

<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;com.android.tools.lint.detector.api.UastLintUtilsKt: boolean isIncorrectImplicitReturnInLambda(org.jetbrains.uast.UElement)&#xA;(Referenced from androidx/compose/ui/lint/ReturnFromAwaitPointerEventScopeDetector.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/caches/transforms-4/5597572e60f903af6673942780c1acb6/transformed/ui-release/jars/lint.jar"/>
</issue>
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

<issue
id="VectorPath"
Expand Down
2 changes: 1 addition & 1 deletion api/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
9 changes: 8 additions & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
plugins { `kotlin-dsl` }
plugins {
`kotlin-dsl`
alias(libs.plugins.android.lint)
}

kotlin.jvmToolchain(17)

Expand Down Expand Up @@ -61,6 +64,8 @@ gradlePlugin {
}
}

lint.baseline = project.file("lint-baseline.xml")

dependencies {
implementation(libs.build.agp)
implementation(libs.build.cachefix)
Expand All @@ -72,4 +77,6 @@ dependencies {

// Expose the generated version catalog API to the plugin.
implementation(files(libs::class.java.superclass.protectionDomain.codeSource.location))

lintChecks(libs.androidx.lint)
}
26 changes: 26 additions & 0 deletions build-logic/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="false" name="AGP (8.3.0)" variant="all" version="8.3.0">

<issue
id="InternalGradleApiUsage"
message="Avoid using internal Android Gradle Plugin APIs"
errorLine1="import com.android.build.gradle.internal.dsl.BaseAppModuleExtension"
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/kotlin/dev/msfjarvis/claw/gradle/signing/AppSigning.kt"
line="9"
column="1"/>
</issue>

<issue
id="InternalGradleApiUsage"
message="Avoid using internal Android Gradle Plugin APIs"
errorLine1="import com.android.build.gradle.internal.plugins.AppPlugin"
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/kotlin/dev/msfjarvis/claw/gradle/versioning/VersioningPlugin.kt"
line="11"
column="1"/>
</issue>

</issues>
9 changes: 9 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ pluginManagement {
includeModule("org.gradle.kotlin", "gradle-kotlin-dsl-plugins")
}
}
exclusiveContent {
forRepository { google() }
filter {
includeGroup("androidx.databinding")
includeGroupByRegex("com.android.*")
includeGroup("com.google.testing.platform")
}
}
mavenCentral { mavenContent { releasesOnly() } }
}
}
Expand All @@ -33,6 +41,7 @@ dependencyResolutionManagement {
forRepository(::google)
filter {
includeGroup("androidx.databinding")
includeGroup("androidx.lint")
includeGroupByRegex("com.android.*")
includeGroup("com.google.testing.platform")
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2022-2023 Harsh Shandilya.
* Copyright © 2022-2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
Expand Down Expand Up @@ -33,26 +33,22 @@ class ApplicationPlugin : Plugin<Project> {
buildConfig = true
}

buildTypes {
all {
setProguardFiles(
listOf(
"proguard-android-optimize.pro",
"proguard-rules.pro",
"proguard-rules-missing-classes.pro",
)
buildTypes.configureEach {
setProguardFiles(
listOf(
"proguard-android-optimize.pro",
"proguard-rules.pro",
"proguard-rules-missing-classes.pro",
)
}
named("release") {
)
if (name == "release") {
isMinifyEnabled = !project.providers.environmentVariable("DISABLE_MINIFY").isPresent
}
named("debug") {
} else if (name == "debug") {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"
isMinifyEnabled = false
}
}

project.configureBuildSigning()
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2022 Harsh Shandilya.
* Copyright © 2022-2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
Expand Down Expand Up @@ -31,7 +31,7 @@ internal fun Project.configureBuildSigning() {
}
}
val signingConfig = signingConfigs.getByName("release")
buildTypes.all { setSigningConfig(signingConfig) }
buildTypes.configureEach { setSigningConfig(signingConfig) }
}
}
}
9 changes: 1 addition & 8 deletions common/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">

<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;com.android.tools.lint.detector.api.UastLintUtilsKt: boolean isIncorrectImplicitReturnInLambda(org.jetbrains.uast.UElement)&#xA;(Referenced from androidx/compose/ui/lint/ReturnFromAwaitPointerEventScopeDetector.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/caches/transforms-4/5597572e60f903af6673942780c1acb6/transformed/ui-release/jars/lint.jar"/>
</issue>
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
2 changes: 1 addition & 1 deletion core/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
2 changes: 1 addition & 1 deletion database/core/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
2 changes: 1 addition & 1 deletion database/impl/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ androidx-core-splashscreen = "androidx.core:core-splashscreen:1.1.0-alpha02"
androidx-lifecycle-common = { module = "androidx.lifecycle:lifecycle-common", version.ref = "lifecycle" }
androidx-lifecycle-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
androidx-lifecycle-runtime = { module = "androidx.lifecycle:lifecycle-runtime", version.ref = "lifecycle" }
androidx-lint = "androidx.lint:lint-gradle:1.0.0-alpha01"
androidx-navigation-compose = "androidx.navigation:navigation-compose:2.8.0-alpha03"
androidx-paging-compose = "androidx.paging:paging-compose:3.3.0-alpha03"
androidx-profileinstaller = "androidx.profileinstaller:profileinstaller:1.4.0-alpha01"
Expand Down Expand Up @@ -108,6 +109,7 @@ unfurl = "me.saket.unfurl:unfurl:1.7.0"

[plugins]
aboutlibraries = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutLibraries" }
android-lint = { id = "com.android.lint", version.ref = "agp" }
android-test = { id = "com.android.test", version.ref = "agp" }
anvil = "com.squareup.anvil:2.5.0-beta03"
baselineprofile = { id = "androidx.baselineprofile", version.ref = "benchmark" }
Expand Down
2 changes: 1 addition & 1 deletion model/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>
9 changes: 1 addition & 8 deletions web/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-rc02" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0-rc02)" variant="all" version="8.3.0-rc02">

<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;com.android.tools.lint.detector.api.UastLintUtilsKt: boolean isIncorrectImplicitReturnInLambda(org.jetbrains.uast.UElement)&#xA;(Referenced from androidx/compose/ui/lint/ReturnFromAwaitPointerEventScopeDetector.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/caches/transforms-4/5597572e60f903af6673942780c1acb6/transformed/ui-release/jars/lint.jar"/>
</issue>
<issues format="6" by="lint 8.3.0" type="baseline" client="gradle" dependencies="true" name="AGP (8.3.0)" variant="all" version="8.3.0">

</issues>

0 comments on commit 0658fcf

Please sign in to comment.