@symbiote-native/tracking-transparency 1.0.0 → 2.0.0
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 +44 -44
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -82,15 +82,15 @@ function TrackingScreen() {
|
|
|
82
82
|
const [permissionStatus, requestPermission] = usePermissions();
|
|
83
83
|
|
|
84
84
|
return (
|
|
85
|
-
<
|
|
86
|
-
<
|
|
87
|
-
<
|
|
88
|
-
<
|
|
89
|
-
</
|
|
90
|
-
<
|
|
91
|
-
<
|
|
92
|
-
</
|
|
93
|
-
</
|
|
85
|
+
<view>
|
|
86
|
+
<text>{permissionStatus?.status ?? 'checking…'}</text>
|
|
87
|
+
<pressable onPress={() => requestPermission()}>
|
|
88
|
+
<text>Request tracking permission</text>
|
|
89
|
+
</pressable>
|
|
90
|
+
<pressable onPress={() => console.log(getAdvertisingId())}>
|
|
91
|
+
<text>Log advertising ID</text>
|
|
92
|
+
</pressable>
|
|
93
|
+
</view>
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
```
|
|
@@ -106,15 +106,15 @@ const { status: permissionStatus, request: requestPermission } =
|
|
|
106
106
|
</script>
|
|
107
107
|
|
|
108
108
|
<template>
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
<
|
|
112
|
-
<
|
|
113
|
-
</
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
</
|
|
117
|
-
</
|
|
109
|
+
<view>
|
|
110
|
+
<text>{{ permissionStatus?.status ?? 'checking…' }}</text>
|
|
111
|
+
<pressable @press="requestPermission()">
|
|
112
|
+
<text>Request tracking permission</text>
|
|
113
|
+
</pressable>
|
|
114
|
+
<pressable @press="console.log(getAdvertisingId())">
|
|
115
|
+
<text>Log advertising ID</text>
|
|
116
|
+
</pressable>
|
|
117
|
+
</view>
|
|
118
118
|
</template>
|
|
119
119
|
```
|
|
120
120
|
|
|
@@ -130,15 +130,15 @@ import {
|
|
|
130
130
|
selector: 'TrackingScreen',
|
|
131
131
|
standalone: true,
|
|
132
132
|
template: `
|
|
133
|
-
<
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
<
|
|
137
|
-
</
|
|
138
|
-
<
|
|
139
|
-
><
|
|
133
|
+
<view>
|
|
134
|
+
<text>{{ permissionStatus()?.status ?? 'checking…' }}</text>
|
|
135
|
+
<pressable (press)="permissionsService.request()">
|
|
136
|
+
<text>Request tracking permission</text>
|
|
137
|
+
</pressable>
|
|
138
|
+
<pressable (press)="logAdvertisingId()"
|
|
139
|
+
><text>Log advertising ID</text></pressable
|
|
140
140
|
>
|
|
141
|
-
</
|
|
141
|
+
</view>
|
|
142
142
|
`,
|
|
143
143
|
})
|
|
144
144
|
export class TrackingScreen {
|
|
@@ -163,15 +163,15 @@ export class TrackingScreen {
|
|
|
163
163
|
const permissions = usePermissions();
|
|
164
164
|
</script>
|
|
165
165
|
|
|
166
|
-
<
|
|
167
|
-
<
|
|
168
|
-
<
|
|
169
|
-
<
|
|
170
|
-
</
|
|
171
|
-
<
|
|
172
|
-
<
|
|
173
|
-
</
|
|
174
|
-
</
|
|
166
|
+
<view>
|
|
167
|
+
<text>{permissions.status?.status ?? 'checking…'}</text>
|
|
168
|
+
<pressable onPress={() => permissions.request()}>
|
|
169
|
+
<text>Request tracking permission</text>
|
|
170
|
+
</pressable>
|
|
171
|
+
<pressable onPress={() => console.log(getAdvertisingId())}>
|
|
172
|
+
<text>Log advertising ID</text>
|
|
173
|
+
</pressable>
|
|
174
|
+
</view>
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
```tsx
|
|
@@ -184,15 +184,15 @@ function TrackingScreen() {
|
|
|
184
184
|
createPermissions();
|
|
185
185
|
|
|
186
186
|
return (
|
|
187
|
-
<
|
|
188
|
-
<
|
|
189
|
-
<
|
|
190
|
-
<
|
|
191
|
-
</
|
|
192
|
-
<
|
|
193
|
-
<
|
|
194
|
-
</
|
|
195
|
-
</
|
|
187
|
+
<view>
|
|
188
|
+
<text>{permissionStatus()?.status ?? 'checking…'}</text>
|
|
189
|
+
<pressable onPress={() => void requestPermission()}>
|
|
190
|
+
<text>Request tracking permission</text>
|
|
191
|
+
</pressable>
|
|
192
|
+
<pressable onPress={() => console.log(getAdvertisingId())}>
|
|
193
|
+
<text>Log advertising ID</text>
|
|
194
|
+
</pressable>
|
|
195
|
+
</view>
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
198
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/tracking-transparency",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "expo-tracking-transparency wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, Svelte, Solid, and Angular adapters. iOS App Tracking Transparency prompt (permission get/request, always-granted on Android/web) plus the advertising-ID getter.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"solid-js": ">=1.9.0",
|
|
80
80
|
"svelte": ">=5.56.0",
|
|
81
81
|
"vue": ">=3.5.0",
|
|
82
|
-
"@symbiote-native/angular": "^
|
|
83
|
-
"@symbiote-native/engine": "^0.
|
|
84
|
-
"@symbiote-native/
|
|
85
|
-
"@symbiote-native/
|
|
86
|
-
"@symbiote-native/
|
|
87
|
-
"@symbiote-native/
|
|
82
|
+
"@symbiote-native/angular": "^2.0.0",
|
|
83
|
+
"@symbiote-native/engine": "^0.5.0",
|
|
84
|
+
"@symbiote-native/solid": "^2.0.0",
|
|
85
|
+
"@symbiote-native/react": "^2.0.0",
|
|
86
|
+
"@symbiote-native/svelte": "^2.0.0",
|
|
87
|
+
"@symbiote-native/vue": "^2.0.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@symbiote-native/angular": {
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
"solid-js": "^1.9.14",
|
|
133
133
|
"svelte": "^5.56.0",
|
|
134
134
|
"typescript": "~6.0.0",
|
|
135
|
-
"@symbiote-native/angular": "
|
|
136
|
-
"@symbiote-native/engine": "0.
|
|
137
|
-
"@symbiote-native/react": "
|
|
138
|
-
"@symbiote-native/solid": "
|
|
139
|
-
"@symbiote-native/svelte": "
|
|
135
|
+
"@symbiote-native/angular": "2.0.0",
|
|
136
|
+
"@symbiote-native/engine": "0.5.0",
|
|
137
|
+
"@symbiote-native/react": "2.0.0",
|
|
138
|
+
"@symbiote-native/solid": "2.0.0",
|
|
139
|
+
"@symbiote-native/svelte": "2.0.0",
|
|
140
140
|
"@symbiote-native/test-utils": "0.3.0",
|
|
141
|
-
"@symbiote-native/vue": "
|
|
141
|
+
"@symbiote-native/vue": "2.0.0"
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
144
|
"typecheck": "tsc --build",
|