Skip to content

Commit 7ebb3f7

Browse files
committed
Support Compose version 1.7.X
1 parent cf01582 commit 7ebb3f7

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77

88
plugins {
9-
id("com.android.application") version "8.5.1" apply false
10-
id("com.android.library") version "8.5.1" apply false
9+
id("com.android.application") version "8.5.2" apply false
10+
id("com.android.library") version "8.5.2" apply false
1111
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
1212
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
1313
}

buildSrc/src/main/kotlin/io/github/naverz/pinocchio/Dependencies.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ object Dependencies {
1616
const val CONSTRAINT_LAYOUT = "androidx.constraintlayout:constraintlayout:2.1.1"
1717

1818
object Compose {
19-
const val UI_TOOLING = "androidx.compose.ui:ui-tooling:${Versions.COMPOSE_VERSION}"
20-
const val ACTIVITY_COMPOSE = "androidx.activity:activity-compose:1.9.1"
21-
const val COMPOSE_FOUNDATION =
22-
"androidx.compose.foundation:foundation:${Versions.COMPOSE_VERSION}"
19+
const val BOM = "androidx.compose:compose-bom:${Versions.COMPOSE_BOM}"
20+
const val UI_TOOLING = "androidx.compose.ui:ui-tooling"
21+
const val ACTIVITY_COMPOSE = "androidx.activity:activity-compose"
22+
const val COMPOSE_FOUNDATION = "androidx.compose.foundation:foundation"
2323
}
2424
}
2525
}

buildSrc/src/main/kotlin/io/github/naverz/pinocchio/Versions.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package io.github.naverz.pinocchio
22

33
object Versions {
44
const val ANDROID_COMPILE_SDK_NO = 34
5-
const val COMPOSE_VERSION = "1.6.8"
5+
const val COMPOSE_BOM = "2024.12.01"
66
}

hsvpicker/compose/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ HSVPicker is an easy and highly customizable HSV picker library for Android.
2626
<tr>
2727
<td>Compose UI 1.5 (1.5.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/io.github.naverz.pinocchio/hsvpicker-compose?versionPrefix=1.4"></td>
2828
</tr>
29+
<tr>
30+
<td>Compose UI 1.6 (1.6.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/io.github.naverz.pinocchio/hsvpicker-compose?versionPrefix=1.5"></td>
31+
</tr>
32+
<tr>
33+
<td>Compose UI 1.7 (1.7.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/io.github.naverz.pinocchio/hsvpicker-compose?versionPrefix=1.6"></td>
34+
</tr>
2935
</table>
3036

3137
## Download

hsvpicker/compose/build.gradle.kts

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,11 @@ android {
4242
jvmTarget = "1.8"
4343
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
4444
}
45-
composeOptions {
46-
kotlinCompilerExtensionVersion = io.github.naverz.pinocchio.Versions.COMPOSE_VERSION
47-
}
4845
}
4946

5047
dependencies {
5148
api(project(":slidercompose"))
52-
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.ACTIVITY_COMPOSE)
49+
implementation(platform(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.BOM))
5350
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.UI_TOOLING)
5451
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.COMPOSE_FOUNDATION)
5552
testImplementation(io.github.naverz.pinocchio.Dependencies.Test.JUNIT)

hsvpicker/compose/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ POM_DESCRIPTION=A library that provides HSVPicker from Jetpack Compose. (Recomme
33
POM_INCEPTION_YEAR=2022
44
POM_URL=https://github.com/naverz/Pinocchio/tree/master/hsvpicker/compose
55
POM_ARTIFACT_ID=hsvpicker-compose
6-
VERSION_NAME=1.5.0
6+
VERSION_NAME=1.6.0

hsvpicker/sample/build.gradle.kts

-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ android {
4343
jvmTarget = "1.8"
4444
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
4545
}
46-
composeOptions {
47-
kotlinCompilerExtensionVersion = io.github.naverz.pinocchio.Versions.COMPOSE_VERSION
48-
}
4946
}
5047

5148
dependencies {

slidercompose/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
<tr>
2626
<td>Compose UI 1.6 (1.6.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/io.github.naverz.pinocchio/slider-compose?versionPrefix=1.5"></td>
2727
</tr>
28+
<tr>
29+
<td>Compose UI 1.7 (1.7.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/io.github.naverz.pinocchio/slider-compose?versionPrefix=1.6"></td>
30+
</tr>
2831
</table>
2932

3033
## Download

slidercompose/build.gradle.kts

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ android {
4141
jvmTarget = "1.8"
4242
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
4343
}
44-
composeOptions {
45-
kotlinCompilerExtensionVersion = io.github.naverz.pinocchio.Versions.COMPOSE_VERSION
46-
}
4744
}
4845

4946
dependencies {
50-
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.ACTIVITY_COMPOSE)
47+
implementation(platform(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.BOM))
5148
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.UI_TOOLING)
5249
implementation(io.github.naverz.pinocchio.Dependencies.AndroidX.Compose.COMPOSE_FOUNDATION)
5350
testImplementation(io.github.naverz.pinocchio.Dependencies.Test.JUNIT)

slidercompose/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ POM_DESCRIPTION=Slider UI for Compose
33
POM_INCEPTION_YEAR=2022
44
POM_URL=https://github.com/naverz/Pinocchio/tree/master/slidercompose
55
POM_ARTIFACT_ID=slider-compose
6-
VERSION_NAME=1.5.0
6+
VERSION_NAME=1.6.0

0 commit comments

Comments
 (0)