Skip to content

Commit 2090d59

Browse files
authored
Move PowerSyncKotlin/ to internal/ (#275)
* Move PowerSyncKotlin/ to internal/ * Also fix deploy logic
1 parent d6002ca commit 2090d59

File tree

10 files changed

+7
-8
lines changed

10 files changed

+7
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
outputs:
1212
tag: ${{ steps.tag.outputs.tag }}
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
1717

@@ -32,7 +32,7 @@ jobs:
3232
maven_publish:
3333
runs-on: macos-latest
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
- name: Validate Gradle Wrapper
3737
uses: gradle/wrapper-validation-action@v1
3838
- uses: actions/cache@v3
@@ -81,14 +81,14 @@ jobs:
8181
with:
8282
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
8383
- name: Build frameworks
84-
run: "./gradlew PowerSyncKotlin:buildRelease"
84+
run: "./gradlew internal:PowerSyncKotlin:buildRelease"
8585

8686
- uses: actions/upload-artifact@v4
8787
with:
8888
name: XCFramework
8989
retention-days: 1 # Only used temporarily
9090
compression-level: 0 # We're already uploading a compressed file
91-
path: PowerSyncKotlin/build/FrameworkArchives/PowersyncKotlinRelease.zip
91+
path: internal/PowerSyncKotlin/build/FrameworkArchives/PowersyncKotlinRelease.zip
9292
if-no-files-found: error
9393

9494
add_assets:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

PowerSyncKotlin/powersync.podspec renamed to internal/PowerSyncKotlin/powersync.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
1212

1313

1414
spec.pod_target_xcconfig = {
15-
'KOTLIN_PROJECT_PATH' => ':PowerSyncKotlin',
15+
'KOTLIN_PROJECT_PATH' => ':internal:PowerSyncKotlin',
1616
'PRODUCT_MODULE_NAME' => 'PowerSyncKotlin',
1717
}
1818

@@ -28,7 +28,7 @@ Pod::Spec.new do |spec|
2828
fi
2929
set -ev
3030
REPO_ROOT="$PODS_TARGET_SRCROOT"
31-
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
31+
"$REPO_ROOT/../../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
3232
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \
3333
-Pkotlin.native.cocoapods.archs="$ARCHS" \
3434
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"

settings.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ plugins {
2828
rootProject.name = "powersync-root"
2929

3030
include(":internal:download-core-extension")
31+
include(":internal:PowerSyncKotlin")
3132

3233
include(":core")
3334
include(":core-tests-android")
@@ -38,8 +39,6 @@ include(":static-sqlite-driver")
3839
include(":integrations:sqldelight")
3940
include(":integrations:sqldelight-test-database")
4041

41-
include(":PowerSyncKotlin")
42-
4342
include(":compose")
4443

4544
include(":demos:android-supabase-todolist")

0 commit comments

Comments
 (0)