@layers/react-native 0.2.0-alpha.4 → 0.2.0-alpha.5
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/ios/LayersSKAN.swift +3 -3
- package/package.json +1 -1
package/ios/LayersSKAN.swift
CHANGED
|
@@ -89,8 +89,8 @@ class LayersSKAN: NSObject {
|
|
|
89
89
|
return
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
if #available(iOS
|
|
93
|
-
// Use SKAN
|
|
92
|
+
if #available(iOS 14.5, *) {
|
|
93
|
+
// Use SKAN 2.2+ API with completion handler
|
|
94
94
|
SKAdNetwork.updateConversionValue(intValue) { error in
|
|
95
95
|
if let error = error {
|
|
96
96
|
print("[Layers SKAN] Error updating conversion value: \(error.localizedDescription)")
|
|
@@ -102,7 +102,7 @@ class LayersSKAN: NSObject {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
} else if #available(iOS 14.0, *) {
|
|
105
|
-
// Use SKAN 2.
|
|
105
|
+
// Use SKAN 2.0 API (no completion handler)
|
|
106
106
|
SKAdNetwork.updateConversionValue(intValue)
|
|
107
107
|
conversionValue = intValue
|
|
108
108
|
print("[Layers SKAN] Conversion value updated to: \(intValue)")
|