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

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/Jenkinsfile CHANGED
@@ -67,6 +67,8 @@ 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 ..'
70
72
  sh 'cd TestApp/android && ./gradlew clean && ./gradlew app:assembleDebug && cd ../..'
71
73
  // apk location: TestApp/android/app/build/outputs/apk/debug/app-debug.apk
72
74
  // TODO : Upload apk
@@ -56,7 +56,7 @@ repositories {
56
56
 
57
57
  dependencies {
58
58
  implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
59
- implementation 'com.klarna.mobile:sdk:2.1.6'
59
+ implementation 'com.klarna.mobile:sdk:2.2.1'
60
60
 
61
61
  testImplementation "junit:junit:4.13"
62
62
  testImplementation 'androidx.test:core:1.2.0'
@@ -5,6 +5,17 @@ plugins {
5
5
  group 'testapp.com'
6
6
  version '1.0-SNAPSHOT'
7
7
 
8
+ java {
9
+ sourceCompatibility JavaVersion.VERSION_1_8
10
+ targetCompatibility JavaVersion.VERSION_1_8
11
+ }
12
+
13
+ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
14
+ kotlinOptions {
15
+ jvmTarget = "1.8"
16
+ }
17
+ }
18
+
8
19
  test {
9
20
  // system properties that are read from gradle input to run integration tests on Browserstack.
10
21
  // tests will be executed on local Appium test if these properties are not provided
@@ -12,6 +23,14 @@ test {
12
23
  systemProperty 'browserstack.password', System.getProperty('browserstack.password')
13
24
  systemProperty 'build.name', System.getProperty('build.name')
14
25
  systemProperty 'build.platform', System.getProperty('build.platform')
26
+
27
+ testLogging {
28
+ events "skipped", "failed", "passed"
29
+ }
30
+
31
+ // JUnit 5
32
+ useJUnitPlatform {
33
+ }
15
34
  }
16
35
 
17
36
  repositories {
@@ -19,10 +38,22 @@ repositories {
19
38
  }
20
39
 
21
40
  dependencies {
22
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21"
41
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61"
42
+ testImplementation "org.jetbrains.kotlin:kotlin-reflect:1.3.61"
43
+
23
44
  testImplementation 'io.appium:java-client:7.4.1'
24
- testImplementation 'junit:junit:4.12'
45
+ testImplementation 'org.seleniumhq.selenium:selenium-java:3.141.59'
46
+
25
47
  testImplementation 'com.google.code.gson:gson:2.8.5'
26
- testImplementation 'org.json:json:20190722'
48
+ testImplementation 'org.json:json:20200518'
27
49
  testImplementation 'com.squareup.okhttp3:okhttp:3.12.1'
50
+
51
+ testImplementation 'org.apache.commons:commons-lang3:3.0'
52
+
53
+ // JUnit
54
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
55
+ testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
56
+ implementation 'org.junit.platform:junit-platform-suite-engine:1.8.1'
57
+ testImplementation 'org.junit-pioneer:junit-pioneer:1.5.0'
58
+ testImplementation 'io.github.artsok:rerunner-jupiter:2.1.6'
28
59
  }
@@ -0,0 +1,4 @@
1
+ junit.jupiter.execution.parallel.enabled=true
2
+ junit.jupiter.execution.parallel.mode.default=concurrent
3
+ junit.jupiter.execution.parallel.config.strategy=fixed
4
+ junit.jupiter.execution.parallel.config.fixed.parallelism=5
package/ios/Podfile CHANGED
@@ -8,7 +8,7 @@ target 'KlarnaInAppSDK' do
8
8
  # use_frameworks!
9
9
 
10
10
  # Pods for KlarnaInAppSDK
11
- pod 'KlarnaMobileSDK', '2.1.5'
11
+ pod 'KlarnaMobileSDK', '2.2.2'
12
12
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
13
13
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
14
14
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
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.6",
4
+ "version": "2.1.7",
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": {},
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
25
25
  end
26
26
 
27
27
  s.dependency "React"
28
- s.dependency 'KlarnaMobileSDK', '2.1.5'
28
+ s.dependency 'KlarnaMobileSDK', '2.2.2'
29
29
  # s.dependency "..."
30
30
 
31
31
  end