Skip to content

Commit

Permalink
Merge pull request #200 from klarna/inapp-sdk/ios-v2.6.4
Browse files Browse the repository at this point in the history
Update iOS SDK version v2.6.4
  • Loading branch information
polar133 authored May 9, 2023
2 parents 872f3f6 + e2c9315 commit bafdd83
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to React Native Klarna In-App SDK will be documented in this file.

### [2.1.11] - 2023-05-09
- Update iOS native SDK version to 2.6.4

### [2.1.10] - 2022-12-14
- Update Android native SDK version to 2.4.1
- Update iOS native SDK version to 2.4.1
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pipeline {
currentSdkVersion = sdkVersion()
echo "currentSdkVersion: ${currentSdkVersion}"
}
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'sys-user', usernameVariable: 'MSDK_USER', passwordVariable: 'MSDK_PASSWORD']]) {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'msdk-aws-mac-user', usernameVariable: 'MSDK_USER', passwordVariable: 'MSDK_PASSWORD']]) {
sh 'security unlock-keychain -p $MSDK_PASSWORD login.keychain'
}
}
Expand Down
7 changes: 7 additions & 0 deletions TestApp/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ target 'TestApp' do

post_install do |installer|
react_native_post_install(installer)
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end
47 changes: 36 additions & 11 deletions TestApp/ios/TestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -444,7 +444,11 @@
);
INFOPLIST_FILE = TestAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
OTHER_LDFLAGS = (
"-ObjC",
"-lc++",
Expand All @@ -464,7 +468,11 @@
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = TestAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
OTHER_LDFLAGS = (
"-ObjC",
"-lc++",
Expand All @@ -482,20 +490,26 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 9C6FR7NUBF;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 9C6FR7NUBF;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = TestApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.klarna.devp.dev.inapp.sdk.react.native.testapp;
PRODUCT_BUNDLE_IDENTIFIER = com.klarnaltd.msdk.dist.reactnative;
PRODUCT_NAME = TestApp;
PROVISIONING_PROFILE_SPECIFIER = "InApp SDK React Native Test App Debug";
PROVISIONING_PROFILE_SPECIFIER = "MSDK DEV React Native Test App Distribution";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "MSDK DEV React Native Test App Distribution";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -512,16 +526,21 @@
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = W8PSAY4BUG;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = W8PSAY4BUG;
INFOPLIST_FILE = TestApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.klarna.entp.dinhouse.inapp.sdk.react.native.testapp;
PRODUCT_BUNDLE_IDENTIFIER = com.klarnaab.msdk.dist.reactnative;
PRODUCT_NAME = TestApp;
PROVISIONING_PROFILE_SPECIFIER = "InApp SDK React Native Test App Release";
PROVISIONING_PROFILE_SPECIFIER = "MSDK ENT React Native Test App Distribution";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "MSDK ENT React Native Test App Distribution";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
Expand Down Expand Up @@ -577,7 +596,10 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
);
LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
Expand Down Expand Up @@ -632,7 +654,10 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
);
LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target 'KlarnaInAppSDK' do
# use_frameworks!

# Pods for KlarnaInAppSDK
pod 'KlarnaMobileSDK', '2.4.1'
pod 'KlarnaMobileSDK', '2.6.4'
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/React/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-klarna-inapp-sdk",
"title": "React Native Klarna In-App SDK",
"version": "2.1.10",
"version": "2.1.11",
"description": "This library wraps Klarna’s In-App SDK and exposes its functionality as React Native components. It currently supports Klarna Payments via a Payment View component.",
"main": "index.js",
"scripts": {},
Expand Down
2 changes: 1 addition & 1 deletion react-native-klarna-inapp-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Pod::Spec.new do |s|
end

s.dependency "React"
s.dependency 'KlarnaMobileSDK', '2.4.1'
s.dependency 'KlarnaMobileSDK', '2.6.4'
# s.dependency "..."

end

0 comments on commit bafdd83

Please sign in to comment.