payme-mini-app 0.7.1 → 0.7.2
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.96'
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (isNewArchitectureEnabled()) {
|
|
@@ -73,6 +73,11 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
73
73
|
payMEMiniApp?.setLanguage(locale)
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
@ReactMethod
|
|
77
|
+
fun closeMiniApp() {
|
|
78
|
+
payMEMiniApp?.close()
|
|
79
|
+
}
|
|
80
|
+
|
|
76
81
|
@ReactMethod
|
|
77
82
|
fun open(type: String, openingParam: ReadableMap) {
|
|
78
83
|
val action = openingParam.getString("action") ?: "PAYME"
|
|
@@ -321,11 +326,7 @@ class RNPayMEMiniAppModule(reactContext: ReactApplicationContext) :
|
|
|
321
326
|
.emit(eventName, params)
|
|
322
327
|
}
|
|
323
328
|
}
|
|
324
|
-
|
|
325
|
-
private fun closeMiniApp(){
|
|
326
|
-
payMEMiniApp?.close()
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
+
|
|
329
330
|
companion object {
|
|
330
331
|
const val NAME = "RNPayMEMiniApp"
|
|
331
332
|
}
|