Skip to content

Commit 9db04a2

Browse files
authored
Merge pull request #1241 from mikepenz/feature/1237
Update Compose Multiplatform to 1.9.0 | Compose 1.9.3 | Set Kotlin 1.8 for Gradle Plugin
2 parents 50636a8 + 87749a3 commit 9db04a2

File tree

9 files changed

+22
-18
lines changed

9 files changed

+22
-18
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cardview = "1.0.0"
77
constraintLayout = "2.2.1"
88
core = "1.17.0"
99
lifecycle = { require = "2.9.3" }
10-
navigation = "2.9.4"
10+
navigation = "2.9.5"
1111
recyclerView = "1.4.0"
1212
# google
1313
material = "1.13.0"
@@ -18,7 +18,7 @@ itemAnimators = "1.1.0"
1818
ivy = "2.5.3"
1919
modelBuilder = "3.9.11"
2020
materialDrawer = "9.0.2"
21-
okhttp = "5.1.0"
21+
okhttp = "5.2.1"
2222

2323
[plugins]
2424
navSafeArgs = { id = "androidx.navigation.safeargs", version.ref = "navigation" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-build/plugin/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.vanniktech.maven.publish.GradlePublishPlugin
2+
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
23

34
plugins {
45
id("com.android.lint")
@@ -42,6 +43,10 @@ java {
4243

4344
kotlin {
4445
jvmToolchain(11)
46+
compilerOptions {
47+
apiVersion.set(KotlinVersion.KOTLIN_1_8)
48+
languageVersion.set(KotlinVersion.KOTLIN_1_8)
49+
}
4550
}
4651

4752
dependencies {

plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class AboutLibrariesTask : BaseAboutLibrariesTask() {
3434
abstract val deprecated: Property<Boolean>
3535

3636
override fun getDescription(): String = "Exports dependency meta data from the current module.${variant.orNull?.let { " Filtered by variant: '$it'." } ?: ""}"
37-
override fun getGroup(): String = super.group ?: org.gradle.language.base.plugins.LifecycleBasePlugin.BUILD_GROUP
37+
override fun getGroup(): String = super.getGroup() ?: org.gradle.language.base.plugins.LifecycleBasePlugin.BUILD_GROUP
3838

3939
fun configureOutputFile(outputFile: Provider<RegularFile>? = null) {
4040
if (outputFile != null && outputFile.isPresent) {

plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/mapping/License.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ data class License(
5757
* Ensures and applies fixes to the library names (shorten, ...)
5858
*/
5959
private fun resolveLicenseId(name: String, url: String?): String? {
60-
for (l: SpdxLicense in SpdxLicense.entries) {
60+
for (l: SpdxLicense in SpdxLicense.values()) {
6161
val matcher = l.customMatcher
6262
if (l.id.equals(name, true) || l.name.equals(name, true) || l.fullName.equals(name, true) || (matcher != null && matcher.invoke(name, url))) {
6363
return l.id

plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/mapping/SpdxLicense.kt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,15 @@ enum class SpdxLicense(
208208
Leptonica("Leptonica License", "Leptonica"),
209209
LGPL_2_0_only("GNU Library General Public License v2 only", "LGPL-2.0-only"),
210210
LGPL_2_0_or_later("GNU Library General Public License v2 or later", "LGPL-2.0-or-later"),
211-
LGPL_2_1_only("GNU Lesser General Public License v2.1 only", "LGPL-2.1-only",
211+
LGPL_2_1_only(
212+
"GNU Lesser General Public License v2.1 only", "LGPL-2.1-only",
212213
customMatcher = { name, _ ->
213214
name.equals("GNU Lesser General Public License (LGPL), Version 2.1", true)
214215
}
215216
),
216217
LGPL_2_1_or_later("GNU Lesser General Public License v2.1 or later", "LGPL-2.1-or-later"),
217-
LGPL_3_0_only("GNU Lesser General Public License v3.0 only", "LGPL-3.0-only",
218+
LGPL_3_0_only(
219+
"GNU Lesser General Public License v3.0 only", "LGPL-3.0-only",
218220
customMatcher = { name, _ ->
219221
name.equals("GNU General Lesser Public License (LGPL) version 3.0", true)
220222
}
@@ -247,11 +249,12 @@ enum class SpdxLicense(
247249
mpich2("mpich2 License", "mpich2"),
248250
MPL_1_0("Mozilla Public License 1.0", "MPL-1.0"),
249251
MPL_1_1("Mozilla Public License 1.1", "MPL-1.1"),
250-
MPL_2_0("Mozilla Public License 2.0", "MPL-2.0",
252+
MPL_2_0(
253+
"Mozilla Public License 2.0", "MPL-2.0",
251254
customMatcher = { name, url ->
252255
name.contains("Mozilla Public License", true)
253-
&& url?.contains("mozilla.org", true) == true
254-
&& url.contains("MPL/2.0", true)
256+
&& url?.contains("mozilla.org", true) == true
257+
&& url.contains("MPL/2.0", true)
255258
}
256259
),
257260
MPL_2_0_no_copyleft_exception(
@@ -474,7 +477,7 @@ enum class SpdxLicense(
474477

475478
companion object {
476479
internal fun find(key: String): SpdxLicense? {
477-
for (l: SpdxLicense in entries) {
480+
for (l: SpdxLicense in values()) {
478481
if (l.id.equals(key, true) || l.name.equals(key, true) || l.fullName.equals(key, true)) {
479482
return l
480483
}
@@ -483,7 +486,7 @@ enum class SpdxLicense(
483486
}
484487

485488
internal fun getById(id: String): SpdxLicense {
486-
return entries.first { it.id.equals(id, true) }
489+
return values().first { it.id.equals(id, true) }
487490
}
488491
}
489492
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencyResolutionManagement {
2525

2626
versionCatalogs {
2727
create("baseLibs") {
28-
from("com.mikepenz:version-catalog:0.8.6")
28+
from("com.mikepenz:version-catalog:0.8.7")
2929
}
3030
}
3131
}

0 commit comments

Comments
 (0)