Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 7460263

Browse files
authored
Merge pull request #5 from fresha/capacitor-4-upgrade
Update to Capacitor v4
2 parents 4701c81 + fa1190a commit 7460263

22 files changed

+851
-1090
lines changed

FreshaCapacitorPluginApplepay.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.author = package['author']
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
1313
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14-
s.ios.deployment_target = '12.0'
14+
s.ios.deployment_target = '13.0'
1515
s.dependency 'Capacitor'
1616
s.swift_version = '5.1'
1717
end

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
This Apple Pay plugin provides interfaces that allow you to initiate an Apple Pay payment sheet based on provided PaymentRequest.
66
When transaction is authorized, Payment response is returned along with payment details and more importantly- a payment token that you should pass to your backend.
77

8+
For Capacitor 4 please use version 4.0.0+
9+
For Capacitor 3 please use lower versions.
10+
811
## Install
912

1013
```bash

ios/Plugin.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
449449
GCC_WARN_UNUSED_FUNCTION = YES;
450450
GCC_WARN_UNUSED_VARIABLE = YES;
451-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
451+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
452452
MTL_ENABLE_DEBUG_INFO = YES;
453453
ONLY_ACTIVE_ARCH = YES;
454454
SDKROOT = iphoneos;
@@ -508,7 +508,7 @@
508508
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
509509
GCC_WARN_UNUSED_FUNCTION = YES;
510510
GCC_WARN_UNUSED_VARIABLE = YES;
511-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
511+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
512512
MTL_ENABLE_DEBUG_INFO = NO;
513513
SDKROOT = iphoneos;
514514
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -531,7 +531,7 @@
531531
DYLIB_INSTALL_NAME_BASE = "@rpath";
532532
INFOPLIST_FILE = Plugin/Info.plist;
533533
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
534-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
534+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
535535
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
536536
ONLY_ACTIVE_ARCH = YES;
537537
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
@@ -556,7 +556,7 @@
556556
DYLIB_INSTALL_NAME_BASE = "@rpath";
557557
INFOPLIST_FILE = Plugin/Info.plist;
558558
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
559-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
559+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
560560
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
561561
ONLY_ACTIVE_ARCH = NO;
562562
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;

ios/Podfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
platform :ios, '12.0'
1+
require_relative '../node_modules/@capacitor/ios/scripts/pods_helpers'
2+
platform :ios, '13.0'
23

34
def capacitor_pods
45
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
@@ -14,3 +15,7 @@ end
1415
target 'PluginTests' do
1516
capacitor_pods
1617
end
18+
19+
post_install do |installer|
20+
assertDeploymentTarget(installer)
21+
end

ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Capacitor (3.5.1):
2+
- Capacitor (4.3.0):
33
- CapacitorCordova
4-
- CapacitorCordova (3.5.1)
4+
- CapacitorCordova (4.3.0)
55

66
DEPENDENCIES:
77
- "Capacitor (from `../node_modules/@capacitor/ios`)"
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
1414
:path: "../node_modules/@capacitor/ios"
1515

1616
SPEC CHECKSUMS:
17-
Capacitor: a13a4a985bf4e3eac033c74848c77ff29dfa13ca
18-
CapacitorCordova: 9305ba1d3c73fa7271f5b2c3ca8a92ea76b56c74
17+
Capacitor: 5534f805df231c76164e1d63119bff7b4eac6cd5
18+
CapacitorCordova: 19a82a3b91fbeb9bdd049729551edc3cd7e5e648
1919

20-
PODFILE CHECKSUM: d908dea01cb4b1885654341d3f4274148fb6d382
20+
PODFILE CHECKSUM: ff70e1317c03f6f671dc2701ddd04ca685e574d3
2121

2222
COCOAPODS: 1.11.3

ios/Pods/Local Podspecs/Capacitor.podspec.json

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

ios/Pods/Local Podspecs/CapacitorCordova.podspec.json

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

ios/Pods/Manifest.lock

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

0 commit comments

Comments
 (0)