judokit-react-native 3.4.0 → 3.4.1
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/RNJudopay.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactlibrary/Extensions.kt +2 -11
- package/android/src/main/java/com/reactlibrary/Helpers.kt +0 -1
- package/ios/Classes/Wrappers/RNWrappers.m +0 -1
- package/ios/Podfile +1 -1
- package/package.json +1 -1
- package/types/JudoTypes.tsx +0 -1
package/RNJudopay.podspec
CHANGED
|
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.source_files = "ios/Classes/**/*.{h,m}"
|
|
16
16
|
s.requires_arc = true
|
|
17
17
|
s.dependency "React"
|
|
18
|
-
s.dependency "JudoKit-iOS", "3.0
|
|
18
|
+
s.dependency "JudoKit-iOS", "3.1.0"
|
|
19
19
|
|
|
20
20
|
s.test_spec 'RNJudoTests' do |test_spec|
|
|
21
21
|
test_spec.source_files = 'ios/RNJudoTests/**/*.{h,m}'
|
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
102
102
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
103
103
|
|
|
104
|
-
implementation 'com.judopay:judokit-android:3.0.
|
|
104
|
+
implementation 'com.judopay:judokit-android:3.0.4'
|
|
105
105
|
|
|
106
106
|
//JUnit 5
|
|
107
107
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
|
|
@@ -164,16 +164,7 @@ internal val ReadableMap.cardAddressTown: String?
|
|
|
164
164
|
internal val ReadableMap.cardAddressCountryCode: Int?
|
|
165
165
|
get() {
|
|
166
166
|
if (cardAddress.hasKey("countryCode")) {
|
|
167
|
-
return cardAddress?.
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
return null
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
internal val ReadableMap.cardAddressBillingCountry: String?
|
|
174
|
-
get() {
|
|
175
|
-
if (cardAddress.hasKey("billingCountry")) {
|
|
176
|
-
return cardAddress?.getString("billingCountry")
|
|
167
|
+
return cardAddress?.getInt("countryCode")
|
|
177
168
|
}
|
|
178
169
|
|
|
179
170
|
return null
|
|
@@ -231,7 +222,7 @@ internal val ReadableMap.emailAddress: String?
|
|
|
231
222
|
internal val ReadableMap.threeDSTwoMaxTimeout: Int?
|
|
232
223
|
get() {
|
|
233
224
|
if (configuration.hasKey("threeDSTwoMaxTimeout")) {
|
|
234
|
-
return configuration?.
|
|
225
|
+
return configuration?.getInt("threeDSTwoMaxTimeout")
|
|
235
226
|
}
|
|
236
227
|
return null
|
|
237
228
|
}
|
|
@@ -147,7 +147,6 @@ internal fun getAddress(options: ReadableMap): Address? {
|
|
|
147
147
|
.setLine3(options.cardAddressLine3)
|
|
148
148
|
.setTown(options.cardAddressTown)
|
|
149
149
|
.setPostCode(options.cardAddressPostCode)
|
|
150
|
-
.setBillingCountry(options.cardAddressBillingCountry)
|
|
151
150
|
.setCountryCode(options.cardAddressCountryCode)
|
|
152
151
|
.build()
|
|
153
152
|
}
|
|
@@ -327,7 +327,6 @@ static NSString *const kCardSchemeAMEX = @"amex";
|
|
|
327
327
|
address2:[addressDictionary optionalStringForKey:@"line2"]
|
|
328
328
|
address3:[addressDictionary optionalStringForKey:@"line3"]
|
|
329
329
|
town:[addressDictionary optionalStringForKey:@"town"]
|
|
330
|
-
billingCountry:[addressDictionary optionalStringForKey:@"billingCountry"]
|
|
331
330
|
postCode:[addressDictionary optionalStringForKey:@"postCode"]
|
|
332
331
|
countryCode:[addressDictionary optionalNumberForKey:@"countryCode"]];
|
|
333
332
|
}
|
package/ios/Podfile
CHANGED
|
@@ -19,7 +19,7 @@ target 'RNJudo' do
|
|
|
19
19
|
# use_frameworks!
|
|
20
20
|
|
|
21
21
|
# Pods for RNJudo
|
|
22
|
-
pod "JudoKit-iOS", "3.0
|
|
22
|
+
pod "JudoKit-iOS", "3.1.0"
|
|
23
23
|
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
|
|
24
24
|
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
|
|
25
25
|
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
|
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.4.
|
|
4
|
+
"version": "3.4.1",
|
|
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": {
|