Skip to content

Commit f818d14

Browse files
committed
Bump Kotlin to 2.3.0 and other dependencies
1 parent 4062d09 commit f818d14

File tree

14 files changed

+73
-55
lines changed

14 files changed

+73
-55
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# Java class files
99
*.class
1010

11+
# Kotlin
12+
.kotlin
13+
1114
# Generated files
1215
bin/
1316
gen/

app/build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ android {
3333
}
3434

3535
compileOptions {
36-
sourceCompatibility = JavaVersion.VERSION_11
37-
targetCompatibility = JavaVersion.VERSION_11
38-
}
39-
40-
kotlinOptions {
41-
jvmTarget = libs.versions.jvmTarget.get()
36+
sourceCompatibility = JavaVersion.VERSION_17
37+
targetCompatibility = JavaVersion.VERSION_17
4238
}
4339

4440
lint {
@@ -54,6 +50,12 @@ android {
5450
}
5551
}
5652

53+
kotlin {
54+
compilerOptions {
55+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
56+
}
57+
}
58+
5759
dependencies {
5860
implementation(project(":colorpickerview"))
5961

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
limitations under the License.
1616
-->
1717
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18-
xmlns:tools="http://schemas.android.com/tools"
19-
package="com.skydoves.colorpickerviewdemo">
18+
xmlns:tools="http://schemas.android.com/tools">
2019

2120
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2221

benchmark/build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ android {
1212
compileSdk = Configuration.compileSdk
1313

1414
compileOptions {
15-
sourceCompatibility = JavaVersion.VERSION_11
16-
targetCompatibility = JavaVersion.VERSION_11
17-
}
18-
19-
kotlinOptions {
20-
jvmTarget = libs.versions.jvmTarget.get()
15+
sourceCompatibility = JavaVersion.VERSION_17
16+
targetCompatibility = JavaVersion.VERSION_17
2117
}
2218

2319
defaultConfig {
@@ -50,6 +46,12 @@ baselineProfile {
5046
useConnectedDevices = false
5147
}
5248

49+
kotlin {
50+
compilerOptions {
51+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
52+
}
53+
}
54+
5355
dependencies {
5456
implementation(libs.androidx.test.runner)
5557
implementation(libs.androidx.test.uiautomator)

benchmark/src/main/java/com/skydoves/colorpickerview/benchmark/BaselineProfileGenerator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BaselineProfileGenerator {
2929

3030
@Test
3131
fun startup() = baselineProfileRule.collect(
32-
packageName = packageName,
32+
packageName = PACKAGE_NAME,
3333
stableIterations = 2,
3434
maxIterations = 8,
3535
) {
@@ -42,4 +42,4 @@ class BaselineProfileGenerator {
4242
}
4343
}
4444

45-
private const val packageName = "com.skydoves.colorpickerviewdemo"
45+
private const val PACKAGE_NAME = "com.skydoves.colorpickerviewdemo"

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ plugins {
2121
alias(libs.plugins.nexus.plugin)
2222
alias(libs.plugins.spotless)
2323
alias(libs.plugins.dokka)
24-
alias(libs.plugins.kotlin.binary.compatibility)
2524
}
2625

2726
subprojects {

buildSrc/src/main/kotlin/com/skydoves/colorpicker/Configuration.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package com.skydoves.colorpicker
1818

1919
object Configuration {
20-
const val compileSdk = 34
21-
const val targetSdk = 34
22-
const val minSdk = 17
20+
const val compileSdk = 35
21+
const val targetSdk = 35
22+
const val minSdk = 21
2323
const val minSdkBenchmark = 23
2424
const val majorVersion = 2
2525
const val minorVersion = 3

colorpickerview/build.gradle.kts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,22 @@ android {
5656
}
5757

5858
compileOptions {
59-
sourceCompatibility = JavaVersion.VERSION_11
60-
targetCompatibility = JavaVersion.VERSION_11
59+
sourceCompatibility = JavaVersion.VERSION_17
60+
targetCompatibility = JavaVersion.VERSION_17
6161
}
6262

63-
kotlinOptions {
64-
jvmTarget = libs.versions.jvmTarget.get()
63+
resourcePrefix = "colorpickerview"
64+
}
65+
66+
kotlin {
67+
compilerOptions {
68+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
6569
}
6670

67-
resourcePrefix = "colorpickerview"
71+
@OptIn(org.jetbrains.kotlin.gradle.dsl.abi.ExperimentalAbiValidation::class)
72+
abiValidation {
73+
enabled.set(true)
74+
}
6875
}
6976

7077
dependencies {

colorpickerview/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<manifest package="com.skydoves.colorpickerview"/>
17+
<manifest />

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ POM_DEVELOPER_NAME=Jaewoong Eum
6565
POM_DEVELOPER_URL=https://github.com/skydoves/
6666
POM_DEVELOPER_EMAIL=skydoves2@gmail.com
6767

68-
SONATYPE_HOST=DEFAULT
68+
SONATYPE_HOST=CENTRAL_PORTAL
6969
RELEASE_SIGNING_ENABLED=true
7070
SONATYPE_AUTOMATIC_RELEASE=true

0 commit comments

Comments
 (0)