cm-sdk-react-native-v3 3.2.2 → 3.2.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/README.md +1 -1
- package/ios/CmSdkReactNativeV3.mm +0 -4
- package/ios/CmSdkReactNativeV3.swift +0 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,10 +113,6 @@ RCT_EXTERN_METHOD(importCMPInfo:(NSString *)cmpString
|
|
|
113
113
|
RCT_EXTERN_METHOD(resetConsentManagementData:(RCTPromiseResolveBlock)resolve
|
|
114
114
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
115
115
|
|
|
116
|
-
// ATT methods
|
|
117
|
-
RCT_EXTERN_METHOD(getATTAuthorizationStatus:(RCTPromiseResolveBlock)resolve
|
|
118
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
119
|
-
|
|
120
116
|
+ (BOOL)requiresMainQueueSetup
|
|
121
117
|
{
|
|
122
118
|
return YES;
|
|
@@ -290,16 +290,6 @@ class CmSdkReactNativeV3: NSObject {
|
|
|
290
290
|
resolve(nil)
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
@objc(getATTAuthorizationStatus:withRejecter:)
|
|
294
|
-
func getATTAuthorizationStatus(_ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
|
|
295
|
-
if #available(iOS 14, *) {
|
|
296
|
-
let status = self.cmpManager.getATTAuthorizationStatus()
|
|
297
|
-
resolve(status.rawValue)
|
|
298
|
-
} else {
|
|
299
|
-
reject("ERROR", "ATT is only available on iOS 14 and later", nil)
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
293
|
@objc
|
|
304
294
|
static func requiresMainQueueSetup() -> Bool {
|
|
305
295
|
return true
|