Skip to content

Commit 0ad3517

Browse files
authored
Prepare 1.6.0 release (#263)
1 parent 0d56088 commit 0ad3517

File tree

8 files changed

+2
-61
lines changed

8 files changed

+2
-61
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 1.6.0 (unreleased)
3+
## 1.6.0
44

55
* Remove internal SQLDelight and SQLiter dependencies.
66
* Add `rawConnection` getter to `ConnectionContext`, which is a `SQLiteConnection` instance from

compose/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.powersync.plugins.sonatype.setupGithubRepository
21
import com.powersync.plugins.utils.powersyncTargets
32

43
plugins {
@@ -50,8 +49,6 @@ android {
5049
}
5150
}
5251

53-
setupGithubRepository()
54-
5552
dokka {
5653
moduleName.set("PowerSync Compose")
5754
}

connectors/supabase/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.powersync.plugins.sonatype.setupGithubRepository
21
import com.powersync.plugins.utils.powersyncTargets
32
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
43

@@ -52,8 +51,6 @@ android {
5251
}
5352
}
5453

55-
setupGithubRepository()
56-
5754
dokka {
5855
moduleName.set("PowerSync Supabase Connector")
5956
}

core/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.powersync.plugins.sonatype.setupGithubRepository
21
import com.powersync.plugins.utils.powersyncTargets
32
import de.undercouch.gradle.tasks.download.Download
43
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
@@ -294,7 +293,6 @@ tasks.withType<KotlinTest> {
294293
showStackTraces = true
295294
}
296295
}
297-
setupGithubRepository()
298296

299297
dokka {
300298
moduleName.set("PowerSync Core")

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.5.1
22+
LIBRARY_VERSION=1.6.0
2323
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2424
# POM
2525
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

integrations/room/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import com.powersync.plugins.sonatype.setupGithubRepository
21
import com.powersync.plugins.utils.powersyncTargets
32
import org.jmailen.gradle.kotlinter.tasks.FormatTask
43
import org.jmailen.gradle.kotlinter.tasks.LintTask
@@ -96,8 +95,6 @@ android {
9695
}
9796
}
9897

99-
setupGithubRepository()
100-
10198
dokka {
10299
moduleName.set("PowerSync Room Integration")
103100
}

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

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,8 @@ package com.powersync.plugins.sonatype
22

33
import org.gradle.api.Project
44
import org.gradle.api.publish.PublishingExtension
5-
import java.net.URI
65

76
internal inline val Project.gradlePublishing: PublishingExtension
87
get() = extensions.getByType(PublishingExtension::class.java)
98

109
internal fun Project.findOptionalProperty(propertyName: String) = findProperty(propertyName)?.toString()
11-
12-
13-
/** Sets up repository for publishing to Github Packages to GITHUB_REPO property
14-
* username and password (a personal Github access token) should be specified as
15-
* `GITHUB_PUBLISH_USER` and `GITHUB_PUBLISH_TOKEN` gradle properties
16-
*/
17-
@Suppress("unused")
18-
public fun Project.setupGithubRepository() {
19-
gradlePublishing.apply {
20-
val githubRepo = githubRepoOrNull ?: return
21-
22-
val githubPublishToken =
23-
githubPublishTokenOrNull ?: return
24-
val githubPublishUser = project.githubPublishUser ?: "cirunner"
25-
26-
repositories.maven {
27-
it.name = "githubPackages"
28-
it.url = URI.create("https://maven.pkg.github.com/$githubRepo")
29-
it.credentials { cred ->
30-
cred.username = githubPublishUser
31-
cred.password = githubPublishToken
32-
}
33-
}
34-
}
35-
}
36-
37-
internal val Project.githubPublishUser: String?
38-
get() = project.findOptionalProperty("GITHUB_PUBLISH_USER")
39-
40-
internal val Project.githubPublishTokenOrNull: String?
41-
get() = project.findOptionalProperty("GITHUB_PUBLISH_TOKEN")
42-
43-
internal val Project.githubRepoOrNull: String?
44-
get() {
45-
val repo = findOptionalProperty("GITHUB_REPO") ?: return null
46-
val repoWithoutGitSuffix = repo.removeSuffix(".git")
47-
val regex = Regex("((.*)[/:])?(?<owner>[^:/]+)/(?<repo>[^/]+)")
48-
val matchResult = regex.matchEntire(repoWithoutGitSuffix)
49-
if (matchResult != null) {
50-
return (matchResult.groups["owner"]!!.value + "/" + matchResult.groups["repo"]!!.value)
51-
} else {
52-
throw IllegalArgumentException("Incorrect Github repository path, should be \"Owner/Repo\"")
53-
}
54-
}

static-sqlite-driver/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import com.powersync.compile.CreateSqliteCInterop
33
import com.powersync.compile.CreateStaticLibrary
44
import com.powersync.compile.UnzipSqlite
55
import java.io.File
6-
import com.powersync.plugins.sonatype.setupGithubRepository
76
import com.powersync.plugins.utils.powersyncTargets
87
import de.undercouch.gradle.tasks.download.Download
98
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
@@ -103,5 +102,3 @@ kotlin {
103102
}
104103
}
105104
}
106-
107-
setupGithubRepository()

0 commit comments

Comments
 (0)