Skip to content

Commit b09aa1b

Browse files
update capacitor
1 parent 555d9e5 commit b09aa1b

File tree

8 files changed

+97
-69
lines changed

8 files changed

+97
-69
lines changed

demos/example-capacitor/android/app/capacitor.build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
android {
44
compileOptions {
5-
sourceCompatibility JavaVersion.VERSION_17
6-
targetCompatibility JavaVersion.VERSION_17
5+
sourceCompatibility JavaVersion.VERSION_21
6+
targetCompatibility JavaVersion.VERSION_21
77
}
88
}
99

1010
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
1111
dependencies {
1212
implementation project(':capacitor-splash-screen')
13+
implementation project(':powersync-capacitor')
1314

1415
}
1516

demos/example-capacitor/android/capacitor.settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ project(':capacitor-android').projectDir = new File('../../../node_modules/@capa
44

55
include ':capacitor-splash-screen'
66
project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/@capacitor/splash-screen/android')
7+
8+
include ':powersync-capacitor'
9+
project(':powersync-capacitor').projectDir = new File('../../../packages/capacitor/android')

demos/example-capacitor/ios/App/App.xcodeproj/project.pbxproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
284284
GCC_WARN_UNUSED_FUNCTION = YES;
285285
GCC_WARN_UNUSED_VARIABLE = YES;
286-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
286+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
287287
MTL_ENABLE_DEBUG_INFO = YES;
288288
ONLY_ACTIVE_ARCH = YES;
289289
SDKROOT = iphoneos;
@@ -334,7 +334,7 @@
334334
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
335335
GCC_WARN_UNUSED_FUNCTION = YES;
336336
GCC_WARN_UNUSED_VARIABLE = YES;
337-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
337+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
338338
MTL_ENABLE_DEBUG_INFO = NO;
339339
SDKROOT = iphoneos;
340340
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -349,12 +349,13 @@
349349
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350350
CODE_SIGN_STYLE = Automatic;
351351
CURRENT_PROJECT_VERSION = 1;
352+
DEVELOPMENT_TEAM = ZGT7463CVJ;
352353
INFOPLIST_FILE = App/Info.plist;
353-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
354+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
354355
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
355356
MARKETING_VERSION = 1.0;
356357
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
357-
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.example;
358+
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.capacitor;
358359
PRODUCT_NAME = "$(TARGET_NAME)";
359360
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
360361
SWIFT_VERSION = 5.0;
@@ -369,11 +370,12 @@
369370
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
370371
CODE_SIGN_STYLE = Automatic;
371372
CURRENT_PROJECT_VERSION = 1;
373+
DEVELOPMENT_TEAM = ZGT7463CVJ;
372374
INFOPLIST_FILE = App/Info.plist;
373-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
375+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
374376
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
375377
MARKETING_VERSION = 1.0;
376-
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.example;
378+
PRODUCT_BUNDLE_IDENTIFIER = com.powersync.capacitor;
377379
PRODUCT_NAME = "$(TARGET_NAME)";
378380
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
379381
SWIFT_VERSION = 5.0;
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>powersync-capacitor</string>
9-
<key>CFBundleExecutable</key>
10-
<string>$(EXECUTABLE_NAME)</string>
11-
<key>CFBundleIdentifier</key>
12-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13-
<key>CFBundleInfoDictionaryVersion</key>
14-
<string>6.0</string>
15-
<key>CFBundleName</key>
16-
<string>$(PRODUCT_NAME)</string>
17-
<key>CFBundlePackageType</key>
18-
<string>APPL</string>
19-
<key>CFBundleShortVersionString</key>
20-
<string>$(MARKETING_VERSION)</string>
21-
<key>CFBundleVersion</key>
22-
<string>$(CURRENT_PROJECT_VERSION)</string>
23-
<key>LSRequiresIPhoneOS</key>
24-
<true/>
25-
<key>UILaunchStoryboardName</key>
26-
<string>LaunchScreen</string>
27-
<key>UIMainStoryboardFile</key>
28-
<string>Main</string>
29-
<key>UIRequiredDeviceCapabilities</key>
30-
<array>
31-
<string>armv7</string>
32-
</array>
33-
<key>UISupportedInterfaceOrientations</key>
34-
<array>
35-
<string>UIInterfaceOrientationPortrait</string>
36-
<string>UIInterfaceOrientationLandscapeLeft</string>
37-
<string>UIInterfaceOrientationLandscapeRight</string>
38-
</array>
39-
<key>UISupportedInterfaceOrientations~ipad</key>
40-
<array>
41-
<string>UIInterfaceOrientationPortrait</string>
42-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
43-
<string>UIInterfaceOrientationLandscapeLeft</string>
44-
<string>UIInterfaceOrientationLandscapeRight</string>
45-
</array>
46-
<key>UIViewControllerBasedStatusBarAppearance</key>
47-
<true/>
48-
</dict>
49-
</plist>
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>powersync-capacitor</string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>$(MARKETING_VERSION)</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>LSRequiresIPhoneOS</key>
24+
<true />
25+
<key>UILaunchStoryboardName</key>
26+
<string>LaunchScreen</string>
27+
<key>UIMainStoryboardFile</key>
28+
<string>Main</string>
29+
<key>UIRequiredDeviceCapabilities</key>
30+
<array>
31+
<string>armv7</string>
32+
</array>
33+
<key>UISupportedInterfaceOrientations</key>
34+
<array>
35+
<string>UIInterfaceOrientationPortrait</string>
36+
<string>UIInterfaceOrientationLandscapeLeft</string>
37+
<string>UIInterfaceOrientationLandscapeRight</string>
38+
</array>
39+
<key>UISupportedInterfaceOrientations~ipad</key>
40+
<array>
41+
<string>UIInterfaceOrientationPortrait</string>
42+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
43+
<string>UIInterfaceOrientationLandscapeLeft</string>
44+
<string>UIInterfaceOrientationLandscapeRight</string>
45+
</array>
46+
<key>UIViewControllerBasedStatusBarAppearance</key>
47+
<true />
48+
</dict>
49+
</plist>

demos/example-capacitor/ios/App/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative '../../../../node_modules/@capacitor/ios/scripts/pods_helpers'
22

3-
platform :ios, '13.0'
3+
platform :ios, '14.0'
44
use_frameworks!
55

66
# workaround to avoid Xcode caching of Pods that requires
@@ -12,6 +12,7 @@ def capacitor_pods
1212
pod 'Capacitor', :path => '../../../../node_modules/@capacitor/ios'
1313
pod 'CapacitorCordova', :path => '../../../../node_modules/@capacitor/ios'
1414
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/@capacitor/splash-screen'
15+
pod 'PowersyncCapacitor', :path => '../../../../packages/capacitor'
1516
end
1617

1718
target 'App' do
Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
PODS:
2-
- Capacitor (6.0.0):
2+
- Capacitor (7.4.3):
33
- CapacitorCordova
4-
- CapacitorCordova (6.0.0)
5-
- CapacitorSplashScreen (6.0.0):
4+
- CapacitorCordova (7.4.3)
5+
- CapacitorSplashScreen (7.0.2):
66
- Capacitor
7+
- powersync-sqlite-core (0.4.5)
8+
- PowersyncCapacitor (0.0.1):
9+
- Capacitor
10+
- powersync-sqlite-core (~> 0.4.4)
11+
- SQLCipher (~> 4.0)
12+
- SQLCipher (4.10.0):
13+
- SQLCipher/standard (= 4.10.0)
14+
- SQLCipher/common (4.10.0)
15+
- SQLCipher/standard (4.10.0):
16+
- SQLCipher/common
717

818
DEPENDENCIES:
919
- "Capacitor (from `../../../../node_modules/@capacitor/ios`)"
1020
- "CapacitorCordova (from `../../../../node_modules/@capacitor/ios`)"
1121
- "CapacitorSplashScreen (from `../../../../node_modules/@capacitor/splash-screen`)"
22+
- PowersyncCapacitor (from `../../../../packages/capacitor`)
23+
24+
SPEC REPOS:
25+
trunk:
26+
- powersync-sqlite-core
27+
- SQLCipher
1228

1329
EXTERNAL SOURCES:
1430
Capacitor:
@@ -17,12 +33,17 @@ EXTERNAL SOURCES:
1733
:path: "../../../../node_modules/@capacitor/ios"
1834
CapacitorSplashScreen:
1935
:path: "../../../../node_modules/@capacitor/splash-screen"
36+
PowersyncCapacitor:
37+
:path: "../../../../packages/capacitor"
2038

2139
SPEC CHECKSUMS:
22-
Capacitor: 559d073c4ca6c27f8e7002c807eea94c3ba435a9
23-
CapacitorCordova: 8c4bfdf69368512e85b1d8b724dd7546abeb30af
24-
CapacitorSplashScreen: 5431ab8d19c1c6e95777d53bfaa7a36a6c3d94c7
40+
Capacitor: b4741ca7affb32c1b70debd03df92cbf522d8a80
41+
CapacitorCordova: 435121e81a2df4d0034f0fb11fcefab5104cfdb5
42+
CapacitorSplashScreen: 8d6c8cb0542a8e81585c593815db8785ed8ce454
43+
powersync-sqlite-core: 6f32860379009d2a37cadc9e9427a431bdbd83c8
44+
PowersyncCapacitor: 91411eaf8f7a773df9da4b76b19f576275b5a40a
45+
SQLCipher: eb79c64049cb002b4e9fcb30edb7979bf4706dfc
2546

26-
PODFILE CHECKSUM: 30a5df536d5e7830e635f84e1fe35fa438802eaa
47+
PODFILE CHECKSUM: e802d16d4c452b75fb43b31bf198bbe0b7916693
2748

28-
COCOAPODS: 1.15.2
49+
COCOAPODS: 1.16.2

demos/example-capacitor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"preview": "vite preview"
2020
},
2121
"dependencies": {
22-
"@capacitor/android": "^7.0.0",
22+
"@capacitor/android": "^7.4.3",
2323
"@capacitor/core": "latest",
24-
"@capacitor/ios": "^7.0.0",
24+
"@capacitor/ios": "^7.4.3",
2525
"@capacitor/splash-screen": "latest",
2626
"@journeyapps/wa-sqlite": "^1.3.1",
2727
"@powersync/react": "workspace:*",
@@ -32,7 +32,7 @@
3232
"react-router-dom": "^6.23.0"
3333
},
3434
"devDependencies": {
35-
"@capacitor/cli": "^7.0.0",
35+
"@capacitor/cli": "^7.4.3",
3636
"@swc/core": "~1.6.0",
3737
"@types/node": "^20.12.12",
3838
"@types/react": "^18.3.2",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)