@capgo/capacitor-admob 8.0.2 → 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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-admob",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "Capacitor plugin to bridge AdMob SDKs for iOS and Android",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
41
41
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
42
42
|
"eslint": "eslint . --ext ts",
|
|
43
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
43
|
+
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
44
44
|
"swiftlint": "node-swiftlint",
|
|
45
45
|
"docgen": "docgen --api AdMobPlusPlugin --output-readme README.md --output-json dist/docs.json",
|
|
46
46
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
"rimraf": "^6.1.0",
|
|
65
65
|
"rollup": "^4.53.2",
|
|
66
66
|
"swiftlint": "^2.0.0",
|
|
67
|
-
"typescript": "^5.9.3"
|
|
67
|
+
"typescript": "^5.9.3",
|
|
68
|
+
"prettier-pretty-check": "^0.2.0"
|
|
68
69
|
},
|
|
69
70
|
"peerDependencies": {
|
|
70
71
|
"@capacitor/core": ">=8.0.0"
|