react-native-klarna-inapp-sdk 2.1.7 → 2.1.9

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.
package/.gitattributes CHANGED
@@ -1 +1,3 @@
1
- *.pbxproj -text
1
+ # Windows files should use crlf line endings
2
+ # https://help.github.com/articles/dealing-with-line-endings/
3
+ *.bat text eol=crlf
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Changelog
2
2
  All notable changes to React Native Klarna In-App SDK will be documented in this file.
3
3
 
4
+ ### [2.1.9] - 2022-10-04
5
+ - Update Android native SDK version to the latest (2.3.1)
6
+
7
+ ### [2.1.8] - 2022-09-20
8
+ - Fix react peer dependency (>=16.5.0)
9
+ - Add Gradle 7 compatibility
10
+
11
+ ### [2.1.7] - 2022-09-12
12
+ - Update iOS native SDK version to the latest (2.2.2)
13
+ - Update Android native SDK version to the latest (2.2.1)
14
+
15
+ ### [2.1.6] - 2022-03-25
16
+ - Update Android Gradle plugin version (4.2.0)
17
+
4
18
  ### [2.1.5] - 2022-03-25
5
19
  - Update Android Gradle version to the latest (7.4.1)
6
20
 
package/Jenkinsfile CHANGED
@@ -67,8 +67,6 @@ pipeline {
67
67
 
68
68
  stage('Build Android TestApp') {
69
69
  steps {
70
- sh 'cd TestApp && npx mkdirp android/app/src/main/assets/ && cd ..'
71
- sh 'cd TestApp && npx react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && cd ..'
72
70
  sh 'cd TestApp/android && ./gradlew clean && ./gradlew app:assembleDebug && cd ../..'
73
71
  // apk location: TestApp/android/app/build/outputs/apk/debug/app-debug.apk
74
72
  // TODO : Upload apk
@@ -77,7 +75,7 @@ pipeline {
77
75
 
78
76
  stage('Build iOS TestApp') {
79
77
  steps {
80
- bash 'bundle exec fastlane ios build_test_apps'
78
+ bash 'bundle exec fastlane ios build_test_app_release'
81
79
  }
82
80
  }
83
81
 
package/README.md CHANGED
@@ -68,7 +68,7 @@ We strongly encourage you to use CocoaPods to manage the library and follow the
68
68
  ```
69
69
  3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
70
70
  ```
71
- compile project(':react-native-klarna-inapp-sdk')
71
+ implementation project(':react-native-klarna-inapp-sdk')
72
72
  ```
73
73
 
74
74
  **Note:** If you encounter any build failure errors regarding the `androidx.annotations` package missing, you should enable `react-native-jetifier` in the `gradle.properties` file inside your project. See how to enable this [here](https://github.com/jumpn/react-native-jetifier).
@@ -87,11 +87,21 @@ You can do it by adding the lines between the comments below:
87
87
  allprojects {
88
88
  repositories {
89
89
  mavenLocal()
90
- google()
91
- jcenter()
92
90
  maven {
93
91
  // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
94
- url "$rootDir/../node_modules/react-native/android"
92
+ url("$rootDir/../node_modules/react-native/android")
93
+ }
94
+ maven {
95
+ // Android JSC is installed from npm
96
+ url("$rootDir/../node_modules/jsc-android/dist")
97
+ }
98
+ google()
99
+ mavenCentral {
100
+ // We don't want to fetch react-native from Maven Central as there are
101
+ // older versions over there.
102
+ content {
103
+ excludeGroup "com.facebook.react"
104
+ }
95
105
  }
96
106
  // Add the lines below vvv
97
107
  maven {
@@ -4,7 +4,7 @@ buildscript {
4
4
  }
5
5
  repositories {
6
6
  google()
7
- jcenter()
7
+ mavenCentral()
8
8
  }
9
9
 
10
10
  dependencies {
@@ -19,10 +19,10 @@ apply plugin: 'maven-publish'
19
19
 
20
20
  // Matches values in recent template from React Native (0.59)
21
21
  // https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9
22
- def DEFAULT_COMPILE_SDK_VERSION = 28
23
- def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
22
+ def DEFAULT_COMPILE_SDK_VERSION = 30
23
+ def DEFAULT_BUILD_TOOLS_VERSION = "30.0.2"
24
24
  def DEFAULT_MIN_SDK_VERSION = 19
25
- def DEFAULT_TARGET_SDK_VERSION = 28
25
+ def DEFAULT_TARGET_SDK_VERSION = 30
26
26
 
27
27
  android {
28
28
  compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
@@ -47,7 +47,6 @@ repositories {
47
47
  url "$projectDir/../node_modules/react-native/android"
48
48
  }
49
49
  mavenCentral()
50
- jcenter()
51
50
  google()
52
51
  maven {
53
52
  url 'https://x.klarnacdn.net/mobile-sdk/'
@@ -56,7 +55,7 @@ repositories {
56
55
 
57
56
  dependencies {
58
57
  implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
59
- implementation 'com.klarna.mobile:sdk:2.2.1'
58
+ implementation 'com.klarna.mobile:sdk:2.3.1'
60
59
 
61
60
  testImplementation "junit:junit:4.13"
62
61
  testImplementation 'androidx.test:core:1.2.0'
@@ -100,16 +99,19 @@ def configureReactNativePom(def pom) {
100
99
 
101
100
  afterEvaluate { project ->
102
101
 
103
- task androidJavadoc(type: Javadoc) {
104
- source = android.sourceSets.main.java.srcDirs
105
- classpath += files(android.bootClasspath)
106
- classpath += files(project.getConfigurations().getByName('compile').asList())
107
- include '**/*.java'
102
+ task androidJavadocs(type: Javadoc) {
103
+ source = android.sourceSets.main.java.srcDirs
104
+ classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
105
+ android.libraryVariants.all { variant ->
106
+ if (variant.name == 'release') {
107
+ owner.classpath += variant.javaCompileProvider.get().classpath
108
+ }
109
+ }
108
110
  }
109
111
 
110
- task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
111
- classifier = 'javadoc'
112
- from androidJavadoc.destinationDir
112
+ task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
113
+ archiveClassifier.set('javadoc')
114
+ from androidJavadocs.destinationDir
113
115
  }
114
116
 
115
117
  task androidSourcesJar(type: Jar) {
@@ -127,7 +129,7 @@ afterEvaluate { project ->
127
129
 
128
130
  artifacts {
129
131
  archives androidSourcesJar
130
- archives androidJavadocJar
132
+ archives androidJavadocsJar
131
133
  }
132
134
 
133
135
  publishing {
@@ -140,7 +142,7 @@ afterEvaluate { project ->
140
142
  description packageJson.description
141
143
 
142
144
  artifact(androidSourcesJar)
143
- artifact(androidJavadocJar)
145
+ artifact(androidJavadocsJar)
144
146
  }
145
147
  }
146
148
 
@@ -1,84 +1,84 @@
1
- @if "%DEBUG%" == "" @echo off
2
- @rem ##########################################################################
3
- @rem
4
- @rem Gradle startup script for Windows
5
- @rem
6
- @rem ##########################################################################
7
-
8
- @rem Set local scope for the variables with windows NT shell
9
- if "%OS%"=="Windows_NT" setlocal
10
-
11
- set DIRNAME=%~dp0
12
- if "%DIRNAME%" == "" set DIRNAME=.
13
- set APP_BASE_NAME=%~n0
14
- set APP_HOME=%DIRNAME%
15
-
16
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
- set DEFAULT_JVM_OPTS=
18
-
19
- @rem Find java.exe
20
- if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
- set JAVA_EXE=java.exe
23
- %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
25
-
26
- echo.
27
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
- echo.
29
- echo Please set the JAVA_HOME variable in your environment to match the
30
- echo location of your Java installation.
31
-
32
- goto fail
33
-
34
- :findJavaFromJavaHome
35
- set JAVA_HOME=%JAVA_HOME:"=%
36
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
- if exist "%JAVA_EXE%" goto init
39
-
40
- echo.
41
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
- echo.
43
- echo Please set the JAVA_HOME variable in your environment to match the
44
- echo location of your Java installation.
45
-
46
- goto fail
47
-
48
- :init
49
- @rem Get command-line arguments, handling Windows variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
-
53
- :win9xME_args
54
- @rem Slurp the command line arguments.
55
- set CMD_LINE_ARGS=
56
- set _SKIP=2
57
-
58
- :win9xME_args_slurp
59
- if "x%~1" == "x" goto execute
60
-
61
- set CMD_LINE_ARGS=%*
62
-
63
- :execute
64
- @rem Setup the command line
65
-
66
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
-
68
- @rem Execute Gradle
69
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
-
71
- :end
72
- @rem End local scope for the variables with windows NT shell
73
- if "%ERRORLEVEL%"=="0" goto mainEnd
74
-
75
- :fail
76
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
- rem the _cmd.exe /c_ return code!
78
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
- exit /b 1
80
-
81
- :mainEnd
82
- if "%OS%"=="Windows_NT" endlocal
83
-
84
- :omega
1
+ @if "%DEBUG%" == "" @echo off
2
+ @rem ##########################################################################
3
+ @rem
4
+ @rem Gradle startup script for Windows
5
+ @rem
6
+ @rem ##########################################################################
7
+
8
+ @rem Set local scope for the variables with windows NT shell
9
+ if "%OS%"=="Windows_NT" setlocal
10
+
11
+ set DIRNAME=%~dp0
12
+ if "%DIRNAME%" == "" set DIRNAME=.
13
+ set APP_BASE_NAME=%~n0
14
+ set APP_HOME=%DIRNAME%
15
+
16
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
+ set DEFAULT_JVM_OPTS=
18
+
19
+ @rem Find java.exe
20
+ if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+ set JAVA_EXE=java.exe
23
+ %JAVA_EXE% -version >NUL 2>&1
24
+ if "%ERRORLEVEL%" == "0" goto init
25
+
26
+ echo.
27
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+ echo.
29
+ echo Please set the JAVA_HOME variable in your environment to match the
30
+ echo location of your Java installation.
31
+
32
+ goto fail
33
+
34
+ :findJavaFromJavaHome
35
+ set JAVA_HOME=%JAVA_HOME:"=%
36
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+ if exist "%JAVA_EXE%" goto init
39
+
40
+ echo.
41
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+ echo.
43
+ echo Please set the JAVA_HOME variable in your environment to match the
44
+ echo location of your Java installation.
45
+
46
+ goto fail
47
+
48
+ :init
49
+ @rem Get command-line arguments, handling Windows variants
50
+
51
+ if not "%OS%" == "Windows_NT" goto win9xME_args
52
+
53
+ :win9xME_args
54
+ @rem Slurp the command line arguments.
55
+ set CMD_LINE_ARGS=
56
+ set _SKIP=2
57
+
58
+ :win9xME_args_slurp
59
+ if "x%~1" == "x" goto execute
60
+
61
+ set CMD_LINE_ARGS=%*
62
+
63
+ :execute
64
+ @rem Setup the command line
65
+
66
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
+
68
+ @rem Execute Gradle
69
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
+
71
+ :end
72
+ @rem End local scope for the variables with windows NT shell
73
+ if "%ERRORLEVEL%"=="0" goto mainEnd
74
+
75
+ :fail
76
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
+ rem the _cmd.exe /c_ return code!
78
+ if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
+ exit /b 1
80
+
81
+ :mainEnd
82
+ if "%OS%"=="Windows_NT" endlocal
83
+
84
+ :omega
@@ -11,6 +11,7 @@ import com.facebook.react.bridge.WritableMap;
11
11
  import com.facebook.react.modules.core.ReactChoreographer;
12
12
  import com.facebook.react.uimanager.UIManagerModule;
13
13
  import com.facebook.react.uimanager.events.EventDispatcher;
14
+ import com.facebook.react.uimanager.events.EventDispatcherImpl;
14
15
  import com.facebook.react.uimanager.events.EventDispatcherListener;
15
16
  import com.facebook.react.uimanager.events.RCTEventEmitter;
16
17
 
@@ -63,7 +64,7 @@ public class KlarnaPaymentEventTest {
63
64
  catalystInstance = mock(CatalystInstance.class);
64
65
 
65
66
  uiManagerModuleMock = mock(UIManagerModule.class);
66
- eventDispatcherMock = new EventDispatcher(reactContext);
67
+ eventDispatcherMock = new EventDispatcherImpl(reactContext);
67
68
  when(uiManagerModuleMock.getEventDispatcher())
68
69
  .thenReturn(eventDispatcherMock);
69
70
 
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React, {Component}from 'react';
2
2
  import { requireNativeComponent, UIManager, findNodeHandle } from 'react-native';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- class KlarnaReactPaymentView extends React.Component {
5
+ class KlarnaReactPaymentView extends Component {
6
6
 
7
7
  render() {
8
8
  return <KlarnaPaymentView {...this.props} />
@@ -1,84 +1,84 @@
1
- @if "%DEBUG%" == "" @echo off
2
- @rem ##########################################################################
3
- @rem
4
- @rem Gradle startup script for Windows
5
- @rem
6
- @rem ##########################################################################
7
-
8
- @rem Set local scope for the variables with windows NT shell
9
- if "%OS%"=="Windows_NT" setlocal
10
-
11
- set DIRNAME=%~dp0
12
- if "%DIRNAME%" == "" set DIRNAME=.
13
- set APP_BASE_NAME=%~n0
14
- set APP_HOME=%DIRNAME%
15
-
16
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
- set DEFAULT_JVM_OPTS=
18
-
19
- @rem Find java.exe
20
- if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
- set JAVA_EXE=java.exe
23
- %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
25
-
26
- echo.
27
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
- echo.
29
- echo Please set the JAVA_HOME variable in your environment to match the
30
- echo location of your Java installation.
31
-
32
- goto fail
33
-
34
- :findJavaFromJavaHome
35
- set JAVA_HOME=%JAVA_HOME:"=%
36
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
- if exist "%JAVA_EXE%" goto init
39
-
40
- echo.
41
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
- echo.
43
- echo Please set the JAVA_HOME variable in your environment to match the
44
- echo location of your Java installation.
45
-
46
- goto fail
47
-
48
- :init
49
- @rem Get command-line arguments, handling Windows variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
-
53
- :win9xME_args
54
- @rem Slurp the command line arguments.
55
- set CMD_LINE_ARGS=
56
- set _SKIP=2
57
-
58
- :win9xME_args_slurp
59
- if "x%~1" == "x" goto execute
60
-
61
- set CMD_LINE_ARGS=%*
62
-
63
- :execute
64
- @rem Setup the command line
65
-
66
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
-
68
- @rem Execute Gradle
69
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
-
71
- :end
72
- @rem End local scope for the variables with windows NT shell
73
- if "%ERRORLEVEL%"=="0" goto mainEnd
74
-
75
- :fail
76
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
- rem the _cmd.exe /c_ return code!
78
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
- exit /b 1
80
-
81
- :mainEnd
82
- if "%OS%"=="Windows_NT" endlocal
83
-
84
- :omega
1
+ @if "%DEBUG%" == "" @echo off
2
+ @rem ##########################################################################
3
+ @rem
4
+ @rem Gradle startup script for Windows
5
+ @rem
6
+ @rem ##########################################################################
7
+
8
+ @rem Set local scope for the variables with windows NT shell
9
+ if "%OS%"=="Windows_NT" setlocal
10
+
11
+ set DIRNAME=%~dp0
12
+ if "%DIRNAME%" == "" set DIRNAME=.
13
+ set APP_BASE_NAME=%~n0
14
+ set APP_HOME=%DIRNAME%
15
+
16
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
+ set DEFAULT_JVM_OPTS=
18
+
19
+ @rem Find java.exe
20
+ if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+ set JAVA_EXE=java.exe
23
+ %JAVA_EXE% -version >NUL 2>&1
24
+ if "%ERRORLEVEL%" == "0" goto init
25
+
26
+ echo.
27
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+ echo.
29
+ echo Please set the JAVA_HOME variable in your environment to match the
30
+ echo location of your Java installation.
31
+
32
+ goto fail
33
+
34
+ :findJavaFromJavaHome
35
+ set JAVA_HOME=%JAVA_HOME:"=%
36
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+ if exist "%JAVA_EXE%" goto init
39
+
40
+ echo.
41
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+ echo.
43
+ echo Please set the JAVA_HOME variable in your environment to match the
44
+ echo location of your Java installation.
45
+
46
+ goto fail
47
+
48
+ :init
49
+ @rem Get command-line arguments, handling Windows variants
50
+
51
+ if not "%OS%" == "Windows_NT" goto win9xME_args
52
+
53
+ :win9xME_args
54
+ @rem Slurp the command line arguments.
55
+ set CMD_LINE_ARGS=
56
+ set _SKIP=2
57
+
58
+ :win9xME_args_slurp
59
+ if "x%~1" == "x" goto execute
60
+
61
+ set CMD_LINE_ARGS=%*
62
+
63
+ :execute
64
+ @rem Setup the command line
65
+
66
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
+
68
+ @rem Execute Gradle
69
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
+
71
+ :end
72
+ @rem End local scope for the variables with windows NT shell
73
+ if "%ERRORLEVEL%"=="0" goto mainEnd
74
+
75
+ :fail
76
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
+ rem the _cmd.exe /c_ return code!
78
+ if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
+ exit /b 1
80
+
81
+ :mainEnd
82
+ if "%OS%"=="Windows_NT" endlocal
83
+
84
+ :omega
@@ -189,6 +189,7 @@
189
189
  7917D74F255C45FB00E16799 /* Frameworks */,
190
190
  7917D750255C45FB00E16799 /* Resources */,
191
191
  EA91F2D2A6F440BAD442A23C /* [CP] Embed Pods Frameworks */,
192
+ B66690229F4A8FE4FB514585 /* [CP] Copy Pods Resources */,
192
193
  );
193
194
  buildRules = (
194
195
  );
@@ -270,6 +271,24 @@
270
271
  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";
271
272
  showEnvVarsInLog = 0;
272
273
  };
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
+ };
273
292
  EA91F2D2A6F440BAD442A23C /* [CP] Embed Pods Frameworks */ = {
274
293
  isa = PBXShellScriptBuildPhase;
275
294
  buildActionMask = 2147483647;
package/ios/Podfile CHANGED
@@ -10,7 +10,7 @@ target 'KlarnaInAppSDK' do
10
10
  # Pods for KlarnaInAppSDK
11
11
  pod 'KlarnaMobileSDK', '2.2.2'
12
12
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
13
- pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
13
+ pod 'FBReactNativeSpec', :path => "../node_modules/react-native/React/FBReactNativeSpec"
14
14
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
15
15
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
16
16
  pod 'React', :path => '../node_modules/react-native/'
@@ -36,7 +36,11 @@ target 'KlarnaInAppSDK' do
36
36
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
37
37
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
38
38
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
39
- pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
39
+ pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'
40
+
41
+ pod 'React-callinvoker', :path => '../node_modules/react-native/ReactCommon/callinvoker'
42
+ pod 'React-perflogger', :path => '../node_modules/react-native/ReactCommon/reactperflogger'
43
+ pod 'React-runtimeexecutor', :path => '../node_modules/react-native/ReactCommon/runtimeexecutor'
40
44
 
41
45
  target 'KlarnaInAppSDKTests' do
42
46
  # Pods for testing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-klarna-inapp-sdk",
3
3
  "title": "React Native Klarna In-App SDK",
4
- "version": "2.1.7",
4
+ "version": "2.1.9",
5
5
  "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.",
6
6
  "main": "index.js",
7
7
  "scripts": {},
@@ -23,17 +23,12 @@
23
23
  "licenseFilename": "LICENSE",
24
24
  "readmeFilename": "README.md",
25
25
  "peerDependencies": {
26
- "react": "^16.5.0",
27
- "react-native": ">=0.57.0-rc.0 <1.0.x"
26
+ "react": ">=16.5.0",
27
+ "react-native": ">=0.57.0 <1.0.x"
28
28
  },
29
29
  "devDependencies": {
30
- "react": "^16.5.0",
31
- "react-native": "^0.62.1"
30
+ "react": "17.0.1",
31
+ "react-native": "0.64.0"
32
32
  },
33
- "dependencies": {
34
- "kind-of": "^6.0.3",
35
- "logkitty": "^0.7.1",
36
- "minimist": "^1.2.5",
37
- "lodash": "^4.17.20"
38
- }
33
+ "dependencies": {}
39
34
  }