@soyio/soyio-rn-sdk 4.0.0 → 4.0.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/README.md CHANGED
@@ -99,7 +99,27 @@ After installing the package and peer dependencies, run:
99
99
  cd ios && pod install
100
100
  ```
101
101
 
102
- ### 2. Permissions
102
+ ### 2. Apple Silicon Simulator Compatibility
103
+
104
+ `FaceTecSDK.framework` ships with `x86_64` for simulator and `arm64` for physical devices. On Apple Silicon Macs, iOS simulator builds may fail when Xcode tries to link the device `arm64` slice.
105
+
106
+ From this SDK version onward, the podspec excludes `arm64` for `iphonesimulator` builds so simulator builds use `x86_64`.
107
+
108
+ If you are integrating an older SDK version, add this to your app `Podfile`:
109
+
110
+ ```ruby
111
+ post_install do |installer|
112
+ installer.pods_project.targets.each do |target|
113
+ if target.name == 'soyio_rn_sdk'
114
+ target.build_configurations.each do |config|
115
+ config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
116
+ end
117
+ end
118
+ end
119
+ end
120
+ ```
121
+
122
+ ### 3. Permissions
103
123
 
104
124
  Add the following permissions to your `ios/YourApp/Info.plist` file:
105
125
 
@@ -121,7 +141,7 @@ If you want to enable NFC validation with the `SoyioWidget`, also add:
121
141
  </array>
122
142
  ```
123
143
 
124
- ### 3. NFC Entitlements
144
+ ### 4. NFC Entitlements
125
145
 
126
146
  For NFC to work, you also need to create (or update) your entitlements file at `ios/YourApp/YourApp.entitlements`:
127
147
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",
7
- "react-native": "index.ts",
7
+ "react-native": "./package/index.js",
8
8
  "description": "Soyio React Native SDK",
9
9
  "homepage": "https://github.com/Soyio-id/soyio-rn-sdk",
10
10
  "repository": {
@@ -33,7 +33,8 @@ Pod::Spec.new do |s|
33
33
  # Pod target configuration
34
34
  s.pod_target_xcconfig = {
35
35
  'DEFINES_MODULE' => 'YES',
36
- 'SWIFT_VERSION' => '5.0'
36
+ 'SWIFT_VERSION' => '5.0',
37
+ 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
37
38
  }
38
39
 
39
40
  # User project configuration