@soyio/soyio-rn-sdk 4.0.1 → 4.1.0

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
 
@@ -334,6 +354,7 @@ export default function App() {
334
354
  // context: "<context>", // Optional: Additional context
335
355
  // optionalReconsentBehavior: "notice", // Optional
336
356
  // mandatoryReconsentBehavior: "notice", // Optional
357
+ // allowGranularScopeSelection: true, // Optional
337
358
  };
338
359
 
339
360
  const handleEvent = (event) => {
@@ -399,6 +420,7 @@ The `onEvent` callback receives events with the following structure:
399
420
  - **`context`**: (Optional) Additional information that will be saved with the consent. Useful when you want to track the consent from a specific context.
400
421
  - **`optionalReconsentBehavior`**: (Optional) Behavior when consent is already given on an optional category (`notice`, `askAgain`, `hide`).
401
422
  - **`mandatoryReconsentBehavior`**: (Optional) Behavior when consent is already given on a mandatory category (`notice`, `askAgain`).
423
+ - **`allowGranularScopeSelection`**: (Optional) If `true`, users can grant consent for individual scopes (for example products or branches) when the consent template supports multi-scope selection.
402
424
 
403
425
  ### 4. Customizing Appearance
404
426
 
@@ -57,6 +57,7 @@ export type ConsentParams = {
57
57
  context?: string;
58
58
  optionalReconsentBehavior?: 'notice' | 'askAgain' | 'hide';
59
59
  mandatoryReconsentBehavior?: 'notice' | 'askAgain';
60
+ allowGranularScopeSelection?: boolean;
60
61
  };
61
62
  export type SoyioWidgetBaseOptions = {
62
63
  uriScheme?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",
@@ -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