payme-mini-app 0.1.14 → 0.2.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/android/build.gradle
CHANGED
|
@@ -74,7 +74,7 @@ dependencies {
|
|
|
74
74
|
//noinspection GradleDynamicVersion
|
|
75
75
|
implementation "com.facebook.react:react-native"
|
|
76
76
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
77
|
-
implementation 'com.github.PayME-Miniapp:native-android:0.0.
|
|
77
|
+
implementation 'com.github.PayME-Miniapp:native-android:0.0.32'
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (isNewArchitectureEnabled()) {
|
|
@@ -57,9 +57,9 @@ object JsonConvert {
|
|
|
57
57
|
while (iterator.hasNext()) {
|
|
58
58
|
val key = iterator.next() as String
|
|
59
59
|
val value: Any = jsonObject.get(key)
|
|
60
|
-
if (value is Float || value is Double) {
|
|
60
|
+
if (value is Float || value is Double || value is Number) {
|
|
61
61
|
writableMap.putDouble(key, jsonObject.getDouble(key))
|
|
62
|
-
} else if (value is
|
|
62
|
+
} else if (value is Int) {
|
|
63
63
|
writableMap.putInt(key, jsonObject.getInt(key))
|
|
64
64
|
} else if (value is Boolean) {
|
|
65
65
|
writableMap.putBoolean(key, jsonObject.getBoolean(key))
|
|
@@ -81,9 +81,9 @@ object JsonConvert {
|
|
|
81
81
|
val writableArray: WritableArray = Arguments.createArray()
|
|
82
82
|
for (i in 0 until jsonArray.length()) {
|
|
83
83
|
val value: Any = jsonArray.get(i)
|
|
84
|
-
if (value is Float || value is Double) {
|
|
84
|
+
if (value is Float || value is Double || value is Number) {
|
|
85
85
|
writableArray.pushDouble(jsonArray.getDouble(i))
|
|
86
|
-
} else if (value is
|
|
86
|
+
} else if (value is Int) {
|
|
87
87
|
writableArray.pushInt(jsonArray.getInt(i))
|
|
88
88
|
} else if (value is Boolean) {
|
|
89
89
|
writableArray.pushBoolean(jsonArray.getBoolean(i))
|
package/ios/RNPayMEMiniApp.swift
CHANGED
|
@@ -37,7 +37,7 @@ class RNPayMEMiniApp: RCTEventEmitter, PayMEDelegate {
|
|
|
37
37
|
self.payme.open(with: PayMEOpeningParam(action: openAction, phone: param["phone"] as! String, data: openData), from: RNVC)
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
@objc func getBalance(_ phone: String) {
|
|
42
42
|
DispatchQueue.main.sync {
|
|
43
43
|
self.payme.getBalance(of: phone)
|
package/package.json
CHANGED
package/payme-mini-app.podspec
CHANGED
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.swift_versions = "5.0"
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency "PayMEMiniApp", "0.
|
|
19
|
+
s.dependency "PayMEMiniApp", "~> 0.1.2"
|
|
20
20
|
s.dependency "React-Core"
|
|
21
21
|
s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|