react-native-klarna-inapp-sdk 2.3.6 → 2.3.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/android/build.gradle
CHANGED
|
@@ -4,39 +4,34 @@ buildscript {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
ext.getExtOrDefault = { name ->
|
|
7
|
-
getExtOrFallback(name, project.properties["
|
|
7
|
+
getExtOrFallback(name, project.properties["KlarnaMobileSDKRN_" + name])
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
repositories {
|
|
11
11
|
google()
|
|
12
|
+
gradlePluginPortal()
|
|
12
13
|
mavenCentral()
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
dependencies {
|
|
16
17
|
classpath "com.android.tools.build:gradle:${getExtOrDefault('gradlePluginVersion')}"
|
|
18
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
def
|
|
21
|
-
return rootProject.
|
|
22
|
+
def getExtOrDefault(name) {
|
|
23
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["KlarnaMobileSDKRN_" + name]
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
|
|
28
|
-
|
|
29
|
-
if (isNewArchitectureEnabled()) {
|
|
30
|
-
apply plugin: "com.facebook.react"
|
|
26
|
+
def getExtOrIntegerDefault(name) {
|
|
27
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["KlarnaMobileSDKRN_" + name]).toInteger()
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
def
|
|
34
|
-
return rootProject.
|
|
30
|
+
def isNewArchitectureEnabled() {
|
|
31
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
def
|
|
38
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["lib_" + name]).toInteger()
|
|
39
|
-
}
|
|
34
|
+
def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
|
|
40
35
|
|
|
41
36
|
def supportsNamespace() {
|
|
42
37
|
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
@@ -51,6 +46,12 @@ def supportsNamespace() {
|
|
|
51
46
|
return major >= 8
|
|
52
47
|
}
|
|
53
48
|
|
|
49
|
+
apply plugin: 'com.android.library'
|
|
50
|
+
apply plugin: 'kotlin-android'
|
|
51
|
+
if (isNewArchitectureEnabled()) {
|
|
52
|
+
apply plugin: "com.facebook.react"
|
|
53
|
+
}
|
|
54
|
+
|
|
54
55
|
android {
|
|
55
56
|
if (supportsNamespace()) {
|
|
56
57
|
namespace "com.klarna.mobile.sdk.reactnative"
|
|
@@ -16,9 +16,9 @@ kotlin.code.style=official
|
|
|
16
16
|
android.useAndroidX=true
|
|
17
17
|
android.enableJetifier=true
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
KlarnaMobileSDKRN_gradlePluginVersion=7.2.1
|
|
20
|
+
KlarnaMobileSDKRN_kotlinVersion=1.7.0
|
|
21
|
+
KlarnaMobileSDKRN_minSdkVersion=21
|
|
22
|
+
KlarnaMobileSDKRN_targetSdkVersion=31
|
|
23
|
+
KlarnaMobileSDKRN_compileSdkVersion=31
|
|
24
|
+
KlarnaMobileSDKRN_ndkVersion=21.4.7075529
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-klarna-inapp-sdk",
|
|
3
3
|
"title": "Klarna Mobile SDK React Native",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.7",
|
|
5
5
|
"description": "This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"clean": "del-cli android/build ios/build TestApp/android/build TestApp/android/app/build TestApp/ios/build",
|
|
41
41
|
"pods": "pod-install --quiet",
|
|
42
42
|
"test:android": "cd TestApp/android && ./gradlew :react-native-klarna-inapp-sdk:testDebugUnitTest && cd ../..",
|
|
43
|
-
"test:ios": "cd ios && xcodebuild -workspace RNKlarnaMobileSDK.xcworkspace -scheme RNKlarnaMobileSDK -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone
|
|
43
|
+
"test:ios": "cd ios && xcodebuild test -workspace RNKlarnaMobileSDK.xcworkspace -scheme RNKlarnaMobileSDK -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15'",
|
|
44
44
|
"build:android": "cd TestApp/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
|
|
45
45
|
"build:ios": "cd TestApp/ios && xcodebuild -workspace TestApp.xcworkspace -scheme TestApp -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
|
|
46
46
|
"TestApp": "yarn --cwd TestApp"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=16"
|
|
91
91
|
},
|
|
92
|
-
"packageManager": "yarn@
|
|
92
|
+
"packageManager": "yarn@4.4.0",
|
|
93
93
|
"react-native-builder-bob": {
|
|
94
94
|
"source": "src",
|
|
95
95
|
"output": "lib",
|