Skip to content

Commit

Permalink
Merge pull request #17 from paymentwall/fix_modal_presentation
Browse files Browse the repository at this point in the history
Fix modal presentation + iOS 15+ bar tint issue
  • Loading branch information
kenhaios authored Sep 21, 2022
2 parents 6565af7 + 224b79e commit ad48ae2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
Binary file modified Core SDK/libPWCoreSDK.a
Binary file not shown.
2 changes: 1 addition & 1 deletion PWCoreSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "PWCoreSDK"
s.version = "3.1.1"
s.version = "3.1.2"
s.summary = "PWCoreSDK"
s.description = "Unified SDK for all paymentwall products on iOS"
s.homepage = "http://paymentwall.com"
Expand Down
10 changes: 5 additions & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ PODS:
- PWCoreSDK (>= 3.0.0)
- PWMyCardPlugin (3.0.0):
- PWCoreSDK (>= 3.0.0)
- PWWechatpayPlugin (3.0.1):
- PWWechatpayPlugin (3.1.1):
- PWCoreSDK (>= 3.0.0)
- PWWechatpayPlugin/Wechatpay (= 3.0.1)
- PWWechatpayPlugin/Wechatpay (3.0.1):
- PWWechatpayPlugin/Wechatpay (= 3.1.1)
- PWWechatpayPlugin/Wechatpay (3.1.1):
- PWCoreSDK (>= 3.0.0)

DEPENDENCIES:
Expand Down Expand Up @@ -55,8 +55,8 @@ SPEC CHECKSUMS:
PWCoreSDK: f4957795273e12a886ab01e5aa07f67cce305c9d
PWGameUIPlugin: 94cb50a2f9e3ff698008c8b314e36d805290a393
PWMyCardPlugin: e9960d1b874204f1e87194eaa48530def33d1725
PWWechatpayPlugin: 8f4e38c763877983f84710336b38af70455b39bb
PWWechatpayPlugin: 04ba61b9850fa9d38eda91b88d2c9a28276c725d

PODFILE CHECKSUM: a586364a0697ab5d6f69699db3127c43ff75867b

COCOAPODS: 1.8.4
COCOAPODS: 1.11.3
5 changes: 3 additions & 2 deletions pw-ios-sdk-demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
TargetAttributes = {
9CCFE4661ECE9CF5005627E0 = {
CreatedOnToolsVersion = 8.3.2;
DevelopmentTeam = 37N222R38X;
LastSwiftMigration = 0930;
ProvisioningStyle = Automatic;
};
Expand Down Expand Up @@ -371,7 +372,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 37N222R38X;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "pw-ios-sdk-demo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand All @@ -390,7 +391,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 37N222R38X;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "pw-ios-sdk-demo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand Down
9 changes: 9 additions & 0 deletions pw-ios-sdk-demo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
//Fix Nav Bar tint issue in iOS 15.0 or later
if #available(iOS 15, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = UIColor.systemYellow
UINavigationBar.appearance().standardAppearance = appearance
UINavigationBar.appearance().scrollEdgeAppearance = appearance
}

return true
}

Expand Down
4 changes: 2 additions & 2 deletions pw-ios-sdk-demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class ViewController: UIViewController {
func setupPaymentwall() {
self.setupUI()

PWCoreSDK.sharedInstance().setGlobalProjectKey("YOUR_PUBLIC_KEY")
PWCoreSDK.sharedInstance().setGlobalSecretKey("YOUR_SECRET_KEY")
PWCoreSDK.sharedInstance().setGlobalProjectKey("b1cae8467f36c08ee295c5c2ab65a384")
PWCoreSDK.sharedInstance().setGlobalSecretKey("545f683307fb303041c049e975a76dd7")

brick = PWOptionBrick()
brick.setCardScannerPlugin(PWCardScannerPlugin())
Expand Down

0 comments on commit ad48ae2

Please sign in to comment.