react-native-smallcase-gateway 1.2.3 → 1.3.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/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.1](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.3.0...v1.3.1) (2022-06-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * missing success flag from transaction success response ([3b5140a](https://github.com/smallcase/react-native-smallcase-gateway/commit/3b5140aa7748a7dd7d271cbfc7ad3b7e767ba56d))
11
+
12
+ ## [1.3.0](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.2.4...v1.3.0) (2022-06-01)
13
+
14
+
15
+ ### Features
16
+
17
+ * kite native login ([26fca00](https://github.com/smallcase/react-native-smallcase-gateway/commit/26fca00a10c2ed02e3db85180c370c8bb661bc1f))
18
+
19
+ ### [1.2.4](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.2.3...v1.2.4) (2022-05-30)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * excluded arm64 arch for ios simulators ([207e3a6](https://github.com/smallcase/react-native-smallcase-gateway/commit/207e3a62a9764875d61c7888c2a1a9efcd9af796))
25
+
5
26
  ### [1.2.3](https://github.com/smallcase/react-native-smallcase-gateway/compare/v1.2.2...v1.2.3) (2022-05-30)
6
27
 
7
28
 
@@ -1,7 +1,7 @@
1
- def DEFAULT_COMPILE_SDK_VERSION = 28
1
+ def DEFAULT_COMPILE_SDK_VERSION = 30
2
2
  def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
3
3
  def DEFAULT_MIN_SDK_VERSION = 21
4
- def DEFAULT_TARGET_SDK_VERSION = 28
4
+ def DEFAULT_TARGET_SDK_VERSION = 30
5
5
 
6
6
  def safeExtGet(prop, fallback) {
7
7
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -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.2.2'
85
+ implementation 'com.smallcase.gateway:sdk:3.3.0'
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.2.3",
4
+ "version": "1.3.1",
5
5
  "description": "smallcase gateway bindings for react native",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -23,6 +23,6 @@ Pod::Spec.new do |s|
23
23
  s.requires_arc = true
24
24
 
25
25
  s.dependency "React-Core"
26
- s.dependency 'SCGateway', '3.2.2'
26
+ s.dependency 'SCGateway', '3.2.4'
27
27
  end
28
28