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

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/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
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.3] - 2021-11-16
5
- - Updated Android SDK (2.1.3) & iOS SDK (2.1.4)
4
+ ### [2.1.5] - 2022-03-25
5
+ - Update Android Gradle version to the latest (7.4.1)
6
+
7
+ ### [2.1.4] - 2022-03-24
8
+ - Update iOS SDK version to the latest (2.1.5)
9
+
10
+ ### [2.1.3] - 2022-02-10
11
+ - Updated Android SDK (2.1.4) & iOS SDK (2.1.4)
6
12
 
7
13
  ### [2.1.0] - 2021-11-16
8
14
  - Update Android SDK & iOS SDK version to the latest (2.1.0)
@@ -10,12 +10,12 @@ buildscript {
10
10
  dependencies {
11
11
  // Matches recent template from React Native (0.60)
12
12
  // https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L16
13
- classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '3.4.1')}")
13
+ classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '4.2.0')}")
14
14
  }
15
15
  }
16
16
 
17
17
  apply plugin: 'com.android.library'
18
- apply plugin: 'maven'
18
+ 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
@@ -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.4'
59
+ implementation 'com.klarna.mobile:sdk:2.1.6'
60
60
 
61
61
  testImplementation "junit:junit:4.13"
62
62
  testImplementation 'androidx.test:core:1.2.0'
@@ -130,13 +130,24 @@ afterEvaluate { project ->
130
130
  archives androidJavadocJar
131
131
  }
132
132
 
133
- task installArchives(type: Upload) {
134
- configuration = configurations.archives
135
- repositories.mavenDeployer {
136
- // Deploy to react-native-event-bridge/maven, ready to publish to npm
137
- repository url: "file://${projectDir}/../android/maven"
133
+ publishing {
134
+ publications {
135
+ sdkDefaultRelease(MavenPublication) {
136
+ def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
137
+ groupId "com.klarna"
138
+ artifactId packageJson.name
139
+ version packageJson.version
140
+ description packageJson.description
141
+
142
+ artifact(androidSourcesJar)
143
+ artifact(androidJavadocJar)
144
+ }
145
+ }
138
146
 
139
- configureReactNativePom pom
147
+ repositories {
148
+ maven {
149
+ url = uri("file://${projectDir}/../android/maven")
150
+ }
140
151
  }
141
152
  }
142
153
  }
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
  distributionPath=wrapper/dists
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-all.zip
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.4'
11
+ pod 'KlarnaMobileSDK', '2.1.5'
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.3",
4
+ "version": "2.1.6",
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.4'
28
+ s.dependency 'KlarnaMobileSDK', '2.1.5'
29
29
  # s.dependency "..."
30
30
 
31
31
  end