capacitor-app-tracking-transparency
Advanced tools
Comparing version 1.1.5 to 2.0.0
{ | ||
"name": "capacitor-app-tracking-transparency", | ||
"version": "1.1.5", | ||
"version": "2.0.0", | ||
"description": "Capacitor plugin to request user authorization to access app-related data for tracking the user or the device. iOS only.", | ||
"main": "plugin.js", | ||
"module": "esm/index.js", | ||
"types": "esm/index.d.ts", | ||
"author": "rediska1114 <rediska1114@gmail.com>", | ||
"main": "dist/plugin.cjs.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"unpkg": "dist/plugin.js", | ||
"files": [ | ||
"dist/", | ||
"ios/Plugin/", | ||
"CapacitorAppTrackingTransparency.podspec" | ||
], | ||
"author": "rediska1114 (rediska1114@gmail.com)", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@capacitor/android": "^2.4.7", | ||
"@capacitor/core": "^2.4.7", | ||
"@capacitor/ios": "^2.4.7", | ||
"@ionic/prettier-config": "^1.0.0", | ||
"@ionic/swiftlint-config": "^1.0.0", | ||
"@rollup/plugin-node-resolve": "^8.1.0", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-java": "^0.8.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^2.21.0", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"rollup-plugin-generate-package-json": "^3.2.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "~4.1.2" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/rediska1114/capacitor-app-tracking-transparency.git.git" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": ">=2.4.0", | ||
"tslib": "^2.0.0" | ||
"bugs": { | ||
"url": "https://github.com/rediska1114/capacitor-app-tracking-transparency.git/issues" | ||
}, | ||
"files": [ | ||
"ios/", | ||
"esm/", | ||
"plugin.js", | ||
"plugin.js.map", | ||
"CapacitorAppTrackingTransparency.podspec" | ||
], | ||
"keywords": [ | ||
@@ -42,2 +28,39 @@ "capacitor", | ||
], | ||
"scripts": { | ||
"verify": "npm run verify:ios && npm run verify:web", | ||
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..", | ||
"verify:web": "npm run build", | ||
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint", | ||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format", | ||
"eslint": "eslint . --ext ts", | ||
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"", | ||
"swiftlint": "node-swiftlint", | ||
"build": "npm run clean && tsc && rollup -c rollup.config.js", | ||
"clean": "rimraf ./dist", | ||
"watch": "tsc --watch", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"@capacitor/core": "^3.0.0", | ||
"@capacitor/docgen": "^0.0.18", | ||
"@capacitor/ios": "^3.0.0", | ||
"@ionic/eslint-config": "^0.3.0", | ||
"@ionic/prettier-config": "^1.0.1", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"eslint": "^7.11.0", | ||
"prettier": "~2.2.0", | ||
"prettier-plugin-java": "~1.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.32.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "~4.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": "^3.0.0" | ||
}, | ||
"prettier": "@ionic/prettier-config", | ||
"swiftlint": "@ionic/swiftlint-config", | ||
"eslintConfig": { | ||
"extends": "@ionic/eslint-config/recommended" | ||
}, | ||
"capacitor": { | ||
@@ -47,12 +70,3 @@ "ios": { | ||
} | ||
}, | ||
"prettier": "@ionic/prettier-config", | ||
"swiftlint": "@ionic/swiftlint-config", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rediska1114/capacitor-app-tracking-transparency.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/rediska1114/capacitor-app-tracking-transparency.git/issues" | ||
} | ||
} |
@@ -5,4 +5,4 @@ # Capacitor App Tracking Transparency plugin | ||
- `getStatus()` | ||
- `requestPermission()` | ||
- `getStatus(): Promise<AppTrackingTransparencyStatus>` | ||
- `requestPermission(): Promise<AppTrackingTransparencyStatus>` | ||
@@ -40,3 +40,3 @@ # Usage example: | ||
const status = await this.att.getStatus() | ||
if(status === AppTrackingTransparencyStatus.unrequested) { | ||
if(status === AppTrackingTransparencyStatus.notDetermined) { | ||
const new_status = await this.att.requestPermission() | ||
@@ -48,1 +48,8 @@ } | ||
``` | ||
## BREAKING CHANGES in 2.x.x version | ||
- Status "unrequested" has been changed to status "notDetermined" to more closely match the native enum | ||
https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/authorizationstatus | ||
- Added full support for Capacitor 3 and removed compatibility with Capacitor 2 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
13
84
53
16369
18
1