-
Notifications
You must be signed in to change notification settings - Fork 19
[Alpha] Kotlin Multiplatform SDK #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
155 commits
Select commit
Hold shift + click to select a range
a36a7f0
init: kmm with shiftUI
Manrich121 a6f0574
init: kmm with composeApp and shared module
Manrich121 9dfd2c6
init: kmm with composeApp and shared library module
Manrich121 641182b
init: ktor in kmm
Manrich121 d9f8649
init: sqldelight android working
Manrich121 0802bb3
init: sqldelight android working
Manrich121 2c38a84
wip: iosApp depends on two frameworks
Manrich121 687735b
wip: create samples directory with complete gradle project includeBui…
Manrich121 1fdcb53
wip: loading powersync slqite extension
Manrich121 3adb675
wip: try linking local framework
Manrich121 42f978e
wip: try pod linkOnly
Manrich121 c6a5b23
works: loading powersync-sqlite-core extension in iOS, using linkOnly…
Manrich121 fffe5c4
chore: add cache properties for native iosSim
Manrich121 5f6c3a7
chore: clean up and rename namespace
Manrich121 56594d4
wip: implement common API
Manrich121 de0aed8
wip: crud classses and interfaces
Manrich121 e03513b
wip: sync stream implementation
Manrich121 20dfe48
wip: powersync DB and connector
Manrich121 52c6b80
wip: Connecting to powersync instance using SupabaseConnector
Manrich121 1f00ae2
wip: bucketStorage implementation
Manrich121 dd32bfb
wip: bucketStorage replace JsonNames with SerialName
Manrich121 024e629
wip: Enable async DB ops. Update iOS sqlite version to 3.38.5. Fix iO…
Manrich121 00c1302
wip: crud upload impl
Manrich121 6e0a437
wip: crud upload impl
Manrich121 cf5f585
wip: watch queries and flows
Manrich121 d7b2569
init: watched queries
Manrich121 8333b3a
clean-up demo app PS integration
Manrich121 f999581
polish: Compose UI
Manrich121 cff85b9
fix: sqlite version on iOS. Add retry logic for streamRequest
Manrich121 408c8ac
wip: PowerSync dialect
Manrich121 bec6fc6
init: PowerSync dialect using BNF working
Manrich121 c5e4823
chore: project clean-up and bump android deps
Manrich121 8340c91
revert: PowerSyncDialect using BNF, rather do simple `functionType` o…
Manrich121 7080d05
wip: update BucketStorage implementation to use SQLDelight generated …
Manrich121 3441e09
revert: creating internal tables as these class with powersync_init
Manrich121 6cbfaeb
chore: bump powersync-sqlite-core version 0.1.5
Manrich121 eca9b84
wip: nexus publish config
Manrich121 ccdcdca
wip: nexus publish config
Manrich121 01b2396
wip: update publish targets
Manrich121 b9359cc
wip: update run targets
Manrich121 9b244e0
wip: add foobar test and publication id
Manrich121 66c5792
wip: add back unit test task in gh action
Manrich121 2df7287
wip: update sona nexus URL
Manrich121 1ee1922
wip: add android debug deploy task to gh action
Manrich121 333cbd5
wip: add missing publishLibraryVariants
Manrich121 de5f135
Testing the old url again
wessels2 0dc58c1
Reverted the nexus and snapshot urls
wessels2 08ede1d
chore: rename packages to com.powersync
Manrich121 f4598f8
try: use sonatype staging profile, username and password
Manrich121 382f063
Merge branch 'init-kmp' of https://github.com/powersync-ja/powersync-…
Manrich121 44cf6d4
try: useStaging in nexusPublish
Manrich121 67bfd71
chore: improve API with builder pattern
Manrich121 7029c44
chore: bump KMP 1.9.22 and related deps
Manrich121 4427298
fix: use recommended gradle/actions/setup-gradle + run approach
Manrich121 71c13d1
more tweaks to nexus publish tasks
Manrich121 8d75ce8
wip: use com.vanniktech.maven.publish for publishing
Manrich121 fdc603a
remove unused convention-plugins
Manrich121 b05780d
feature: added gradle-plugin for bundling and publishing to Sonatype …
Manrich121 dfecaec
chore: pull supabase-todolist and move hello-powersync app into demos…
Manrich121 4507bb9
chore: clean up sonatype plugin and extension
Manrich121 d3bac25
improve: remove hardcoded config from SupabaseConnector, this is done…
Manrich121 1400463
wip: watch crud queries to trigger upload
Manrich121 3fd91f9
chore: bump version 0.0.1-alpha+1
Manrich121 e249557
clean-up
Manrich121 c12dab8
wip: outline readme docs
Manrich121 b6ab6a2
improve: watch queries via powersync now extracts 'ps_data__' table n…
Manrich121 6e42181
improve: sqlite-amalgamation is not downloaded and sqlite3.def is bui…
Manrich121 e64999d
wip: add tableUpdates to SQLiteDrive and implement in platform specif…
Manrich121 3295dc1
wip: jni bindings
Manrich121 d464bf0
wip: JNI binding for update hook to sharedFlow
Manrich121 223c3b2
code clean-up
Manrich121 84898ed
wip: Setup KMMBridge, test gh action
Manrich121 3fff021
wip: kmmbridge gh action, use gradle helper function
Manrich121 d047931
wip: kmmbridge gh action, use version 0.0.1-ALPHA1
Manrich121 eb011fb
wip: kmmbridge gh action, use version 0.0.1-ALPHA
Manrich121 cb38a3c
add `iosX64` target
Manrich121 ddd3b99
wip: kmmbridge gh action, add signing keys to env
Manrich121 39c8de7
wip: add siging to allshared module
Manrich121 3f6ee71
wip: try disabling signing for allshared
Manrich121 8fe21bd
wip: try pass gradle params for signing
Manrich121 1912529
wip: disable signing for gh action
Manrich121 9aa82e0
wip: import gpg
Manrich121 007a10a
try: gpg keys again
Manrich121 07a99a4
try: specifying module name
Manrich121 65aa8a8
try: single line gradle_params
Manrich121 0c3508b
try: single line gradle_params
Manrich121 523df87
Init readmes
benitav aeaf01a
Add supported targets
benitav 651788b
wip: rename swift framework module to 'powersync-swift'
Manrich121 a7cf786
rename gh action
Manrich121 68907c0
rename framework and spm module
Manrich121 974d220
use notifyListeners when reporting table updates. Update powersyncswi…
Manrich121 f0bf9f1
fix: watching of working
Manrich121 c9a082f
clean-up
Manrich121 14089df
wip: clean-up readme's
Manrich121 465a090
Merge branch 'init-kmp' of https://github.com/powersync-ja/powersync-…
Manrich121 65e37fc
wip: use TimestampVersionManager for swift framework
Manrich121 4a9f719
Revert to using LIBRARY_VERSION
Manrich121 233e16c
fix: github publishing from local
Manrich121 b4cae87
revert: only use setupGithubRepository gradle task
Manrich121 a5489d2
rename connectors artifact-id
Manrich121 5a6d006
fix: github publishing should not throw error if gradle props are not…
Manrich121 66115f4
hello-powersync: Use BuildKonfig plugin to load Supabase credentials …
Manrich121 c45a2bf
chore: clean-up compiler warnings
Manrich121 c900fcd
Replace SqliteDriver extensions with wrapping class PsSqliteDriver to…
Manrich121 805fdc8
Merge branch 'alpha-readme' of https://github.com/powersync-ja/powers…
Manrich121 ff7265b
upgrade: supabase-todo app
Manrich121 8ac1514
wip: supabase-todo using SDK from github
Manrich121 51ff890
wip: supabase-todo supabase connected
Manrich121 bf80909
wip: supabase-todo github repo config nou also uses `local.properties`
Manrich121 dfc1797
wip: supabase-todo supabase edit item
Manrich121 7aab880
wip: supabase-todo supabase ios
Manrich121 d4d9ecf
Revert localmaven config
Manrich121 4a6326c
wip: supabase-todo update ios bundle_id
Manrich121 756f78c
chore: hello-powersync rename users to customers
Manrich121 0c4b8c0
fix: supabase-todo update item query
Manrich121 7c502fc
chore: hello-powersync move user login to local.properties
Manrich121 a58ca8d
Readme updates
benitav 1248b88
Merge branch 'init-kmp' of github.com:powersync-ja/powersync-kotlin i…
benitav da282a0
Some fixes
benitav 1e2de76
wip: supabase-todo supabase ios use write transactions
Manrich121 c7f9805
Merge branch 'init-kmp' of https://github.com/powersync-ja/powersync-…
Manrich121 0bd5a02
fix: variable name
8254a0a
fix: variable name
da68a15
Readme polishes
benitav 7c76fc8
Merge branch 'init-kmp' of github.com:powersync-ja/powersync-kotlin i…
benitav 379fb55
Polishes
benitav 5465509
More readme updates
benitav 9ac8095
wip: transaction commit hook
Manrich121 c40596d
Merge branch 'init-kmp' of https://github.com/powersync-ja/powersync-…
Manrich121 3969e98
fix: table updates are now only reported once a transaction is committed
Manrich121 ab0634a
wip: publish to sonatype gh action
Manrich121 6515147
wip: rename build and test gh action
Manrich121 4246ab2
clean-up merge conflics in root README.md
Manrich121 a6f0e20
wip: publish to sonatype gh action, add github token property
Manrich121 e066a7d
wip: publish to sonatype gh action, add github token property
Manrich121 85e1e9b
wip: publish to sonatype gh action, missing quotes in gradle properties
Manrich121 a44481d
Merge branch 'main' of https://github.com/powersync-ja/powersync-kotl…
Manrich121 7c31901
chore: add `connectors` readme.md
Manrich121 6862483
chore: update `core` module's README.md
Manrich121 bc3d412
PowerSyncCredentials.kt `user_id` is optional
Manrich121 ea2cf1d
chore: use actions/checkout@4
Manrich121 d88aee9
chore: use actions/cache@4
Manrich121 4fa5f1f
update readme.md
Manrich121 a18943d
fix: null `user_id` when steam is connected
Manrich121 34f749b
fix: add try/catch around `login` to supabase in demo apps
Manrich121 6f7b3b3
remove convenience tables for 'sqlite_master' and 'sqlite_sequence'
Manrich121 2b8f7b1
chore: use newer version of Sqlite 3.45
Manrich121 0669106
Update readme: limitations and future work
benitav 4428bef
fix: add null check and warning when loading local.properties
Manrich121 cfa009f
Merge branch 'init-kmp' of https://github.com/powersync-ja/powersync-…
Manrich121 61e2196
review feedback: Refactor SupabaseConnector to `com.powersync.connect…
Manrich121 1274e68
feature: add reporting of table updates as flow to PsInternalDatabase
Manrich121 0127046
fix: PsSqlDriver.fireTableUpdates should copy pendingUpdates outside …
Manrich121 7389d4c
CR feedback: remove sqlite_sequence from Powersync.sq and JWT decode …
Manrich121 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Publish iOS Swift | ||
| on: | ||
| workflow_dispatch: | ||
| # TODO: Uncomment this if we want to publish on merge to main | ||
| # push: | ||
| # branches: | ||
| # - "main" | ||
|
|
||
| jobs: | ||
| call-kmmbridge-publish: | ||
| permissions: | ||
| contents: write | ||
| packages: write | ||
| uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildautoversion.yml@v1.1 | ||
| with: | ||
| jvmVersion: 17 | ||
| versionBaseProperty: LIBRARY_VERSION | ||
| publishTask: kmmBridgePublish | ||
| secrets: | ||
| gradle_params: -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" | ||
| # PODSPEC_SSH_KEY: ${{ secrets.PODSPEC_SSH_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,20 @@ | ||
| *.iml | ||
| .gradle | ||
| /local.properties | ||
| **/build/ | ||
| xcuserdata | ||
| !src/**/build/ | ||
| local.properties | ||
| .idea | ||
| .fleet | ||
| .DS_Store | ||
| /build | ||
| /captures | ||
| captures | ||
| .externalNativeBuild | ||
| .cxx | ||
| local.properties | ||
| **/.cxx | ||
| *.xcodeproj/* | ||
| **/.swiftpm | ||
| !*.xcodeproj/project.pbxproj | ||
| !*.xcodeproj/xcshareddata/ | ||
| !*.xcodeproj/project.xcworkspace/ | ||
| !*.xcworkspace/contents.xcworkspacedata | ||
| **/xcshareddata/WorkspaceSettings.xcsettings | ||
| Pods/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // swift-tools-version:5.3 | ||
| import PackageDescription | ||
|
|
||
| let packageName = "powersyncswift" | ||
|
|
||
| let package = Package( | ||
| name: packageName, | ||
| platforms: [ | ||
| .iOS(.v13) | ||
| ], | ||
| products: [ | ||
| .library( | ||
| name: packageName, | ||
| targets: [packageName] | ||
| ), | ||
| ], | ||
| targets: [ | ||
| .binaryTarget( | ||
| name: packageName, | ||
| path: "./powersyncswift/build/XCFrameworks/debug/\(packageName).xcframework" | ||
| ) | ||
| , | ||
| ] | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.