judokit-react-native 4.1.2 → 4.2.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.
Files changed (101) hide show
  1. package/JudoKit-ReactNative.podspec +42 -0
  2. package/LICENSE +1 -2
  3. package/README.md +106 -119
  4. package/android/build.gradle +65 -202
  5. package/android/gradle.properties +6 -1
  6. package/android/src/main/AndroidManifest.xml +2 -2
  7. package/android/src/main/AndroidManifestNew.xml +2 -0
  8. package/android/src/main/java/com/judopay/judokit/reactnative/Extensions.kt +382 -0
  9. package/android/src/main/java/com/judopay/judokit/reactnative/Helpers.kt +653 -0
  10. package/android/src/main/java/com/judopay/judokit/reactnative/JudoActivityEventListener.kt +49 -0
  11. package/android/src/main/java/com/judopay/judokit/reactnative/JudoKitReactNativeModule.kt +238 -0
  12. package/android/src/main/java/com/judopay/judokit/reactnative/JudoKitReactNativePackage.kt +16 -0
  13. package/ios/{Classes/Extensions → Extensions}/NSDictionary+JudoConvert.h +1 -1
  14. package/ios/{Classes/Extensions → Extensions}/NSDictionary+JudoConvert.m +2 -2
  15. package/ios/{Classes/Extensions → Extensions}/NSException+JudoValidationExceptions.h +1 -1
  16. package/ios/{Classes/Extensions → Extensions}/NSException+JudoValidationExceptions.m +1 -1
  17. package/ios/{Classes/Extensions → Extensions}/UIColor+RNAdditions.h +1 -1
  18. package/ios/{Classes/Extensions → Extensions}/UIColor+RNAdditions.m +3 -3
  19. package/ios/{Classes/RNJudo.h → JudoKitReactNative.h} +12 -6
  20. package/ios/{Classes/RNJudo.m → JudoKitReactNative.mm} +83 -81
  21. package/ios/{Classes/RNTypes.h → RNTypes.h} +8 -2
  22. package/ios/{Classes/Wrappers → Wrappers}/RNApplePayWrappers.h +1 -1
  23. package/ios/{Classes/Wrappers → Wrappers}/RNApplePayWrappers.m +105 -4
  24. package/ios/{Classes/Wrappers → Wrappers}/RNWrappers.h +14 -14
  25. package/ios/{Classes/Wrappers → Wrappers}/RNWrappers.m +46 -25
  26. package/lib/commonjs/index.js +268 -0
  27. package/lib/commonjs/index.js.map +1 -0
  28. package/lib/commonjs/judo-kit/index.js +212 -0
  29. package/lib/commonjs/judo-kit/index.js.map +1 -0
  30. package/lib/commonjs/types/index.js +267 -0
  31. package/lib/commonjs/types/index.js.map +1 -0
  32. package/lib/commonjs/types/judo-apple-pay-configuration.js +49 -0
  33. package/lib/commonjs/types/judo-apple-pay-configuration.js.map +1 -0
  34. package/lib/commonjs/types/judo-configuration.js +71 -0
  35. package/lib/commonjs/types/judo-configuration.js.map +1 -0
  36. package/lib/commonjs/types/judo-google-pay-configuration.js +28 -0
  37. package/lib/commonjs/types/judo-google-pay-configuration.js.map +1 -0
  38. package/lib/module/index.js +6 -0
  39. package/lib/module/index.js.map +1 -0
  40. package/lib/module/judo-kit/index.js +205 -0
  41. package/lib/module/judo-kit/index.js.map +1 -0
  42. package/lib/module/types/index.js +8 -0
  43. package/lib/module/types/index.js.map +1 -0
  44. package/lib/module/types/judo-apple-pay-configuration.js +43 -0
  45. package/lib/module/types/judo-apple-pay-configuration.js.map +1 -0
  46. package/lib/module/types/judo-configuration.js +65 -0
  47. package/lib/module/types/judo-configuration.js.map +1 -0
  48. package/lib/module/types/judo-google-pay-configuration.js +22 -0
  49. package/lib/module/types/judo-google-pay-configuration.js.map +1 -0
  50. package/lib/typescript/src/index.d.ts +4 -0
  51. package/lib/typescript/src/index.d.ts.map +1 -0
  52. package/lib/typescript/src/judo-kit/index.d.ts +86 -0
  53. package/lib/typescript/src/judo-kit/index.d.ts.map +1 -0
  54. package/lib/typescript/src/types/index.d.ts +4 -0
  55. package/lib/typescript/src/types/index.d.ts.map +1 -0
  56. package/lib/typescript/src/types/judo-apple-pay-configuration.d.ts +75 -0
  57. package/lib/typescript/src/types/judo-apple-pay-configuration.d.ts.map +1 -0
  58. package/lib/typescript/src/types/judo-configuration.d.ts +236 -0
  59. package/lib/typescript/src/types/judo-configuration.d.ts.map +1 -0
  60. package/lib/typescript/src/types/judo-google-pay-configuration.d.ts +42 -0
  61. package/lib/typescript/src/types/judo-google-pay-configuration.d.ts.map +1 -0
  62. package/package.json +158 -79
  63. package/src/index.tsx +50 -0
  64. package/src/judo-kit/index.ts +262 -0
  65. package/src/types/index.ts +53 -0
  66. package/src/types/judo-apple-pay-configuration.ts +85 -0
  67. package/src/types/judo-configuration.ts +263 -0
  68. package/src/types/judo-google-pay-configuration.ts +47 -0
  69. package/JudoPay.tsx +0 -334
  70. package/RNJudopay.podspec +0 -24
  71. package/android/src/main/java/com/reactlibrary/Extensions.kt +0 -372
  72. package/android/src/main/java/com/reactlibrary/Helpers.kt +0 -606
  73. package/android/src/main/java/com/reactlibrary/JudoReactNativeActivityEventListener.kt +0 -48
  74. package/android/src/main/java/com/reactlibrary/JudoReactNativeModule.kt +0 -257
  75. package/android/src/main/java/com/reactlibrary/JudoReactNativePBBAManager.kt +0 -52
  76. package/android/src/main/java/com/reactlibrary/JudoReactNativePackage.kt +0 -14
  77. package/components/JudoPBBAButton.ts +0 -2
  78. package/ios/.xcode.env +0 -11
  79. package/ios/Classes/Views/RNPBBAButtonManager.m +0 -42
  80. package/ios/Classes/Wrappers/RNPBBAWrappers.h +0 -40
  81. package/ios/Classes/Wrappers/RNPBBAWrappers.m +0 -57
  82. package/ios/Podfile +0 -44
  83. package/ios/Podfile.lock +0 -572
  84. package/ios/RNJudo.xcodeproj/project.pbxproj +0 -703
  85. package/ios/RNJudo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  86. package/ios/RNJudo.xcodeproj/xcshareddata/xcschemes/RNJudo.xcscheme +0 -97
  87. package/ios/RNJudo.xcworkspace/contents.xcworkspacedata +0 -10
  88. package/ios/RNJudoTests/Info.plist +0 -22
  89. package/ios/RNJudoTests/MockConfiguration.json +0 -114
  90. package/ios/RNJudoTests/NSDictionaryConvertTests.m +0 -475
  91. package/ios/RNJudoTests/RNApplePayWrappersTests.m +0 -770
  92. package/ios/RNJudoTests/RNJudoTests.m +0 -37
  93. package/ios/RNJudoTests/RNMocks.h +0 -54
  94. package/ios/RNJudoTests/RNMocks.m +0 -55
  95. package/ios/RNJudoTests/RNPBBAWrappersTests.m +0 -121
  96. package/ios/RNJudoTests/RNThemeTests.m +0 -576
  97. package/ios/RNJudoTests/RNWrappersTests.m +0 -947
  98. package/types/JudoApplePayTypes.tsx +0 -59
  99. package/types/JudoGooglePayTypes.tsx +0 -47
  100. package/types/JudoPBBATypes.tsx +0 -7
  101. package/types/JudoTypes.tsx +0 -251
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
- </Workspace>
@@ -1,97 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1340"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
18
- BuildableName = "libRNJudo.a"
19
- BlueprintName = "RNJudo"
20
- ReferencedContainer = "container:RNJudo.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES"
30
- codeCoverageEnabled = "YES"
31
- onlyGenerateCoverageForSpecifiedTargets = "YES">
32
- <CodeCoverageTargets>
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
36
- BuildableName = "libRNJudo.a"
37
- BlueprintName = "RNJudo"
38
- ReferencedContainer = "container:RNJudo.xcodeproj">
39
- </BuildableReference>
40
- </CodeCoverageTargets>
41
- <Testables>
42
- <TestableReference
43
- skipped = "NO">
44
- <BuildableReference
45
- BuildableIdentifier = "primary"
46
- BlueprintIdentifier = "302793812464861900436747"
47
- BuildableName = "RNJudoTests.xctest"
48
- BlueprintName = "RNJudoTests"
49
- ReferencedContainer = "container:RNJudo.xcodeproj">
50
- </BuildableReference>
51
- </TestableReference>
52
- </Testables>
53
- </TestAction>
54
- <LaunchAction
55
- buildConfiguration = "Debug"
56
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
57
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58
- launchStyle = "0"
59
- useCustomWorkingDirectory = "NO"
60
- ignoresPersistentStateOnLaunch = "NO"
61
- debugDocumentVersioning = "YES"
62
- debugServiceExtension = "internal"
63
- allowLocationSimulation = "YES">
64
- <MacroExpansion>
65
- <BuildableReference
66
- BuildableIdentifier = "primary"
67
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
68
- BuildableName = "libRNJudo.a"
69
- BlueprintName = "RNJudo"
70
- ReferencedContainer = "container:RNJudo.xcodeproj">
71
- </BuildableReference>
72
- </MacroExpansion>
73
- </LaunchAction>
74
- <ProfileAction
75
- buildConfiguration = "Release"
76
- shouldUseLaunchSchemeArgsEnv = "YES"
77
- savedToolIdentifier = ""
78
- useCustomWorkingDirectory = "NO"
79
- debugDocumentVersioning = "YES">
80
- <MacroExpansion>
81
- <BuildableReference
82
- BuildableIdentifier = "primary"
83
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
84
- BuildableName = "libRNJudo.a"
85
- BlueprintName = "RNJudo"
86
- ReferencedContainer = "container:RNJudo.xcodeproj">
87
- </BuildableReference>
88
- </MacroExpansion>
89
- </ProfileAction>
90
- <AnalyzeAction
91
- buildConfiguration = "Debug">
92
- </AnalyzeAction>
93
- <ArchiveAction
94
- buildConfiguration = "Release"
95
- revealArchiveInOrganizer = "YES">
96
- </ArchiveAction>
97
- </Scheme>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:RNJudo.xcodeproj">
6
- </FileRef>
7
- <FileRef
8
- location = "group:Pods/Pods.xcodeproj">
9
- </FileRef>
10
- </Workspace>
@@ -1,22 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>$(DEVELOPMENT_LANGUAGE)</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleVersion</key>
20
- <string>1</string>
21
- </dict>
22
- </plist>
@@ -1,114 +0,0 @@
1
- {
2
- "authorization": {
3
- "token": "example-token",
4
- "secret": "example-secret",
5
- },
6
- "sandboxed": true,
7
- "transactionType": 0,
8
- "configuration": {
9
- "judoId": "example-judo-id",
10
- "amount": {
11
- "value": "0.01",
12
- "currency": "GBP"
13
- },
14
- "reference": {
15
- "consumerReference": "example-consumer-reference",
16
- "paymentReference": "example-payment-reference",
17
- "metadata": {
18
- "example-key": "example-value"
19
- }
20
- },
21
- "cardAddress": {
22
- "line1": "example-line-1",
23
- "line2": "example-line-2",
24
- "line3": "example-line-3",
25
- "postCode": "example-post-code",
26
- "town": "example-town",
27
- "countryCode": 12
28
- },
29
- "uiConfiguration": {
30
- "isAVSEnabled": false,
31
- "shouldPaymentMethodsDisplayAmount": true,
32
- "shouldPaymentButtonDisplayAmount": true,
33
- "shouldPaymentMethodsVerifySecurityCode": false,
34
- "theme": {
35
- "largeTitleFont": "Avenir",
36
- "largeTitleSize": 20,
37
- "titleFont": "Avenir",
38
- "titleSize": 19,
39
- "headlineFont": "Avenir",
40
- "headlineSize": 18,
41
- "headlineLightFont": "Avenir",
42
- "headlineLightSize": 17,
43
- "bodyFont": "Avenir",
44
- "bodySize": 16,
45
- "bodyBoldFont": "Avenir",
46
- "bodyBoldSize": 15,
47
- "captionFont": "Avenir",
48
- "captionSize": 14,
49
- "captionBoldFont": "Avenir",
50
- "captionBoldSize": 13,
51
- "jpBlackColor": "#000000",
52
- "jpDarkGrayColor": "#000001",
53
- "jpGrayColor": "#000002",
54
- "jpLightGrayColor": "#000003",
55
- "jpRedColor": "#000004",
56
- "jpWhiteColor": "#000005",
57
- "buttonColor": "#000006",
58
- "buttonTitleColor": "#000007",
59
- "backButtonImage": "example-image-name",
60
- "buttonCornerRadius": 20
61
- }
62
- },
63
- "paymentMethods": 9,
64
- "supportedCardNetworks": 13,
65
- "primaryAccountDetails": {
66
- "name": "example-name",
67
- "accountNumber": "example-account-number",
68
- "dateOfBirth": "example-date-of-birth",
69
- "postCode": "example-post-code"
70
- },
71
- "applePayConfiguration": {
72
- "merchantId": "example-merchant-id",
73
- "countryCode": "GB",
74
- "paymentSummaryItems": [
75
- {
76
- "label": "example-label",
77
- "amount": "0.01",
78
- "type": 0
79
- },
80
- {
81
- "label": "example-label",
82
- "amount": "0.02",
83
- "type": 0
84
- },
85
- {
86
- "label": "example-label",
87
- "amount": "0.03",
88
- "type": 0
89
- }
90
- ],
91
- "merchantCapabilities": 1,
92
- "requiredBillingContactFields": 1,
93
- "requiredShippingContactFields": 1,
94
- "shippingMethods": [
95
- {
96
- "identifier": "example-identifier",
97
- "detail": "example-detail",
98
- "label": "example-label",
99
- "amount": "0.01",
100
- "type": 0
101
- }
102
- ],
103
- "shippingType": 1,
104
- "returnedInfo": 1
105
- },
106
- "pbbaConfiguration": {
107
- "mobileNumber": "123-123",
108
- "emailAddress": "example@mail.com",
109
- "appearsOnStatement": "Example",
110
- "deeplinkScheme": "example://scheme",
111
- "deeplinkURL": "https://google.com"
112
- }
113
- }
114
- }