diff --git a/CHANGELOG.md b/CHANGELOG.md index 35a77189..b3f93bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile index 6b6322ee..4647ba58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } diff --git a/TestApp/ios/Podfile b/TestApp/ios/Podfile index 889fa61e..8c1a5940 100644 --- a/TestApp/ios/Podfile +++ b/TestApp/ios/Podfile @@ -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 diff --git a/TestApp/ios/TestApp.xcodeproj/project.pbxproj b/TestApp/ios/TestApp.xcodeproj/project.pbxproj index a429f80d..cb29c12a 100644 --- a/TestApp/ios/TestApp.xcodeproj/project.pbxproj +++ b/TestApp/ios/TestApp.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -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++", @@ -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++", @@ -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"; @@ -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"; }; @@ -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)\"", @@ -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)\"", diff --git a/ios/Podfile b/ios/Podfile index 04303d14..6f1f6cec 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -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" diff --git a/package.json b/package.json index 1cca5787..adb7b8f2 100644 --- a/package.json +++ b/package.json @@ -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": {}, diff --git a/react-native-klarna-inapp-sdk.podspec b/react-native-klarna-inapp-sdk.podspec index 4928b01e..68daa10e 100644 --- a/react-native-klarna-inapp-sdk.podspec +++ b/react-native-klarna-inapp-sdk.podspec @@ -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