Skip to content

Commit b71a37b

Browse files
authored
Fix Apple frameworks to contain version numbers (#307)
1 parent 65faf29 commit b71a37b

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ development=true
1919
RELEASE_SIGNING_ENABLED=true
2020
# Library config
2121
GROUP=com.powersync
22-
LIBRARY_VERSION=1.10.0
22+
LIBRARY_VERSION=1.10.1
2323
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2424
# POM
2525
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

internal/PowerSyncKotlin/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
alias(libs.plugins.kotlinMultiplatform)
66
alias(libs.plugins.skie)
77
alias(libs.plugins.kotlinter)
8+
id("com.powersync.plugins.version")
89
}
910

1011
kotlin {

plugins/sonatype/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ gradlePlugin {
1111
id = "com.powersync.plugins.sonatype"
1212
implementationClass = "com.powersync.plugins.sonatype.SonatypeCentralUploadPlugin"
1313
}
14+
15+
val versionPlugin by plugins.creating {
16+
id = "com.powersync.plugins.version"
17+
implementationClass = "com.powersync.plugins.PowerSyncVersionPlugin"
18+
}
1419
}
1520

1621
// The target release option here is the version of the JVM running the build by default, but Kotlin
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.powersync.plugins
2+
3+
import org.gradle.api.Plugin
4+
import org.gradle.api.Project
5+
6+
internal class PowerSyncVersionPlugin: Plugin<Project> {
7+
override fun apply(project: Project) {
8+
project.group = project.property("GROUP") as String
9+
project.version = project.property("LIBRARY_VERSION") as String
10+
}
11+
}

plugins/sonatype/src/main/kotlin/com/powersync/plugins/sonatype/SonatypeCentralUploadPlugin.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.powersync.plugins.sonatype
22

3+
import com.powersync.plugins.PowerSyncVersionPlugin
34
import org.gradle.api.Plugin
45
import org.gradle.api.Project
56
import com.vanniktech.maven.publish.MavenPublishPlugin
@@ -9,10 +10,9 @@ import com.vanniktech.maven.publish.MavenPublishBaseExtension
910

1011
internal class SonatypeCentralUploadPlugin : Plugin<Project> {
1112
override fun apply(project: Project) {
12-
project.logger.info("Applying the `gradle-maven-publish` plugin")
13-
project.group = project.property("GROUP") as String
14-
project.version = project.property("LIBRARY_VERSION") as String
13+
project.plugins.apply(PowerSyncVersionPlugin::class.java)
1514

15+
project.logger.info("Applying the `gradle-maven-publish` plugin")
1616
project.plugins.apply(MavenPublishPlugin::class.java)
1717

1818
val extension = project.extensions.create(

0 commit comments

Comments
 (0)