judokit-react-native 3.5.0 → 4.1.0
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/JudoPay.tsx +33 -37
- package/RNJudopay.podspec +1 -1
- package/android/build.gradle +113 -124
- package/android/src/main/java/com/reactlibrary/Extensions.kt +153 -386
- package/android/src/main/java/com/reactlibrary/Helpers.kt +79 -21
- package/ios/.xcode.env +11 -0
- package/ios/Classes/RNJudo.m +1 -1
- package/ios/Classes/Wrappers/RNWrappers.m +23 -34
- package/ios/Podfile +28 -58
- package/ios/Podfile.lock +419 -210
- package/ios/RNJudo.xcodeproj/project.pbxproj +21 -22
- package/ios/RNJudo.xcodeproj/xcshareddata/xcschemes/RNJudo.xcscheme +1 -1
- package/package.json +29 -25
- package/types/JudoGooglePayTypes.tsx +21 -3
- package/types/JudoTypes.tsx +10 -6
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
44B2907D244E491B009DF232 /* NSDictionary+JudoConvert.m in Sources */ = {isa = PBXBuildFile; fileRef = 44B29075244E491A009DF232 /* NSDictionary+JudoConvert.m */; };
|
|
27
27
|
44B2907E244E491B009DF232 /* RNApplePayWrappers.m in Sources */ = {isa = PBXBuildFile; fileRef = 44B2907A244E491B009DF232 /* RNApplePayWrappers.m */; };
|
|
28
28
|
44B2907F244E491B009DF232 /* RNWrappers.m in Sources */ = {isa = PBXBuildFile; fileRef = 44B2907B244E491B009DF232 /* RNWrappers.m */; };
|
|
29
|
-
|
|
29
|
+
AD16583B292D17890022AAD6 /* libPods-RNJudo-RNJudoTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AD16583A292D17890022AAD6 /* libPods-RNJudo-RNJudoTests.a */; };
|
|
30
30
|
B3E7B58A1CC2AC0600A0062D /* RNJudo.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNJudo.m */; };
|
|
31
31
|
/* End PBXBuildFile section */
|
|
32
32
|
|
|
@@ -57,11 +57,9 @@
|
|
|
57
57
|
01C87484245069DD0035A1C1 /* UIColor+RNAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIColor+RNAdditions.h"; sourceTree = "<group>"; };
|
|
58
58
|
0A314097569FF3064749EF21 /* Pods-RNJudo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNJudo.release.xcconfig"; path = "Target Support Files/Pods-RNJudo/Pods-RNJudo.release.xcconfig"; sourceTree = "<group>"; };
|
|
59
59
|
134814201AA4EA6300B7C361 /* libRNJudo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNJudo.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
60
|
-
1B2E709D2A9CC701279124F8 /* libPods-RNJudo-RNJudoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNJudo-RNJudoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
61
60
|
3007CBC1249B86BA0014CFC2 /* RNPBBAWrappers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNPBBAWrappers.h; sourceTree = "<group>"; };
|
|
62
61
|
3007CBC2249B86BA0014CFC2 /* RNPBBAWrappers.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNPBBAWrappers.m; sourceTree = "<group>"; };
|
|
63
62
|
3007CBC8249B8AB10014CFC2 /* RNPBBAWrappersTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNPBBAWrappersTests.m; sourceTree = "<group>"; };
|
|
64
|
-
302793822464861900436747 /* RNJudoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNJudoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
65
63
|
3027938D2464863900436747 /* MockConfiguration.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = MockConfiguration.json; sourceTree = "<group>"; };
|
|
66
64
|
3027938E2464863A00436747 /* RNApplePayWrappersTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNApplePayWrappersTests.m; sourceTree = "<group>"; };
|
|
67
65
|
3027938F2464863A00436747 /* RNMocks.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNMocks.m; sourceTree = "<group>"; };
|
|
@@ -82,9 +80,12 @@
|
|
|
82
80
|
82FF801E2448A9EE002A72CF /* RNTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNTypes.h; sourceTree = "<group>"; };
|
|
83
81
|
8822DAF687BA111CD8B958EB /* Pods-RNJudo-RNJudoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNJudo-RNJudoTests.debug.xcconfig"; path = "Target Support Files/Pods-RNJudo-RNJudoTests/Pods-RNJudo-RNJudoTests.debug.xcconfig"; sourceTree = "<group>"; };
|
|
84
82
|
8EB06DB5CF8F5FED0E90F44C /* libPods-RNJudo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNJudo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
83
|
+
AD16583A292D17890022AAD6 /* libPods-RNJudo-RNJudoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libPods-RNJudo-RNJudoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
84
|
+
AD16583C292D19210022AAD6 /* RNJudoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNJudoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
85
85
|
B3E7B5881CC2AC0600A0062D /* RNJudo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNJudo.h; sourceTree = "<group>"; };
|
|
86
86
|
B3E7B5891CC2AC0600A0062D /* RNJudo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNJudo.m; sourceTree = "<group>"; };
|
|
87
87
|
DEFD65C5479404919665AF19 /* Pods-RNJudo-RNJudoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNJudo-RNJudoTests.release.xcconfig"; path = "Target Support Files/Pods-RNJudo-RNJudoTests/Pods-RNJudo-RNJudoTests.release.xcconfig"; sourceTree = "<group>"; };
|
|
88
|
+
E4E7A42AAC2906CA01D268CD /* libPods-RNJudo-RNJudoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNJudo-RNJudoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
88
89
|
F3BD3206358AE029C8AD5B0C /* Pods-RNJudo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNJudo.debug.xcconfig"; path = "Target Support Files/Pods-RNJudo/Pods-RNJudo.debug.xcconfig"; sourceTree = "<group>"; };
|
|
89
90
|
/* End PBXFileReference section */
|
|
90
91
|
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
buildActionMask = 2147483647;
|
|
95
96
|
files = (
|
|
96
97
|
302793872464861A00436747 /* libRNJudo.a in Frameworks */,
|
|
97
|
-
|
|
98
|
+
AD16583B292D17890022AAD6 /* libPods-RNJudo-RNJudoTests.a in Frameworks */,
|
|
98
99
|
);
|
|
99
100
|
runOnlyForDeploymentPostprocessing = 0;
|
|
100
101
|
};
|
|
@@ -187,8 +188,8 @@
|
|
|
187
188
|
44674005246433F50012DB4C /* RNJudoTests */,
|
|
188
189
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
189
190
|
9B6791AF87E7C37C6CE084D2 /* Pods */,
|
|
190
|
-
302793822464861900436747 /* RNJudoTests.xctest */,
|
|
191
191
|
BD4E27522E8A79E29A16EB7B /* Frameworks */,
|
|
192
|
+
AD16583C292D19210022AAD6 /* RNJudoTests.xctest */,
|
|
192
193
|
);
|
|
193
194
|
sourceTree = "<group>";
|
|
194
195
|
};
|
|
@@ -206,8 +207,9 @@
|
|
|
206
207
|
BD4E27522E8A79E29A16EB7B /* Frameworks */ = {
|
|
207
208
|
isa = PBXGroup;
|
|
208
209
|
children = (
|
|
210
|
+
AD16583A292D17890022AAD6 /* libPods-RNJudo-RNJudoTests.a */,
|
|
209
211
|
8EB06DB5CF8F5FED0E90F44C /* libPods-RNJudo.a */,
|
|
210
|
-
|
|
212
|
+
E4E7A42AAC2906CA01D268CD /* libPods-RNJudo-RNJudoTests.a */,
|
|
211
213
|
);
|
|
212
214
|
name = Frameworks;
|
|
213
215
|
sourceTree = "<group>";
|
|
@@ -233,7 +235,7 @@
|
|
|
233
235
|
);
|
|
234
236
|
name = RNJudoTests;
|
|
235
237
|
productName = RNJudoTests;
|
|
236
|
-
productReference =
|
|
238
|
+
productReference = AD16583C292D19210022AAD6 /* RNJudoTests.xctest */;
|
|
237
239
|
productType = "com.apple.product-type.bundle.unit-test";
|
|
238
240
|
};
|
|
239
241
|
58B511DA1A9E6C8500147676 /* RNJudo */ = {
|
|
@@ -335,12 +337,16 @@
|
|
|
335
337
|
inputPaths = (
|
|
336
338
|
"${PODS_ROOT}/Target Support Files/Pods-RNJudo-RNJudoTests/Pods-RNJudo-RNJudoTests-frameworks.sh",
|
|
337
339
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/DeviceDNA/DeviceDNA.framework/DeviceDNA",
|
|
340
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion",
|
|
341
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog",
|
|
338
342
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Judo3DS2_iOS/Judo3DS2_iOS.framework/Judo3DS2_iOS",
|
|
339
343
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
|
|
340
344
|
);
|
|
341
345
|
name = "[CP] Embed Pods Frameworks";
|
|
342
346
|
outputPaths = (
|
|
343
347
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DeviceDNA.framework",
|
|
348
|
+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/double-conversion.framework",
|
|
349
|
+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework",
|
|
344
350
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Judo3DS2_iOS.framework",
|
|
345
351
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
|
|
346
352
|
);
|
|
@@ -378,18 +384,14 @@
|
|
|
378
384
|
);
|
|
379
385
|
inputPaths = (
|
|
380
386
|
"${PODS_ROOT}/Target Support Files/Pods-RNJudo-RNJudoTests/Pods-RNJudo-RNJudoTests-resources.sh",
|
|
381
|
-
"${PODS_ROOT}/JudoKit-iOS/Resources/judokit-icons.bundle",
|
|
382
|
-
"${PODS_ROOT}/JudoKit-iOS/Resources/judokit-resources.bundle",
|
|
383
|
-
"${PODS_ROOT}/JudoKit-iOS/Resources/judokit-countries-list.json",
|
|
384
387
|
"${PODS_CONFIGURATION_BUILD_DIR}/JudoKit-iOS/JudoKit_iOS.bundle",
|
|
388
|
+
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
|
|
385
389
|
"${PODS_CONFIGURATION_BUILD_DIR}/ZappMerchantLib/ZappMerchantLibResources.bundle",
|
|
386
390
|
);
|
|
387
391
|
name = "[CP] Copy Pods Resources";
|
|
388
392
|
outputPaths = (
|
|
389
|
-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/judokit-icons.bundle",
|
|
390
|
-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/judokit-resources.bundle",
|
|
391
|
-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/judokit-countries-list.json",
|
|
392
393
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/JudoKit_iOS.bundle",
|
|
394
|
+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
|
|
393
395
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ZappMerchantLibResources.bundle",
|
|
394
396
|
);
|
|
395
397
|
runOnlyForDeploymentPostprocessing = 0;
|
|
@@ -454,7 +456,6 @@
|
|
|
454
456
|
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
455
457
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
456
458
|
CODE_SIGN_STYLE = Automatic;
|
|
457
|
-
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
458
459
|
DEVELOPMENT_TEAM = 95V535S6TQ;
|
|
459
460
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
460
461
|
HEADER_SEARCH_PATHS = (
|
|
@@ -491,7 +492,7 @@
|
|
|
491
492
|
"$(SRCROOT)/../sample-app/ios/Pods/Headers/Public/**",
|
|
492
493
|
);
|
|
493
494
|
INFOPLIST_FILE = RNJudoTests/Info.plist;
|
|
494
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
495
|
+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
|
495
496
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
|
496
497
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
497
498
|
MTL_FAST_MATH = YES;
|
|
@@ -514,11 +515,10 @@
|
|
|
514
515
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
515
516
|
CODE_SIGN_STYLE = Automatic;
|
|
516
517
|
COPY_PHASE_STRIP = NO;
|
|
517
|
-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
518
518
|
DEVELOPMENT_TEAM = 95V535S6TQ;
|
|
519
519
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
520
520
|
INFOPLIST_FILE = RNJudoTests/Info.plist;
|
|
521
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
521
|
+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
|
522
522
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
|
523
523
|
MTL_FAST_MATH = YES;
|
|
524
524
|
PRODUCT_BUNDLE_IDENTIFIER = com.judopay.RNJudoTests;
|
|
@@ -530,7 +530,6 @@
|
|
|
530
530
|
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
531
531
|
isa = XCBuildConfiguration;
|
|
532
532
|
buildSettings = {
|
|
533
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
534
533
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
535
534
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
536
535
|
CLANG_CXX_LIBRARY = "libc++";
|
|
@@ -559,6 +558,7 @@
|
|
|
559
558
|
COPY_PHASE_STRIP = NO;
|
|
560
559
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
561
560
|
ENABLE_TESTABILITY = YES;
|
|
561
|
+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
|
|
562
562
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
563
563
|
GCC_DYNAMIC_NO_PIC = NO;
|
|
564
564
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
577
577
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
|
578
578
|
MTL_ENABLE_DEBUG_INFO = YES;
|
|
579
|
-
|
|
579
|
+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
|
|
580
580
|
SDKROOT = iphoneos;
|
|
581
581
|
};
|
|
582
582
|
name = Debug;
|
|
@@ -584,7 +584,6 @@
|
|
|
584
584
|
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
585
585
|
isa = XCBuildConfiguration;
|
|
586
586
|
buildSettings = {
|
|
587
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
588
587
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
589
588
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
590
589
|
CLANG_CXX_LIBRARY = "libc++";
|
|
@@ -613,6 +612,7 @@
|
|
|
613
612
|
COPY_PHASE_STRIP = YES;
|
|
614
613
|
ENABLE_NS_ASSERTIONS = NO;
|
|
615
614
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
615
|
+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
|
|
616
616
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
617
617
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
618
618
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
@@ -623,6 +623,7 @@
|
|
|
623
623
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
624
624
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
|
625
625
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
626
|
+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
|
|
626
627
|
SDKROOT = iphoneos;
|
|
627
628
|
VALIDATE_PRODUCT = YES;
|
|
628
629
|
};
|
|
@@ -633,7 +634,6 @@
|
|
|
633
634
|
baseConfigurationReference = F3BD3206358AE029C8AD5B0C /* Pods-RNJudo.debug.xcconfig */;
|
|
634
635
|
buildSettings = {
|
|
635
636
|
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
|
|
636
|
-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
|
|
637
637
|
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
|
638
638
|
HEADER_SEARCH_PATHS = (
|
|
639
639
|
"$(inherited)",
|
|
@@ -653,7 +653,6 @@
|
|
|
653
653
|
baseConfigurationReference = 0A314097569FF3064749EF21 /* Pods-RNJudo.release.xcconfig */;
|
|
654
654
|
buildSettings = {
|
|
655
655
|
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
|
|
656
|
-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
|
|
657
656
|
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
|
658
657
|
HEADER_SEARCH_PATHS = (
|
|
659
658
|
"$(inherited)",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "judokit-react-native",
|
|
3
3
|
"title": "Judopay React Native Module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.1.0",
|
|
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": {
|
|
8
8
|
"test": "jest --coverage",
|
|
9
|
-
"lint": "tsc && eslint '*/**/*.{ts,tsx}' --quiet",
|
|
9
|
+
"lint": "tsc && eslint '*/**/*.{js,ts,tsx}' --quiet",
|
|
10
10
|
"format": "prettier --write \"**/*.+(tsx|ts)\""
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
@@ -42,37 +42,41 @@
|
|
|
42
42
|
"licenseFilename": "LICENSE",
|
|
43
43
|
"readmeFilename": "README.md",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"react
|
|
45
|
+
"react": "*",
|
|
46
|
+
"react-native": "*"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
49
|
+
"@babel/core": "^7.12.9",
|
|
50
|
+
"@babel/runtime": "^7.12.5",
|
|
51
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
52
|
+
"@tsconfig/react-native": "^2.0.2",
|
|
53
|
+
"@types/jest": "^29.2.3",
|
|
54
|
+
"@types/react-native": "^0.69.7",
|
|
55
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.29.0",
|
|
57
|
+
"@typescript-eslint/parser": "^5.29.0",
|
|
58
|
+
"babel-jest": "^29.3.1",
|
|
59
|
+
"eslint": "^7.32.0",
|
|
60
|
+
"jest": "^29.3.1",
|
|
61
|
+
"metro-react-native-babel-preset": "^0.70.3",
|
|
56
62
|
"prettier": "^2.7.1",
|
|
57
|
-
"react": "
|
|
58
|
-
"react-native": "0.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"@types/jest": "^25.2.3",
|
|
62
|
-
"@types/react": "^16.9.23",
|
|
63
|
-
"@types/react-native": "^0.61.21",
|
|
64
|
-
"@types/react-native-dialog": "^5.6.2",
|
|
65
|
-
"@types/react-native-loading-spinner-overlay": "^0.5.2",
|
|
66
|
-
"@types/react-test-renderer": "^16.9.2",
|
|
67
|
-
"typescript": "^3.8.3"
|
|
63
|
+
"react": "18.0.0",
|
|
64
|
+
"react-native": "0.69.7",
|
|
65
|
+
"react-test-renderer": "18.0.0",
|
|
66
|
+
"typescript": "^4.4.4"
|
|
68
67
|
},
|
|
69
68
|
"jest": {
|
|
70
69
|
"preset": "react-native",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
70
|
+
"moduleFileExtensions": [
|
|
71
|
+
"ts",
|
|
72
|
+
"tsx",
|
|
73
|
+
"js"
|
|
74
|
+
],
|
|
75
|
+
"modulePathIgnorePatterns": [
|
|
76
|
+
"__tests__/JudoTestDefaults"
|
|
73
77
|
],
|
|
74
78
|
"setupFiles": [
|
|
75
|
-
"<rootDir>/
|
|
79
|
+
"<rootDir>/__mocks__/RNJudoBridge.tsx"
|
|
76
80
|
]
|
|
77
81
|
}
|
|
78
82
|
}
|
|
@@ -4,7 +4,7 @@ export enum JudoGooglePayEnvironment {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export enum JudoAddressFormat {
|
|
7
|
-
|
|
7
|
+
MIN,
|
|
8
8
|
FULL
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -18,12 +18,30 @@ export interface JudoShippingAddressParameters {
|
|
|
18
18
|
isPhoneNumberRequired: boolean
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export enum JudoGooglePayPriceStatus {
|
|
22
|
+
FINAL,
|
|
23
|
+
ESTIMATED,
|
|
24
|
+
NOT_CURRENTLY_KNOWN
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum JudoCheckoutOption {
|
|
28
|
+
DEFAULT,
|
|
29
|
+
COMPLETE_IMMEDIATE_PURCHASE
|
|
30
|
+
}
|
|
31
|
+
|
|
21
32
|
export interface JudoGooglePayConfiguration {
|
|
22
|
-
countryCode: string
|
|
23
33
|
environment: JudoGooglePayEnvironment
|
|
24
|
-
|
|
34
|
+
merchantName?: string
|
|
35
|
+
countryCode: string
|
|
36
|
+
transactionId?: string
|
|
37
|
+
totalPriceStatus: JudoGooglePayPriceStatus
|
|
38
|
+
totalPriceLabel?: string
|
|
39
|
+
checkoutOption?: JudoCheckoutOption
|
|
40
|
+
isEmailRequired?: boolean
|
|
25
41
|
isBillingAddressRequired: boolean
|
|
26
42
|
billingAddressParameters?: JudoBillingAddressParameters
|
|
27
43
|
isShippingAddressRequired: boolean
|
|
28
44
|
shippingAddressParameters?: JudoShippingAddressParameters
|
|
45
|
+
allowPrepaidCards?: boolean
|
|
46
|
+
allowCreditCards?: boolean
|
|
29
47
|
}
|
package/types/JudoTypes.tsx
CHANGED
|
@@ -47,11 +47,12 @@ export interface NetworkTimeout {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export enum JudoTransactionType {
|
|
50
|
-
Payment,
|
|
51
|
-
PreAuth,
|
|
52
|
-
RegisterCard,
|
|
53
|
-
CheckCard,
|
|
54
|
-
SaveCard
|
|
50
|
+
Payment = 1,
|
|
51
|
+
PreAuth = 2,
|
|
52
|
+
RegisterCard = 3,
|
|
53
|
+
CheckCard = 4,
|
|
54
|
+
SaveCard = 5,
|
|
55
|
+
Unknown = -1
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export enum JudoTransactionMode {
|
|
@@ -61,8 +62,10 @@ export enum JudoTransactionMode {
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export enum JudoTransactionResult {
|
|
65
|
+
Error,
|
|
64
66
|
Success,
|
|
65
|
-
Declined
|
|
67
|
+
Declined,
|
|
68
|
+
Unknown = -1
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
export interface JudoAmount {
|
|
@@ -215,6 +218,7 @@ export interface JudoCardDetails {
|
|
|
215
218
|
cardCountry?: string
|
|
216
219
|
cardFunding?: string
|
|
217
220
|
cardScheme?: string
|
|
221
|
+
cardHolderName?: string
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
export interface JudoConsumer {
|