Skip to content

Commit 58a0bbe

Browse files
authored
config: migrate to kotlin 2.0 (#28)
1 parent e89e894 commit 58a0bbe

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ captures
77
.externalNativeBuild
88
.cxx
99
local.properties
10-
xcuserdata
10+
xcuserdata
11+
.kotlin

convention/publishing/src/main/kotlin/com/attafitamim/kabin/publish/PublishConventions.kt

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.attafitamim.kabin.publish
22

33
import com.vanniktech.maven.publish.MavenPublishBaseExtension
4+
import com.vanniktech.maven.publish.SonatypeHost
45
import org.gradle.api.Plugin
56
import org.gradle.api.Project
67
import org.gradle.api.publish.maven.MavenPom
@@ -10,7 +11,7 @@ import org.gradle.api.publish.maven.MavenPomScm
1011

1112
class PublishConventions : Plugin<Project> {
1213

13-
private val version = "0.1.0-alpha12"
14+
private val version = "0.1.0-alpha13"
1415
private val group = "com.attafitamim.kabin"
1516

1617
override fun apply(project: Project) {
@@ -23,7 +24,10 @@ class PublishConventions : Plugin<Project> {
2324
mavenPublishing.apply {
2425
coordinates(group, artifact, version)
2526
pom(MavenPom::configure)
26-
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL)
27+
publishToMavenCentral(
28+
SonatypeHost.CENTRAL_PORTAL,
29+
automaticRelease = true
30+
)
2731
signAllPublications()
2832
}
2933
}

gradle/libs.versions.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
android-gradle-plugin = "8.3.2"
44
core-ktx = "1.13.1"
55
junit = "4.13.2"
6-
androidx-test-ext-junit = "1.1.5"
7-
espresso-core = "3.5.1"
8-
appcompat = "1.6.1"
9-
material = "1.11.0"
6+
androidx-test-ext-junit = "1.2.1"
7+
espresso-core = "3.6.1"
8+
appcompat = "1.7.0"
9+
material = "1.12.0"
1010

1111
# Kotlin
12-
kotlin = "1.9.24"
13-
kotlin-poet = "1.16.0"
14-
kotlin-coroutines = "1.8.0"
15-
kotlin-ksp = "1.9.24-1.0.20"
12+
kotlin = "2.0.20"
13+
kotlin-poet = "1.18.1"
14+
kotlin-coroutines = "1.9.0"
15+
kotlin-ksp = "2.0.20-1.0.25"
1616

1717
# Docs
1818
dokka = "1.9.20"

sample/shared/shared.podspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pod::Spec.new do |spec|
88
spec.summary = 'Some description for the Shared Module'
99
spec.vendored_frameworks = 'build/cocoapods/framework/shared.framework'
1010
spec.libraries = 'c++'
11-
spec.ios.deployment_target = '16.0'
11+
spec.ios.deployment_target = '16.0'
1212

1313

1414
if !Dir.exist?('build/cocoapods/framework/shared.framework') || Dir.empty?('build/cocoapods/framework/shared.framework')
@@ -22,6 +22,10 @@ Pod::Spec.new do |spec|
2222
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
2323
end
2424

25+
spec.xcconfig = {
26+
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
27+
}
28+
2529
spec.pod_target_xcconfig = {
2630
'KOTLIN_PROJECT_PATH' => ':sample:shared',
2731
'PRODUCT_MODULE_NAME' => 'shared',

0 commit comments

Comments
 (0)