react-native-smallcase-gateway 1.3.0 → 1.3.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.3.3](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.3.2...v1.3.3) (2022-06-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Login Fallback Fragment UI ([36f2285](https://github.com/smallcase/react-native-smallcase-gateway/commit/36f228594b20c57310d6391f38a796a4ba242b6e))
11
+
12
+ ### [1.3.2](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.3.1...v1.3.2) (2022-06-02)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * LoginFallbackFragment DI injection fail ([e9342ae](https://github.com/smallcase/react-native-smallcase-gateway/commit/e9342aef588f939cb79334edb9a12e0e35a68b7b))
18
+
19
+ ### [1.3.1](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.3.0...v1.3.1) (2022-06-02)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * missing success flag from transaction success response ([3b5140a](https://github.com/smallcase/react-native-smallcase-gateway/commit/3b5140aa7748a7dd7d271cbfc7ad3b7e767ba56d))
25
+
5
26
  ## [1.3.0](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.2.4...v1.3.0) (2022-06-01)
6
27
 
7
28
 
@@ -82,7 +82,7 @@ repositories {
82
82
  dependencies {
83
83
  //noinspection GradleDynamicVersion
84
84
  implementation 'com.facebook.react:react-native:+' // From node_modules
85
- implementation 'com.smallcase.gateway:sdk:3.3.0'
85
+ implementation 'com.smallcase.gateway:sdk:3.3.2'
86
86
  implementation "androidx.core:core-ktx:1.3.1"
87
87
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
88
88
  }
@@ -122,11 +122,8 @@ class SmallcaseGatewayModule(reactContext: ReactApplicationContext?) : ReactCont
122
122
  preProvidedBrokers = safeBrokerList,
123
123
  transactionResponseListener = object : TransactionResponseListener {
124
124
  override fun onSuccess(transactionResult: TransactionResult) {
125
-
126
- val res = resultToWritableMap(transactionResult)
125
+ val res = resultToWritableMap(transactionResult, true)
127
126
  promise.resolve(res)
128
-
129
-
130
127
  }
131
128
 
132
129
  override fun onError(errorCode: Int, errorMessage: String, data: String?) {
@@ -265,10 +262,11 @@ class SmallcaseGatewayModule(reactContext: ReactApplicationContext?) : ReactCont
265
262
  return data
266
263
  }
267
264
 
268
- private fun resultToWritableMap(result: TransactionResult): WritableMap {
265
+ private fun resultToWritableMap(result: TransactionResult, success: Boolean): WritableMap {
269
266
  val writableMap: WritableMap = Arguments.createMap()
270
267
 
271
268
  writableMap.putString("data", result.data)
269
+ writableMap.putBoolean("success", success)
272
270
  writableMap.putString("transaction", result.transaction.name)
273
271
  return writableMap
274
272
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-smallcase-gateway",
3
3
  "title": "React Native Smallcase Gateway",
4
- "version": "1.3.0",
4
+ "version": "1.3.3",
5
5
  "description": "smallcase gateway bindings for react native",
6
6
  "main": "index.js",
7
7
  "files": [