@haroldtran/react-native-pax 1.0.1 → 1.0.6

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.
@@ -81,7 +81,7 @@ dependencies {
81
81
  //! https://developer.pax.us/api/v1/files/314390436447793152/download/private#POSLink_Semi_Integration_Java_Android_V2.01.00_20240914.zip
82
82
  implementation fileTree(dir: 'libs', include: ['*.jar'])
83
83
  implementation 'androidx.core:core-ktx:1.16.0'
84
- implementation 'com.google.code.gson:gson:2.11.0'
84
+ implementation 'com.google.code.gson:gson:2.9.1'
85
85
  }
86
86
 
87
87
  if (isNewArchitectureEnabled()) {
@@ -1,4 +1,3 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.paxposlink">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
2
 
4
3
  </manifest>
@@ -132,7 +132,7 @@ class PaxPosLinkModule(
132
132
  val map = Arguments.createMap()
133
133
  map.putBoolean("status", this.status)
134
134
  map.putString("message", this.message)
135
- map.putMap("data", Utils.toWritableMap(this.data))
135
+ map.putString("data", this.data.toString())
136
136
  map.putBoolean("isPaymentSuccess", this.isPaymentSuccess)
137
137
  map.putString("cardHolder", this.cardHolder)
138
138
  map.putString("cardNumber", this.cardNumber)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haroldtran/react-native-pax",
3
- "version": "1.0.1",
3
+ "version": "1.0.6",
4
4
  "description": "React Native native module for PAX devices",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -9,6 +9,8 @@
9
9
  "files": [
10
10
  "src",
11
11
  "lib",
12
+ "*.ts",
13
+ "*.js",
12
14
  "android",
13
15
  "ios",
14
16
  "cpp",
@@ -34,7 +36,8 @@
34
36
  "react-native-pax-poslink.podspec",
35
37
  "README.md",
36
38
  "tsconfig.build.json",
37
- "tsconfig.json"
39
+ "tsconfig.json",
40
+ "react-native.config.mjs"
38
41
  ],
39
42
  "scripts": {
40
43
  "prebuild": "yarn && yarn typecheck && yarn lint && yarn prepack",
@@ -4,18 +4,16 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
  folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
5
 
6
6
  Pod::Spec.new do |s|
7
- s.name = "@haroldtran/react-native-pax"
7
+ s.name = "react-native-pax"
8
8
  s.version = package["version"]
9
9
  s.summary = package["description"]
10
10
  s.homepage = package["homepage"]
11
11
  s.license = package["license"]
12
12
  s.authors = package["author"]
13
-
14
- s.platforms = { :ios => "11.0" }
15
13
  s.source = { :git => "https://github.com/phattran1201/react-native-pax.git", :tag => "#{s.version}" }
16
14
 
15
+ s.platforms = { :ios => "12.0" }
17
16
  s.source_files = "ios/**/*.{h,m,mm}"
18
-
19
17
  s.dependency "React-Core"
20
18
 
21
19
  # Don't install the dependencies when we run `pod install` in the old architecture.
@@ -0,0 +1,7 @@
1
+ export default {
2
+ dependency: {
3
+ platforms: {
4
+ ios: null,
5
+ },
6
+ },
7
+ };