File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ plugins {
1010}
1111
1212group = " com.kdroid.composenativetray"
13- version = " 0.6.1"
13+ val ref = System .getenv(" GITHUB_REF" ) ? : " "
14+ val version = if (ref.startsWith(" refs/tags/" )) {
15+ val tag = ref.removePrefix(" refs/tags/" )
16+ if (tag.startsWith(" v" )) tag.substring(1 ) else tag
17+ } else " dev"
1418
1519repositories {
1620 mavenCentral()
@@ -48,7 +52,7 @@ mavenPublishing {
4852 coordinates(
4953 groupId = " io.github.kdroidfilter" ,
5054 artifactId = " composenativetray" ,
51- version = version.toString()
55+ version = version
5256 )
5357
5458 // Configure POM metadata for the published artifact
Original file line number Diff line number Diff line change 11[versions ]
22kermit = " 2.0.5"
33kotlin = " 2.1.20"
4- agp = " 8.9.2"
54kotlinx-coroutines = " 1.10.2"
6- compose = " 1.7.3 "
5+ compose = " 1.8.0 "
76jna = " 5.17.0"
87platformtools = " 0.2.9"
98
@@ -13,15 +12,12 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c
1312jna = { module = " net.java.dev.jna:jna" , version.ref = " jna" }
1413jna-platform = { module = " net.java.dev.jna:jna-platform" , version.ref = " jna" }
1514platformtools-core = { module = " io.github.kdroidfilter:platformtools.core" , version.ref = " platformtools" }
16- platformtools-darkmodedetector = { module = " io.github.kdroidfilter:platformtools.darkmodedetector" , version.ref = " platformtools" }
1715kmp-log = { module = " io.github.kdroidfilter:kmplog" , version = " 0.3.0" }
1816
1917[plugins ]
2018
2119multiplatform = { id = " org.jetbrains.kotlin.multiplatform" , version.ref = " kotlin" }
22- android-library = { id = " com.android.library" , version.ref = " agp" }
2320compose = { id = " org.jetbrains.compose" , version.ref = " compose" }
2421compose-compiler = { id = " org.jetbrains.kotlin.plugin.compose" , version.ref = " kotlin" }
25- android-application = { id = " com.android.application" , version.ref = " agp" }
2622vannitktech-maven-publish = {id = " com.vanniktech.maven.publish" , version = " 0.31.0" }
2723dokka = { id = " org.jetbrains.dokka" , version = " 2.0.0" }
You can’t perform that action at this time.
0 commit comments