react-native-klarna-inapp-sdk 2.1.13 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +100 -270
  2. package/android/build.gradle +84 -106
  3. package/android/gradle.properties +7 -0
  4. package/android/src/main/AndroidManifest.xml +2 -1
  5. package/android/src/main/AndroidManifestNew.xml +4 -0
  6. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/KlarnaMobileSDKPackage.java +33 -0
  7. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/common/ArgumentsUtil.java +62 -0
  8. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/common/WebViewResizeObserver.java +100 -0
  9. package/android/src/main/java/com/klarna/{inapp/sdk → mobile/sdk/reactnative/payments}/KlarnaPaymentEvent.java +9 -19
  10. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/payments/KlarnaPaymentViewManager.java +343 -0
  11. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/payments/PaymentViewWrapper.java +78 -0
  12. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/standalonewebview/KlarnaStandaloneWebViewEvent.java +67 -0
  13. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/standalonewebview/KlarnaStandaloneWebViewEventSender.java +139 -0
  14. package/android/src/main/java/com/klarna/mobile/sdk/reactnative/standalonewebview/KlarnaStandaloneWebViewManager.java +205 -0
  15. package/android/src/newarch/java/com/klarna/mobile/sdk/reactnative/spec/RNKlarnaPaymentViewSpec.java +32 -0
  16. package/android/src/newarch/java/com/klarna/mobile/sdk/reactnative/spec/RNKlarnaStandaloneWebViewSpec.java +33 -0
  17. package/android/src/oldarch/java/com/klarna/mobile/sdk/reactnative/spec/RNKlarnaPaymentViewSpec.java +25 -0
  18. package/android/src/oldarch/java/com/klarna/mobile/sdk/reactnative/spec/RNKlarnaStandaloneWebViewSpec.java +19 -0
  19. package/android/src/test/java/com/klarna/{inapp/sdk/KlarnaPaymentViewPackageTest.java → mobile/sdk/reactnative/KlarnaMobileSDKPackageTest.java} +9 -4
  20. package/android/src/test/java/com/klarna/{inapp/sdk → mobile/sdk/reactnative/payments}/KlarnaPaymentEventTest.java +17 -20
  21. package/android/src/test/java/com/klarna/{inapp/sdk → mobile/sdk/reactnative/payments}/KlarnaPaymentViewManagerTest.java +62 -36
  22. package/ios/{KlarnaInAppSDK.xcodeproj → RNKlarnaMobileSDK.xcodeproj}/project.pbxproj +147 -87
  23. package/ios/{KlarnaInAppSDK.xcodeproj/xcshareddata/xcschemes/KlarnaInAppSDK.xcscheme → RNKlarnaMobileSDK.xcodeproj/xcshareddata/xcschemes/RNKlarnaMobileSDK.xcscheme} +9 -9
  24. package/ios/{KlarnaInAppSDK.xcodeproj/xcshareddata/xcschemes/KlarnaInAppSDKTests.xcscheme → RNKlarnaMobileSDK.xcodeproj/xcshareddata/xcschemes/RNKlarnaMobileSDKTests.xcscheme} +3 -3
  25. package/ios/Sources/KlarnaPaymentViewManager.h +5 -0
  26. package/ios/Sources/{KlarnaPaymentView.m → KlarnaPaymentViewManager.mm} +10 -15
  27. package/ios/Sources/KlarnaStandaloneWebViewManager.h +5 -0
  28. package/ios/Sources/KlarnaStandaloneWebViewManager.mm +77 -0
  29. package/ios/Sources/view/newarch/KlarnaStandaloneWebViewWrapper.h +29 -0
  30. package/ios/Sources/view/newarch/KlarnaStandaloneWebViewWrapper.mm +265 -0
  31. package/ios/Sources/view/newarch/PaymentViewWrapper.h +33 -0
  32. package/ios/Sources/view/newarch/PaymentViewWrapper.mm +240 -0
  33. package/ios/Sources/view/oldarch/KlarnaStandaloneWebViewWrapper.h +42 -0
  34. package/ios/Sources/view/oldarch/KlarnaStandaloneWebViewWrapper.mm +195 -0
  35. package/ios/Sources/view/{PaymentViewWrapper.h → oldarch/PaymentViewWrapper.h} +9 -7
  36. package/ios/Sources/view/{PaymentViewWrapper.m → oldarch/PaymentViewWrapper.mm} +40 -27
  37. package/ios/Tests/PaymentViewWrapperTests.m +8 -10
  38. package/lib/commonjs/KlarnaPaymentView.js +192 -0
  39. package/lib/commonjs/KlarnaPaymentView.js.map +1 -0
  40. package/lib/commonjs/KlarnaStandaloneWebView.js +81 -0
  41. package/lib/commonjs/KlarnaStandaloneWebView.js.map +1 -0
  42. package/lib/commonjs/index.js +28 -0
  43. package/lib/commonjs/index.js.map +1 -0
  44. package/lib/commonjs/specs/KlarnaPaymentViewNativeComponent.js +16 -0
  45. package/lib/commonjs/specs/KlarnaPaymentViewNativeComponent.js.map +1 -0
  46. package/lib/commonjs/specs/KlarnaStandaloneWebViewNativeComponent.js +16 -0
  47. package/lib/commonjs/specs/KlarnaStandaloneWebViewNativeComponent.js.map +1 -0
  48. package/lib/module/KlarnaPaymentView.js +182 -0
  49. package/lib/module/KlarnaPaymentView.js.map +1 -0
  50. package/lib/module/KlarnaStandaloneWebView.js +71 -0
  51. package/lib/module/KlarnaStandaloneWebView.js.map +1 -0
  52. package/lib/module/index.js +3 -0
  53. package/lib/module/index.js.map +1 -0
  54. package/lib/module/specs/KlarnaPaymentViewNativeComponent.js +7 -0
  55. package/lib/module/specs/KlarnaPaymentViewNativeComponent.js.map +1 -0
  56. package/lib/module/specs/KlarnaStandaloneWebViewNativeComponent.js +7 -0
  57. package/lib/module/specs/KlarnaStandaloneWebViewNativeComponent.js.map +1 -0
  58. package/lib/typescript/KlarnaPaymentView.d.ts +51 -0
  59. package/lib/typescript/KlarnaPaymentView.d.ts.map +1 -0
  60. package/lib/typescript/KlarnaStandaloneWebView.d.ts +46 -0
  61. package/lib/typescript/KlarnaStandaloneWebView.d.ts.map +1 -0
  62. package/lib/typescript/index.d.ts +3 -0
  63. package/lib/typescript/index.d.ts.map +1 -0
  64. package/lib/typescript/specs/KlarnaPaymentViewNativeComponent.d.ts +49 -0
  65. package/lib/typescript/specs/KlarnaPaymentViewNativeComponent.d.ts.map +1 -0
  66. package/lib/typescript/specs/KlarnaStandaloneWebViewNativeComponent.d.ts +65 -0
  67. package/lib/typescript/specs/KlarnaStandaloneWebViewNativeComponent.d.ts.map +1 -0
  68. package/package.json +86 -14
  69. package/react-native-klarna-inapp-sdk.podspec +32 -13
  70. package/src/KlarnaPaymentView.tsx +323 -0
  71. package/src/KlarnaStandaloneWebView.tsx +217 -0
  72. package/src/index.tsx +2 -0
  73. package/src/specs/KlarnaPaymentViewNativeComponent.ts +99 -0
  74. package/src/specs/KlarnaStandaloneWebViewNativeComponent.ts +96 -0
  75. package/.gitattributes +0 -3
  76. package/.watchmanconfig +0 -1
  77. package/.yarnrc +0 -5
  78. package/CHANGELOG.md +0 -116
  79. package/android/README.md +0 -14
  80. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  81. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  82. package/android/gradlew +0 -172
  83. package/android/gradlew.bat +0 -84
  84. package/android/src/main/java/com/klarna/inapp/sdk/HeightListener.java +0 -159
  85. package/android/src/main/java/com/klarna/inapp/sdk/KlarnaPaymentViewManager.java +0 -282
  86. package/android/src/main/java/com/klarna/inapp/sdk/KlarnaPaymentViewPackage.java +0 -25
  87. package/android/src/main/java/com/klarna/inapp/sdk/Mappable.java +0 -10
  88. package/android/src/main/java/com/klarna/inapp/sdk/MappableKlarnaPaymentsSDKError.java +0 -31
  89. package/android/src/main/java/com/klarna/inapp/sdk/PaymentViewWrapper.java +0 -131
  90. package/android/src/test/java/com/klarna/inapp/sdk/MappableKlarnaPaymentsSDKErrorTest.java +0 -45
  91. package/babel.config.js +0 -3
  92. package/integration-tests/build.gradle +0 -59
  93. package/integration-tests/gradle/wrapper/gradle-wrapper.jar +0 -0
  94. package/integration-tests/gradle/wrapper/gradle-wrapper.properties +0 -6
  95. package/integration-tests/gradlew +0 -172
  96. package/integration-tests/gradlew.bat +0 -84
  97. package/integration-tests/settings.gradle +0 -2
  98. package/integration-tests/src/test/resources/junit-platform.properties +0 -4
  99. package/ios/KlarnaInAppSDK.xcworkspace/contents.xcworkspacedata +0 -10
  100. package/ios/KlarnaInAppSDK.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  101. package/ios/Podfile +0 -73
  102. package/ios/Sources/KlarnaPaymentView.h +0 -5
  103. package/scripts/bootstrap.js +0 -29
  104. package/src/index.js +0 -72
@@ -7,12 +7,16 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 43E5A6E09ADAB49930DC3A4D /* libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 66650B59FAE015E8D19EBBFE /* libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a */; };
11
- 7693377E96E52696E396720A /* libPods-KlarnaInAppSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6ED2213AA1F7BA305CB7539F /* libPods-KlarnaInAppSDK.a */; };
10
+ 42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */; };
11
+ 42BC06032AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */; };
12
+ 42BC06052AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */; };
12
13
  7917D755255C45FB00E16799 /* PaymentViewWrapperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7917D754255C45FB00E16799 /* PaymentViewWrapperTests.m */; };
13
- 7917D757255C45FB00E16799 /* libKlarnaInAppSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134814201AA4EA6300B7C361 /* libKlarnaInAppSDK.a */; };
14
- 9CDEDC2C23475BB6006C9C97 /* PaymentViewWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CDEDC2A23475BAC006C9C97 /* PaymentViewWrapper.m */; };
15
- B3E7B58A1CC2AC0600A0062D /* KlarnaPaymentView.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* KlarnaPaymentView.m */; };
14
+ 7917D757255C45FB00E16799 /* libRNKlarnaMobileSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134814201AA4EA6300B7C361 /* libRNKlarnaMobileSDK.a */; };
15
+ 792F67C02AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 792F67BB2AB8AD7D00675E18 /* PaymentViewWrapper.mm */; };
16
+ 792F67C12AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 792F67BE2AB8AD7D00675E18 /* PaymentViewWrapper.mm */; };
17
+ B3E7B58A1CC2AC0600A0062D /* KlarnaPaymentViewManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* KlarnaPaymentViewManager.mm */; };
18
+ C950FFE559BF35928E94BF8D /* libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F7837F2C76927FD0EC420C40 /* libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a */; };
19
+ DF4C69429315E34435B953E8 /* libPods-RNKlarnaMobileSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FF5062264E440DC969A15ACA /* libPods-RNKlarnaMobileSDK.a */; };
16
20
  /* End PBXBuildFile section */
17
21
 
18
22
  /* Begin PBXContainerItemProxy section */
@@ -38,20 +42,28 @@
38
42
  /* End PBXCopyFilesBuildPhase section */
39
43
 
40
44
  /* Begin PBXFileReference section */
41
- 134814201AA4EA6300B7C361 /* libKlarnaInAppSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libKlarnaInAppSDK.a; sourceTree = BUILT_PRODUCTS_DIR; };
42
- 5DF52E0283B9572452488D7F /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.release.xcconfig"; path = "Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.release.xcconfig"; sourceTree = "<group>"; };
43
- 64D2921168A909AB18C918C7 /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.debug.xcconfig"; path = "Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.debug.xcconfig"; sourceTree = "<group>"; };
44
- 66650B59FAE015E8D19EBBFE /* libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
45
- 6ED2213AA1F7BA305CB7539F /* libPods-KlarnaInAppSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-KlarnaInAppSDK.a"; sourceTree = BUILT_PRODUCTS_DIR; };
46
- 7917D752255C45FB00E16799 /* KlarnaInAppSDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KlarnaInAppSDKTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
45
+ 134814201AA4EA6300B7C361 /* libRNKlarnaMobileSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNKlarnaMobileSDK.a; sourceTree = BUILT_PRODUCTS_DIR; };
46
+ 19C9876CD048B49EB4361DB8 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig"; sourceTree = "<group>"; };
47
+ 3FC0A2F5614F1B06C1249CA3 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig"; sourceTree = "<group>"; };
48
+ 42BC05FD2AC57D950044A9FE /* KlarnaStandaloneWebViewManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewManager.h; sourceTree = "<group>"; };
49
+ 42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewManager.mm; sourceTree = "<group>"; };
50
+ 42BC06002AC585950044A9FE /* KlarnaStandaloneWebViewWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewWrapper.h; sourceTree = "<group>"; };
51
+ 42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebViewWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KlarnaStandaloneWebViewWrapper.h; sourceTree = "<group>"; };
52
+ 42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewWrapper.mm; sourceTree = "<group>"; };
53
+ 42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaStandaloneWebViewWrapper.mm; sourceTree = "<group>"; };
54
+ 7917D752255C45FB00E16799 /* RNKlarnaMobileSDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNKlarnaMobileSDKTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
47
55
  7917D754255C45FB00E16799 /* PaymentViewWrapperTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PaymentViewWrapperTests.m; sourceTree = "<group>"; };
48
56
  7917D756255C45FB00E16799 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
49
- 9CDEDC2A23475BAC006C9C97 /* PaymentViewWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PaymentViewWrapper.m; sourceTree = "<group>"; };
50
- 9CDEDC2B23475BAC006C9C97 /* PaymentViewWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PaymentViewWrapper.h; sourceTree = "<group>"; };
51
- B3E7B5881CC2AC0600A0062D /* KlarnaPaymentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KlarnaPaymentView.h; sourceTree = "<group>"; };
52
- B3E7B5891CC2AC0600A0062D /* KlarnaPaymentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KlarnaPaymentView.m; sourceTree = "<group>"; };
53
- D2932AAB02C28EBC1B3F6454 /* Pods-KlarnaInAppSDK.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlarnaInAppSDK.debug.xcconfig"; path = "Target Support Files/Pods-KlarnaInAppSDK/Pods-KlarnaInAppSDK.debug.xcconfig"; sourceTree = "<group>"; };
54
- E3F9C4C08AF77E4A39BDE46A /* Pods-KlarnaInAppSDK.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KlarnaInAppSDK.release.xcconfig"; path = "Target Support Files/Pods-KlarnaInAppSDK/Pods-KlarnaInAppSDK.release.xcconfig"; sourceTree = "<group>"; };
57
+ 792F67BB2AB8AD7D00675E18 /* PaymentViewWrapper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PaymentViewWrapper.mm; sourceTree = "<group>"; };
58
+ 792F67BC2AB8AD7D00675E18 /* PaymentViewWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaymentViewWrapper.h; sourceTree = "<group>"; };
59
+ 792F67BE2AB8AD7D00675E18 /* PaymentViewWrapper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PaymentViewWrapper.mm; sourceTree = "<group>"; };
60
+ 792F67BF2AB8AD7D00675E18 /* PaymentViewWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaymentViewWrapper.h; sourceTree = "<group>"; };
61
+ 7A4208B9D3B0F45669A2E06F /* Pods-RNKlarnaMobileSDK.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK.release.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK/Pods-RNKlarnaMobileSDK.release.xcconfig"; sourceTree = "<group>"; };
62
+ B074D4744315BBCD94D119E9 /* Pods-RNKlarnaMobileSDK.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNKlarnaMobileSDK.debug.xcconfig"; path = "Target Support Files/Pods-RNKlarnaMobileSDK/Pods-RNKlarnaMobileSDK.debug.xcconfig"; sourceTree = "<group>"; };
63
+ B3E7B5881CC2AC0600A0062D /* KlarnaPaymentViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KlarnaPaymentViewManager.h; sourceTree = "<group>"; };
64
+ B3E7B5891CC2AC0600A0062D /* KlarnaPaymentViewManager.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KlarnaPaymentViewManager.mm; sourceTree = "<group>"; };
65
+ F7837F2C76927FD0EC420C40 /* libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
66
+ FF5062264E440DC969A15ACA /* libPods-RNKlarnaMobileSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNKlarnaMobileSDK.a"; sourceTree = BUILT_PRODUCTS_DIR; };
55
67
  /* End PBXFileReference section */
56
68
 
57
69
  /* Begin PBXFrameworksBuildPhase section */
@@ -59,7 +71,7 @@
59
71
  isa = PBXFrameworksBuildPhase;
60
72
  buildActionMask = 2147483647;
61
73
  files = (
62
- 7693377E96E52696E396720A /* libPods-KlarnaInAppSDK.a in Frameworks */,
74
+ DF4C69429315E34435B953E8 /* libPods-RNKlarnaMobileSDK.a in Frameworks */,
63
75
  );
64
76
  runOnlyForDeploymentPostprocessing = 0;
65
77
  };
@@ -67,8 +79,8 @@
67
79
  isa = PBXFrameworksBuildPhase;
68
80
  buildActionMask = 2147483647;
69
81
  files = (
70
- 7917D757255C45FB00E16799 /* libKlarnaInAppSDK.a in Frameworks */,
71
- 43E5A6E09ADAB49930DC3A4D /* libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a in Frameworks */,
82
+ 7917D757255C45FB00E16799 /* libRNKlarnaMobileSDK.a in Frameworks */,
83
+ C950FFE559BF35928E94BF8D /* libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a in Frameworks */,
72
84
  );
73
85
  runOnlyForDeploymentPostprocessing = 0;
74
86
  };
@@ -78,7 +90,7 @@
78
90
  134814211AA4EA7D00B7C361 /* Products */ = {
79
91
  isa = PBXGroup;
80
92
  children = (
81
- 134814201AA4EA6300B7C361 /* libKlarnaInAppSDK.a */,
93
+ 134814201AA4EA6300B7C361 /* libRNKlarnaMobileSDK.a */,
82
94
  );
83
95
  name = Products;
84
96
  sourceTree = "<group>";
@@ -90,7 +102,7 @@
90
102
  7917D753255C45FB00E16799 /* Tests */,
91
103
  7917D75F255C460300E16799 /* Configs */,
92
104
  134814211AA4EA7D00B7C361 /* Products */,
93
- 7917D752255C45FB00E16799 /* KlarnaInAppSDKTests.xctest */,
105
+ 7917D752255C45FB00E16799 /* RNKlarnaMobileSDKTests.xctest */,
94
106
  63E5D4CBB935C268EFA6C6E9 /* Pods */,
95
107
  CE954ABC354059DF5E32C8CA /* Frameworks */,
96
108
  );
@@ -99,10 +111,10 @@
99
111
  63E5D4CBB935C268EFA6C6E9 /* Pods */ = {
100
112
  isa = PBXGroup;
101
113
  children = (
102
- D2932AAB02C28EBC1B3F6454 /* Pods-KlarnaInAppSDK.debug.xcconfig */,
103
- E3F9C4C08AF77E4A39BDE46A /* Pods-KlarnaInAppSDK.release.xcconfig */,
104
- 64D2921168A909AB18C918C7 /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.debug.xcconfig */,
105
- 5DF52E0283B9572452488D7F /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.release.xcconfig */,
114
+ B074D4744315BBCD94D119E9 /* Pods-RNKlarnaMobileSDK.debug.xcconfig */,
115
+ 7A4208B9D3B0F45669A2E06F /* Pods-RNKlarnaMobileSDK.release.xcconfig */,
116
+ 3FC0A2F5614F1B06C1249CA3 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig */,
117
+ 19C9876CD048B49EB4361DB8 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig */,
106
118
  );
107
119
  path = Pods;
108
120
  sourceTree = "<group>";
@@ -110,8 +122,10 @@
110
122
  7917D74C255C445E00E16799 /* Sources */ = {
111
123
  isa = PBXGroup;
112
124
  children = (
113
- B3E7B5881CC2AC0600A0062D /* KlarnaPaymentView.h */,
114
- B3E7B5891CC2AC0600A0062D /* KlarnaPaymentView.m */,
125
+ B3E7B5881CC2AC0600A0062D /* KlarnaPaymentViewManager.h */,
126
+ B3E7B5891CC2AC0600A0062D /* KlarnaPaymentViewManager.mm */,
127
+ 42BC05FD2AC57D950044A9FE /* KlarnaStandaloneWebViewManager.h */,
128
+ 42BC05FE2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm */,
115
129
  9CDEDC2923475BAC006C9C97 /* view */,
116
130
  );
117
131
  path = Sources;
@@ -141,11 +155,33 @@
141
155
  path = Tests;
142
156
  sourceTree = "<group>";
143
157
  };
158
+ 792F67BA2AB8AD7D00675E18 /* newarch */ = {
159
+ isa = PBXGroup;
160
+ children = (
161
+ 792F67BB2AB8AD7D00675E18 /* PaymentViewWrapper.mm */,
162
+ 792F67BC2AB8AD7D00675E18 /* PaymentViewWrapper.h */,
163
+ 42BC06012AC5866B0044A9FE /* KlarnaStandaloneWebViewWrapper.h */,
164
+ 42BC06022AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm */,
165
+ );
166
+ path = newarch;
167
+ sourceTree = "<group>";
168
+ };
169
+ 792F67BD2AB8AD7D00675E18 /* oldarch */ = {
170
+ isa = PBXGroup;
171
+ children = (
172
+ 792F67BE2AB8AD7D00675E18 /* PaymentViewWrapper.mm */,
173
+ 792F67BF2AB8AD7D00675E18 /* PaymentViewWrapper.h */,
174
+ 42BC06002AC585950044A9FE /* KlarnaStandaloneWebViewWrapper.h */,
175
+ 42BC06042AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm */,
176
+ );
177
+ path = oldarch;
178
+ sourceTree = "<group>";
179
+ };
144
180
  9CDEDC2923475BAC006C9C97 /* view */ = {
145
181
  isa = PBXGroup;
146
182
  children = (
147
- 9CDEDC2A23475BAC006C9C97 /* PaymentViewWrapper.m */,
148
- 9CDEDC2B23475BAC006C9C97 /* PaymentViewWrapper.h */,
183
+ 792F67BA2AB8AD7D00675E18 /* newarch */,
184
+ 792F67BD2AB8AD7D00675E18 /* oldarch */,
149
185
  );
150
186
  path = view;
151
187
  sourceTree = "<group>";
@@ -153,8 +189,8 @@
153
189
  CE954ABC354059DF5E32C8CA /* Frameworks */ = {
154
190
  isa = PBXGroup;
155
191
  children = (
156
- 6ED2213AA1F7BA305CB7539F /* libPods-KlarnaInAppSDK.a */,
157
- 66650B59FAE015E8D19EBBFE /* libPods-KlarnaInAppSDK-KlarnaInAppSDKTests.a */,
192
+ FF5062264E440DC969A15ACA /* libPods-RNKlarnaMobileSDK.a */,
193
+ F7837F2C76927FD0EC420C40 /* libPods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.a */,
158
194
  );
159
195
  name = Frameworks;
160
196
  sourceTree = "<group>";
@@ -162,9 +198,9 @@
162
198
  /* End PBXGroup section */
163
199
 
164
200
  /* Begin PBXNativeTarget section */
165
- 58B511DA1A9E6C8500147676 /* KlarnaInAppSDK */ = {
201
+ 58B511DA1A9E6C8500147676 /* RNKlarnaMobileSDK */ = {
166
202
  isa = PBXNativeTarget;
167
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "KlarnaInAppSDK" */;
203
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNKlarnaMobileSDK" */;
168
204
  buildPhases = (
169
205
  16ACFD32579653CA379E1EFA /* [CP] Check Pods Manifest.lock */,
170
206
  58B511D71A9E6C8500147676 /* Sources */,
@@ -175,30 +211,30 @@
175
211
  );
176
212
  dependencies = (
177
213
  );
178
- name = KlarnaInAppSDK;
214
+ name = RNKlarnaMobileSDK;
179
215
  productName = RCTDataManager;
180
- productReference = 134814201AA4EA6300B7C361 /* libKlarnaInAppSDK.a */;
216
+ productReference = 134814201AA4EA6300B7C361 /* libRNKlarnaMobileSDK.a */;
181
217
  productType = "com.apple.product-type.library.static";
182
218
  };
183
- 7917D751255C45FB00E16799 /* KlarnaInAppSDKTests */ = {
219
+ 7917D751255C45FB00E16799 /* RNKlarnaMobileSDKTests */ = {
184
220
  isa = PBXNativeTarget;
185
- buildConfigurationList = 7917D75A255C45FB00E16799 /* Build configuration list for PBXNativeTarget "KlarnaInAppSDKTests" */;
221
+ buildConfigurationList = 7917D75A255C45FB00E16799 /* Build configuration list for PBXNativeTarget "RNKlarnaMobileSDKTests" */;
186
222
  buildPhases = (
187
223
  F3202A1F4D06889426784FDA /* [CP] Check Pods Manifest.lock */,
188
224
  7917D74E255C45FB00E16799 /* Sources */,
189
225
  7917D74F255C45FB00E16799 /* Frameworks */,
190
226
  7917D750255C45FB00E16799 /* Resources */,
191
227
  EA91F2D2A6F440BAD442A23C /* [CP] Embed Pods Frameworks */,
192
- B66690229F4A8FE4FB514585 /* [CP] Copy Pods Resources */,
228
+ F8812278ACEE51F742D42DB3 /* [CP] Copy Pods Resources */,
193
229
  );
194
230
  buildRules = (
195
231
  );
196
232
  dependencies = (
197
233
  7917D759255C45FB00E16799 /* PBXTargetDependency */,
198
234
  );
199
- name = KlarnaInAppSDKTests;
235
+ name = RNKlarnaMobileSDKTests;
200
236
  productName = Tests;
201
- productReference = 7917D752255C45FB00E16799 /* KlarnaInAppSDKTests.xctest */;
237
+ productReference = 7917D752255C45FB00E16799 /* RNKlarnaMobileSDKTests.xctest */;
202
238
  productType = "com.apple.product-type.bundle.unit-test";
203
239
  };
204
240
  /* End PBXNativeTarget section */
@@ -215,11 +251,11 @@
215
251
  };
216
252
  7917D751255C45FB00E16799 = {
217
253
  CreatedOnToolsVersion = 12.1;
218
- ProvisioningStyle = Automatic;
254
+ ProvisioningStyle = Manual;
219
255
  };
220
256
  };
221
257
  };
222
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "KlarnaInAppSDK" */;
258
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNKlarnaMobileSDK" */;
223
259
  compatibilityVersion = "Xcode 3.2";
224
260
  developmentRegion = English;
225
261
  hasScannedForEncodings = 0;
@@ -232,8 +268,8 @@
232
268
  projectDirPath = "";
233
269
  projectRoot = "";
234
270
  targets = (
235
- 58B511DA1A9E6C8500147676 /* KlarnaInAppSDK */,
236
- 7917D751255C45FB00E16799 /* KlarnaInAppSDKTests */,
271
+ 58B511DA1A9E6C8500147676 /* RNKlarnaMobileSDK */,
272
+ 7917D751255C45FB00E16799 /* RNKlarnaMobileSDKTests */,
237
273
  );
238
274
  };
239
275
  /* End PBXProject section */
@@ -264,47 +300,37 @@
264
300
  outputFileListPaths = (
265
301
  );
266
302
  outputPaths = (
267
- "$(DERIVED_FILE_DIR)/Pods-KlarnaInAppSDK-checkManifestLockResult.txt",
303
+ "$(DERIVED_FILE_DIR)/Pods-RNKlarnaMobileSDK-checkManifestLockResult.txt",
268
304
  );
269
305
  runOnlyForDeploymentPostprocessing = 0;
270
306
  shellPath = /bin/sh;
271
307
  shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
272
308
  showEnvVarsInLog = 0;
273
309
  };
274
- B66690229F4A8FE4FB514585 /* [CP] Copy Pods Resources */ = {
275
- isa = PBXShellScriptBuildPhase;
276
- buildActionMask = 2147483647;
277
- files = (
278
- );
279
- inputPaths = (
280
- "${PODS_ROOT}/Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests-resources.sh",
281
- "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
282
- );
283
- name = "[CP] Copy Pods Resources";
284
- outputPaths = (
285
- "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
286
- );
287
- runOnlyForDeploymentPostprocessing = 0;
288
- shellPath = /bin/sh;
289
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests-resources.sh\"\n";
290
- showEnvVarsInLog = 0;
291
- };
292
310
  EA91F2D2A6F440BAD442A23C /* [CP] Embed Pods Frameworks */ = {
293
311
  isa = PBXShellScriptBuildPhase;
294
312
  buildActionMask = 2147483647;
295
313
  files = (
296
314
  );
297
315
  inputPaths = (
298
- "${PODS_ROOT}/Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests-frameworks.sh",
316
+ "${PODS_ROOT}/Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests-frameworks.sh",
317
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion",
318
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog",
299
319
  "${PODS_XCFRAMEWORKS_BUILD_DIR}/KlarnaMobileSDK/full/KlarnaMobileSDK.framework/KlarnaMobileSDK",
320
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
321
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
300
322
  );
301
323
  name = "[CP] Embed Pods Frameworks";
302
324
  outputPaths = (
325
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/double-conversion.framework",
326
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework",
303
327
  "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KlarnaMobileSDK.framework",
328
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
329
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
304
330
  );
305
331
  runOnlyForDeploymentPostprocessing = 0;
306
332
  shellPath = /bin/sh;
307
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests-frameworks.sh\"\n";
333
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests-frameworks.sh\"\n";
308
334
  showEnvVarsInLog = 0;
309
335
  };
310
336
  F3202A1F4D06889426784FDA /* [CP] Check Pods Manifest.lock */ = {
@@ -322,13 +348,31 @@
322
348
  outputFileListPaths = (
323
349
  );
324
350
  outputPaths = (
325
- "$(DERIVED_FILE_DIR)/Pods-KlarnaInAppSDK-KlarnaInAppSDKTests-checkManifestLockResult.txt",
351
+ "$(DERIVED_FILE_DIR)/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests-checkManifestLockResult.txt",
326
352
  );
327
353
  runOnlyForDeploymentPostprocessing = 0;
328
354
  shellPath = /bin/sh;
329
355
  shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
330
356
  showEnvVarsInLog = 0;
331
357
  };
358
+ F8812278ACEE51F742D42DB3 /* [CP] Copy Pods Resources */ = {
359
+ isa = PBXShellScriptBuildPhase;
360
+ buildActionMask = 2147483647;
361
+ files = (
362
+ );
363
+ inputPaths = (
364
+ "${PODS_ROOT}/Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests-resources.sh",
365
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
366
+ );
367
+ name = "[CP] Copy Pods Resources";
368
+ outputPaths = (
369
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
370
+ );
371
+ runOnlyForDeploymentPostprocessing = 0;
372
+ shellPath = /bin/sh;
373
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests/Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests-resources.sh\"\n";
374
+ showEnvVarsInLog = 0;
375
+ };
332
376
  /* End PBXShellScriptBuildPhase section */
333
377
 
334
378
  /* Begin PBXSourcesBuildPhase section */
@@ -336,8 +380,12 @@
336
380
  isa = PBXSourcesBuildPhase;
337
381
  buildActionMask = 2147483647;
338
382
  files = (
339
- B3E7B58A1CC2AC0600A0062D /* KlarnaPaymentView.m in Sources */,
340
- 9CDEDC2C23475BB6006C9C97 /* PaymentViewWrapper.m in Sources */,
383
+ 42BC06032AC586C50044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */,
384
+ B3E7B58A1CC2AC0600A0062D /* KlarnaPaymentViewManager.mm in Sources */,
385
+ 792F67C02AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */,
386
+ 42BC06052AC588180044A9FE /* KlarnaStandaloneWebViewWrapper.mm in Sources */,
387
+ 42BC05FF2AC57E110044A9FE /* KlarnaStandaloneWebViewManager.mm in Sources */,
388
+ 792F67C12AB8AD7D00675E18 /* PaymentViewWrapper.mm in Sources */,
341
389
  );
342
390
  runOnlyForDeploymentPostprocessing = 0;
343
391
  };
@@ -354,7 +402,7 @@
354
402
  /* Begin PBXTargetDependency section */
355
403
  7917D759255C45FB00E16799 /* PBXTargetDependency */ = {
356
404
  isa = PBXTargetDependency;
357
- target = 58B511DA1A9E6C8500147676 /* KlarnaInAppSDK */;
405
+ target = 58B511DA1A9E6C8500147676 /* RNKlarnaMobileSDK */;
358
406
  targetProxy = 7917D758255C45FB00E16799 /* PBXContainerItemProxy */;
359
407
  };
360
408
  /* End PBXTargetDependency section */
@@ -364,7 +412,7 @@
364
412
  isa = XCBuildConfiguration;
365
413
  buildSettings = {
366
414
  ALWAYS_SEARCH_USER_PATHS = NO;
367
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
415
+ CLANG_CXX_LANGUAGE_STANDARD = "c++17";
368
416
  CLANG_CXX_LIBRARY = "libc++";
369
417
  CLANG_ENABLE_MODULES = YES;
370
418
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -388,6 +436,7 @@
388
436
  COPY_PHASE_STRIP = NO;
389
437
  ENABLE_STRICT_OBJC_MSGSEND = YES;
390
438
  ENABLE_TESTABILITY = YES;
439
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
391
440
  GCC_C_LANGUAGE_STANDARD = gnu99;
392
441
  GCC_DYNAMIC_NO_PIC = NO;
393
442
  GCC_NO_COMMON_BLOCKS = YES;
@@ -406,6 +455,9 @@
406
455
  IPHONEOS_DEPLOYMENT_TARGET = 10.0;
407
456
  MTL_ENABLE_DEBUG_INFO = YES;
408
457
  ONLY_ACTIVE_ARCH = YES;
458
+ OTHER_CFLAGS = "$(inherited)";
459
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
460
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
409
461
  SDKROOT = iphoneos;
410
462
  };
411
463
  name = Debug;
@@ -414,7 +466,7 @@
414
466
  isa = XCBuildConfiguration;
415
467
  buildSettings = {
416
468
  ALWAYS_SEARCH_USER_PATHS = NO;
417
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
469
+ CLANG_CXX_LANGUAGE_STANDARD = "c++17";
418
470
  CLANG_CXX_LIBRARY = "libc++";
419
471
  CLANG_ENABLE_MODULES = YES;
420
472
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -438,6 +490,7 @@
438
490
  COPY_PHASE_STRIP = YES;
439
491
  ENABLE_NS_ASSERTIONS = NO;
440
492
  ENABLE_STRICT_OBJC_MSGSEND = YES;
493
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
441
494
  GCC_C_LANGUAGE_STANDARD = gnu99;
442
495
  GCC_NO_COMMON_BLOCKS = YES;
443
496
  GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -448,6 +501,9 @@
448
501
  GCC_WARN_UNUSED_VARIABLE = YES;
449
502
  IPHONEOS_DEPLOYMENT_TARGET = 10.0;
450
503
  MTL_ENABLE_DEBUG_INFO = NO;
504
+ OTHER_CFLAGS = "$(inherited)";
505
+ OTHER_CPLUSPLUSFLAGS = "$(inherited)";
506
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
451
507
  SDKROOT = iphoneos;
452
508
  VALIDATE_PRODUCT = YES;
453
509
  };
@@ -455,7 +511,7 @@
455
511
  };
456
512
  58B511F01A9E6C8500147676 /* Debug */ = {
457
513
  isa = XCBuildConfiguration;
458
- baseConfigurationReference = D2932AAB02C28EBC1B3F6454 /* Pods-KlarnaInAppSDK.debug.xcconfig */;
514
+ baseConfigurationReference = B074D4744315BBCD94D119E9 /* Pods-RNKlarnaMobileSDK.debug.xcconfig */;
459
515
  buildSettings = {
460
516
  HEADER_SEARCH_PATHS = (
461
517
  "$(inherited)",
@@ -463,16 +519,16 @@
463
519
  "$(SRCROOT)/../../../React/**",
464
520
  "$(SRCROOT)/../../react-native/React/**",
465
521
  );
466
- LIBRARY_SEARCH_PATHS = "$(inherited)";
522
+ LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift$(inherited)";
467
523
  OTHER_LDFLAGS = "-ObjC";
468
- PRODUCT_NAME = KlarnaInAppSDK;
524
+ PRODUCT_NAME = RNKlarnaMobileSDK;
469
525
  SKIP_INSTALL = YES;
470
526
  };
471
527
  name = Debug;
472
528
  };
473
529
  58B511F11A9E6C8500147676 /* Release */ = {
474
530
  isa = XCBuildConfiguration;
475
- baseConfigurationReference = E3F9C4C08AF77E4A39BDE46A /* Pods-KlarnaInAppSDK.release.xcconfig */;
531
+ baseConfigurationReference = 7A4208B9D3B0F45669A2E06F /* Pods-RNKlarnaMobileSDK.release.xcconfig */;
476
532
  buildSettings = {
477
533
  HEADER_SEARCH_PATHS = (
478
534
  "$(inherited)",
@@ -480,16 +536,16 @@
480
536
  "$(SRCROOT)/../../../React/**",
481
537
  "$(SRCROOT)/../../react-native/React/**",
482
538
  );
483
- LIBRARY_SEARCH_PATHS = "$(inherited)";
539
+ LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift$(inherited)";
484
540
  OTHER_LDFLAGS = "-ObjC";
485
- PRODUCT_NAME = KlarnaInAppSDK;
541
+ PRODUCT_NAME = RNKlarnaMobileSDK;
486
542
  SKIP_INSTALL = YES;
487
543
  };
488
544
  name = Release;
489
545
  };
490
546
  7917D75B255C45FB00E16799 /* Debug */ = {
491
547
  isa = XCBuildConfiguration;
492
- baseConfigurationReference = 64D2921168A909AB18C918C7 /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.debug.xcconfig */;
548
+ baseConfigurationReference = 3FC0A2F5614F1B06C1249CA3 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.debug.xcconfig */;
493
549
  buildSettings = {
494
550
  CLANG_ANALYZER_NONNULL = YES;
495
551
  CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
@@ -500,23 +556,25 @@
500
556
  CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
501
557
  CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
502
558
  CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
503
- CODE_SIGN_STYLE = Automatic;
559
+ CODE_SIGN_STYLE = Manual;
504
560
  DEBUG_INFORMATION_FORMAT = dwarf;
561
+ DEVELOPMENT_TEAM = "";
505
562
  GCC_C_LANGUAGE_STANDARD = gnu11;
506
563
  INFOPLIST_FILE = Configs/Tests/Info.plist;
507
564
  IPHONEOS_DEPLOYMENT_TARGET = 14.1;
508
565
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
509
566
  MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
510
567
  MTL_FAST_MATH = YES;
511
- PRODUCT_BUNDLE_IDENTIFIER = com.klarna.inapp.sdk.Tests;
568
+ PRODUCT_BUNDLE_IDENTIFIER = com.klarna.mobile.sdk.reactnative.Tests;
512
569
  PRODUCT_NAME = "$(TARGET_NAME)";
570
+ PROVISIONING_PROFILE_SPECIFIER = "";
513
571
  TARGETED_DEVICE_FAMILY = "1,2";
514
572
  };
515
573
  name = Debug;
516
574
  };
517
575
  7917D75C255C45FB00E16799 /* Release */ = {
518
576
  isa = XCBuildConfiguration;
519
- baseConfigurationReference = 5DF52E0283B9572452488D7F /* Pods-KlarnaInAppSDK-KlarnaInAppSDKTests.release.xcconfig */;
577
+ baseConfigurationReference = 19C9876CD048B49EB4361DB8 /* Pods-RNKlarnaMobileSDK-RNKlarnaMobileSDKTests.release.xcconfig */;
520
578
  buildSettings = {
521
579
  CLANG_ANALYZER_NONNULL = YES;
522
580
  CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
@@ -527,16 +585,18 @@
527
585
  CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
528
586
  CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
529
587
  CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
530
- CODE_SIGN_STYLE = Automatic;
588
+ CODE_SIGN_STYLE = Manual;
531
589
  COPY_PHASE_STRIP = NO;
532
590
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
591
+ DEVELOPMENT_TEAM = "";
533
592
  GCC_C_LANGUAGE_STANDARD = gnu11;
534
593
  INFOPLIST_FILE = Configs/Tests/Info.plist;
535
594
  IPHONEOS_DEPLOYMENT_TARGET = 14.1;
536
595
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
537
596
  MTL_FAST_MATH = YES;
538
- PRODUCT_BUNDLE_IDENTIFIER = com.klarna.inapp.sdk.Tests;
597
+ PRODUCT_BUNDLE_IDENTIFIER = com.klarna.mobile.sdk.reactnative.Tests;
539
598
  PRODUCT_NAME = "$(TARGET_NAME)";
599
+ PROVISIONING_PROFILE_SPECIFIER = "";
540
600
  TARGETED_DEVICE_FAMILY = "1,2";
541
601
  };
542
602
  name = Release;
@@ -544,7 +604,7 @@
544
604
  /* End XCBuildConfiguration section */
545
605
 
546
606
  /* Begin XCConfigurationList section */
547
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "KlarnaInAppSDK" */ = {
607
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNKlarnaMobileSDK" */ = {
548
608
  isa = XCConfigurationList;
549
609
  buildConfigurations = (
550
610
  58B511ED1A9E6C8500147676 /* Debug */,
@@ -553,7 +613,7 @@
553
613
  defaultConfigurationIsVisible = 0;
554
614
  defaultConfigurationName = Release;
555
615
  };
556
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "KlarnaInAppSDK" */ = {
616
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNKlarnaMobileSDK" */ = {
557
617
  isa = XCConfigurationList;
558
618
  buildConfigurations = (
559
619
  58B511F01A9E6C8500147676 /* Debug */,
@@ -562,7 +622,7 @@
562
622
  defaultConfigurationIsVisible = 0;
563
623
  defaultConfigurationName = Release;
564
624
  };
565
- 7917D75A255C45FB00E16799 /* Build configuration list for PBXNativeTarget "KlarnaInAppSDKTests" */ = {
625
+ 7917D75A255C45FB00E16799 /* Build configuration list for PBXNativeTarget "RNKlarnaMobileSDKTests" */ = {
566
626
  isa = XCConfigurationList;
567
627
  buildConfigurations = (
568
628
  7917D75B255C45FB00E16799 /* Debug */,
@@ -15,9 +15,9 @@
15
15
  <BuildableReference
16
16
  BuildableIdentifier = "primary"
17
17
  BlueprintIdentifier = "58B511DA1A9E6C8500147676"
18
- BuildableName = "libKlarnaInAppSDK.a"
19
- BlueprintName = "KlarnaInAppSDK"
20
- ReferencedContainer = "container:KlarnaInAppSDK.xcodeproj">
18
+ BuildableName = "libRNKlarnaMobileSDK.a"
19
+ BlueprintName = "RNKlarnaMobileSDK"
20
+ ReferencedContainer = "container:RNKlarnaMobileSDK.xcodeproj">
21
21
  </BuildableReference>
22
22
  </BuildActionEntry>
23
23
  </BuildActionEntries>
@@ -33,9 +33,9 @@
33
33
  <BuildableReference
34
34
  BuildableIdentifier = "primary"
35
35
  BlueprintIdentifier = "7917D751255C45FB00E16799"
36
- BuildableName = "KlarnaInAppSDKTests.xctest"
37
- BlueprintName = "KlarnaInAppSDKTests"
38
- ReferencedContainer = "container:KlarnaInAppSDK.xcodeproj">
36
+ BuildableName = "RNKlarnaMobileSDKTests.xctest"
37
+ BlueprintName = "RNKlarnaMobileSDKTests"
38
+ ReferencedContainer = "container:RNKlarnaMobileSDK.xcodeproj">
39
39
  </BuildableReference>
40
40
  </TestableReference>
41
41
  </Testables>
@@ -61,9 +61,9 @@
61
61
  <BuildableReference
62
62
  BuildableIdentifier = "primary"
63
63
  BlueprintIdentifier = "58B511DA1A9E6C8500147676"
64
- BuildableName = "libKlarnaInAppSDK.a"
65
- BlueprintName = "KlarnaInAppSDK"
66
- ReferencedContainer = "container:KlarnaInAppSDK.xcodeproj">
64
+ BuildableName = "libRNKlarnaMobileSDK.a"
65
+ BlueprintName = "RNKlarnaMobileSDK"
66
+ ReferencedContainer = "container:RNKlarnaMobileSDK.xcodeproj">
67
67
  </BuildableReference>
68
68
  </MacroExpansion>
69
69
  </ProfileAction>
@@ -17,9 +17,9 @@
17
17
  <BuildableReference
18
18
  BuildableIdentifier = "primary"
19
19
  BlueprintIdentifier = "7917D751255C45FB00E16799"
20
- BuildableName = "KlarnaInAppSDKTests.xctest"
21
- BlueprintName = "KlarnaInAppSDKTests"
22
- ReferencedContainer = "container:KlarnaInAppSDK.xcodeproj">
20
+ BuildableName = "RNKlarnaMobileSDKTests.xctest"
21
+ BlueprintName = "RNKlarnaMobileSDKTests"
22
+ ReferencedContainer = "container:RNKlarnaMobileSDK.xcodeproj">
23
23
  </BuildableReference>
24
24
  </TestableReference>
25
25
  </Testables>
@@ -0,0 +1,5 @@
1
+ #import <React/RCTViewManager.h>
2
+
3
+ @interface KlarnaPaymentViewManager : RCTViewManager
4
+
5
+ @end