@capgo/capacitor-admob 8.0.3 → 8.0.4
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.
|
@@ -5,7 +5,7 @@ import AppTrackingTransparency
|
|
|
5
5
|
|
|
6
6
|
@objc(AdmobPlusPlugin)
|
|
7
7
|
public class AdmobPlusPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
8
|
-
private let pluginVersion: String = "8.0.
|
|
8
|
+
private let pluginVersion: String = "8.0.4"
|
|
9
9
|
public let identifier = "AdmobPlusPlugin"
|
|
10
10
|
public let jsName = "AdMobPlus"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -215,21 +215,13 @@ public class AdmobPlusPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
@objc func trackingAuthorizationStatus(_ call: CAPPluginCall) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
call.resolve(["status": status.rawValue])
|
|
221
|
-
} else {
|
|
222
|
-
call.resolve(["status": false])
|
|
223
|
-
}
|
|
218
|
+
let status = ATTrackingManager.trackingAuthorizationStatus
|
|
219
|
+
call.resolve(["status": status.rawValue])
|
|
224
220
|
}
|
|
225
221
|
|
|
226
222
|
@objc func requestTrackingAuthorization(_ call: CAPPluginCall) {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
call.resolve(["status": status.rawValue])
|
|
230
|
-
}
|
|
231
|
-
} else {
|
|
232
|
-
call.resolve(["status": false])
|
|
223
|
+
ATTrackingManager.requestTrackingAuthorization { status in
|
|
224
|
+
call.resolve(["status": status.rawValue])
|
|
233
225
|
}
|
|
234
226
|
}
|
|
235
227
|
|