Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/neat-crabs-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@powersync/web': patch
---

Testing
6 changes: 4 additions & 2 deletions demos/example-capacitor/android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
}

apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
implementation project(':capacitor-filesystem')
implementation project(':capacitor-share')
implementation project(':capacitor-splash-screen')

}
Expand Down
6 changes: 6 additions & 0 deletions demos/example-capacitor/android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../../../node_modules/@capacitor/android/capacitor')

include ':capacitor-filesystem'
project(':capacitor-filesystem').projectDir = new File('../../../node_modules/@capacitor/filesystem/android')

include ':capacitor-share'
project(':capacitor-share').projectDir = new File('../../../node_modules/@capacitor/share/android')

include ':capacitor-splash-screen'
project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/@capacitor/splash-screen/android')
14 changes: 8 additions & 6 deletions demos/example-capacitor/ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -334,7 +334,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -349,12 +349,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ZGT7463CVJ;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.example;
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.capacitor;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 5.0;
Expand All @@ -369,11 +370,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ZGT7463CVJ;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.example;
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.capacitor;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 1 addition & 1 deletion demos/example-capacitor/ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>powersync-capacitor</string>
<string>powersync-capacitor</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
4 changes: 3 additions & 1 deletion demos/example-capacitor/ios/App/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative '../../../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
platform :ios, '14.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
Expand All @@ -11,6 +11,8 @@ install! 'cocoapods', :disable_input_output_paths => true
def capacitor_pods
pod 'Capacitor', :path => '../../../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../../../node_modules/@capacitor/ios'
pod 'CapacitorFilesystem', :path => '../../../../node_modules/@capacitor/filesystem'
pod 'CapacitorShare', :path => '../../../../node_modules/@capacitor/share'
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/@capacitor/splash-screen'
end

Expand Down
35 changes: 27 additions & 8 deletions demos/example-capacitor/ios/App/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,47 @@
PODS:
- Capacitor (6.0.0):
- Capacitor (7.4.3):
- CapacitorCordova
- CapacitorCordova (6.0.0)
- CapacitorSplashScreen (6.0.0):
- CapacitorCordova (7.4.3)
- CapacitorFilesystem (7.1.4):
- Capacitor
- IONFilesystemLib (~> 1.0.1)
- CapacitorShare (7.0.2):
- Capacitor
- CapacitorSplashScreen (7.0.2):
- Capacitor
- IONFilesystemLib (1.0.1)

DEPENDENCIES:
- "Capacitor (from `../../../../node_modules/@capacitor/ios`)"
- "CapacitorCordova (from `../../../../node_modules/@capacitor/ios`)"
- "CapacitorFilesystem (from `../../../../node_modules/@capacitor/filesystem`)"
- "CapacitorShare (from `../../../../node_modules/@capacitor/share`)"
- "CapacitorSplashScreen (from `../../../../node_modules/@capacitor/splash-screen`)"

SPEC REPOS:
trunk:
- IONFilesystemLib

EXTERNAL SOURCES:
Capacitor:
:path: "../../../../node_modules/@capacitor/ios"
CapacitorCordova:
:path: "../../../../node_modules/@capacitor/ios"
CapacitorFilesystem:
:path: "../../../../node_modules/@capacitor/filesystem"
CapacitorShare:
:path: "../../../../node_modules/@capacitor/share"
CapacitorSplashScreen:
:path: "../../../../node_modules/@capacitor/splash-screen"

SPEC CHECKSUMS:
Capacitor: 559d073c4ca6c27f8e7002c807eea94c3ba435a9
CapacitorCordova: 8c4bfdf69368512e85b1d8b724dd7546abeb30af
CapacitorSplashScreen: 5431ab8d19c1c6e95777d53bfaa7a36a6c3d94c7
Capacitor: b4741ca7affb32c1b70debd03df92cbf522d8a80
CapacitorCordova: 435121e81a2df4d0034f0fb11fcefab5104cfdb5
CapacitorFilesystem: ac0a386949ed6c295a3dffa129ecd26b881ae5be
CapacitorShare: 051c3ceee0ddf3bb54574851a622bbb317eed5bd
CapacitorSplashScreen: 8d6c8cb0542a8e81585c593815db8785ed8ce454
IONFilesystemLib: 89258b8e3e85465da93127d25d7ce37f977e8a6f

PODFILE CHECKSUM: 30a5df536d5e7830e635f84e1fe35fa438802eaa
PODFILE CHECKSUM: fbd8888dbdcba79e24ab532c719332d64cd3a89f

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
14 changes: 10 additions & 4 deletions demos/example-capacitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,29 @@
"preview": "vite preview"
},
"dependencies": {
"@capacitor/android": "^6.0.0",
"@capacitor/android": "^7.4.3",
"@capacitor/core": "latest",
"@capacitor/ios": "^6.0.0",
"@capacitor/filesystem": "^7.1.4",
"@capacitor/ios": "^7.4.3",
"@capacitor/share": "^7.0.2",
"@capacitor/splash-screen": "latest",
"@journeyapps/wa-sqlite": "^1.2.0",
"@mui/icons-material": "^7.3.1",
"@powersync/react": "workspace:*",
"@powersync/web": "workspace:*",
"@types/react-router-dom": "^5.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.0"
"react-router-dom": "^6.30.1",
"react-window": "^1.8.11"
},
"devDependencies": {
"@capacitor/cli": "^6.0.0",
"@capacitor/cli": "^7.4.3",
"@swc/core": "~1.6.0",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/react-window": "^1.8.8",
"vite": "^5.2.11",
"vite-plugin-require": "^1.2.14",
"vite-plugin-top-level-await": "^1.4.1",
Expand Down
Loading
Loading