judokit-react-native 3.3.7 → 3.3.8
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/README.md
CHANGED
|
@@ -60,9 +60,9 @@ JudoPay's React Native module and sample app. This module is a wrapper around th
|
|
|
60
60
|
allprojects {
|
|
61
61
|
repositories {
|
|
62
62
|
mavenLocal()
|
|
63
|
+
|
|
64
|
+
mavenCentral()
|
|
63
65
|
google()
|
|
64
|
-
jcenter()
|
|
65
|
-
maven { url 'https://jitpack.io' }
|
|
66
66
|
maven {
|
|
67
67
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
68
68
|
url("$rootDir/../node_modules/react-native/android")
|
package/android/build.gradle
CHANGED
|
@@ -7,37 +7,32 @@ apply plugin: 'de.mannodermaus.android-junit5'
|
|
|
7
7
|
|
|
8
8
|
import groovy.json.JsonSlurper
|
|
9
9
|
|
|
10
|
-
def DEFAULT_COMPILE_SDK_VERSION =
|
|
11
|
-
def DEFAULT_BUILD_TOOLS_VERSION = "
|
|
10
|
+
def DEFAULT_COMPILE_SDK_VERSION = 31
|
|
11
|
+
def DEFAULT_BUILD_TOOLS_VERSION = "30.0.3"
|
|
12
12
|
def DEFAULT_MIN_SDK_VERSION = 19
|
|
13
|
-
def DEFAULT_TARGET_SDK_VERSION =
|
|
13
|
+
def DEFAULT_TARGET_SDK_VERSION = 31
|
|
14
14
|
|
|
15
15
|
def safeExtGet(prop, fallback) {
|
|
16
16
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
buildscript {
|
|
20
|
-
ext.kotlin_version = '1.
|
|
20
|
+
ext.kotlin_version = '1.6.10'
|
|
21
21
|
ext.junit5_version = '5.7.0'
|
|
22
22
|
|
|
23
23
|
repositories {
|
|
24
|
+
maven { url 'https://plugins.gradle.org/m2/' }
|
|
25
|
+
|
|
26
|
+
mavenCentral()
|
|
24
27
|
google()
|
|
25
|
-
jcenter()
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
dependencies {
|
|
29
|
-
classpath 'com.android.tools.build:gradle:3.5.
|
|
31
|
+
classpath 'com.android.tools.build:gradle:3.5.4'
|
|
30
32
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
31
33
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
|
32
|
-
classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.7.
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
allprojects {
|
|
36
|
-
repositories {
|
|
37
|
-
maven { url "http://pay.cards/maven" }
|
|
38
|
-
}
|
|
34
|
+
classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1'
|
|
39
35
|
}
|
|
40
|
-
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
android {
|
|
@@ -86,9 +81,10 @@ android {
|
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
repositories {
|
|
84
|
+
mavenLocal()
|
|
85
|
+
|
|
89
86
|
mavenCentral()
|
|
90
87
|
google()
|
|
91
|
-
jcenter()
|
|
92
88
|
|
|
93
89
|
maven { url "$projectDir/../node_modules/react-native/android" }
|
|
94
90
|
}
|
|
@@ -96,14 +92,14 @@ repositories {
|
|
|
96
92
|
dependencies {
|
|
97
93
|
//noinspection GradleDynamicVersion
|
|
98
94
|
implementation 'com.facebook.react:react-native:+'
|
|
99
|
-
implementation 'androidx.appcompat:appcompat:1.1
|
|
100
|
-
implementation 'androidx.appcompat:appcompat-resources:1.1
|
|
95
|
+
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
96
|
+
implementation 'androidx.appcompat:appcompat-resources:1.4.1'
|
|
101
97
|
implementation 'com.google.android.gms:play-services-wallet:18.0.0'
|
|
102
|
-
implementation 'androidx.core:core-ktx:1.
|
|
98
|
+
implementation 'androidx.core:core-ktx:1.7.0'
|
|
103
99
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
104
|
-
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.
|
|
100
|
+
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
105
101
|
|
|
106
|
-
implementation 'com.judopay:judokit-android:2.1.
|
|
102
|
+
implementation 'com.judopay:judokit-android:2.1.9'
|
|
107
103
|
|
|
108
104
|
//JUnit 5
|
|
109
105
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
|
|
@@ -111,7 +107,7 @@ dependencies {
|
|
|
111
107
|
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5_version"
|
|
112
108
|
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5_version"
|
|
113
109
|
|
|
114
|
-
testImplementation 'androidx.test:core:1.
|
|
110
|
+
testImplementation 'androidx.test:core:1.4.0'
|
|
115
111
|
testImplementation 'io.mockk:mockk:1.10.0'
|
|
116
112
|
testImplementation 'android.arch.core:core-testing:1.1.1'
|
|
117
113
|
}
|
|
@@ -174,8 +170,8 @@ afterEvaluate { project ->
|
|
|
174
170
|
|
|
175
171
|
android.libraryVariants.all { variant ->
|
|
176
172
|
def name = variant.name.capitalize()
|
|
177
|
-
task "jar${name}"(type: Jar, dependsOn: variant.
|
|
178
|
-
from variant.
|
|
173
|
+
task "jar${name}"(type: Jar, dependsOn: variant.javaCompileProvider.get()) {
|
|
174
|
+
from variant.javaCompileProvider.get().destinationDir
|
|
179
175
|
}
|
|
180
176
|
}
|
|
181
177
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
package com.reactlibrary
|
|
2
2
|
|
|
3
|
+
import android.widget.Button
|
|
3
4
|
import com.facebook.react.uimanager.SimpleViewManager
|
|
4
5
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
5
|
-
import com.judopay.judokit.android.ui.common.PayByBankButton
|
|
6
6
|
|
|
7
|
-
class JudoReactNativePBBAManager: SimpleViewManager<
|
|
7
|
+
class JudoReactNativePBBAManager: SimpleViewManager<Button>() {
|
|
8
8
|
|
|
9
9
|
override fun getName(): String {
|
|
10
10
|
return "RNPBBAButton"
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
override fun createViewInstance(reactContext: ThemedReactContext):
|
|
14
|
-
return
|
|
13
|
+
override fun createViewInstance(reactContext: ThemedReactContext): Button {
|
|
14
|
+
return Button(reactContext)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "judokit-react-native",
|
|
3
3
|
"title": "Judopay React Native Module",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.8",
|
|
5
5
|
"description": "A React Native module for the Judopay native SDKs to take payments on iOS and Android.",
|
|
6
6
|
"main": "JudoPay.tsx",
|
|
7
7
|
"scripts": {
|