@layers/react-native 3.2.10 → 3.2.11
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/android/src/main/java/io/layers/sdk/reactnative/LayersInstallReferrerModule.java +47 -0
- package/dist/debug-overlay.d.mts +1 -1
- package/dist/debug-overlay.d.ts +1 -1
- package/dist/{index-BaCWtOOT.d.mts → index-BOpYg0_t.d.mts} +61 -2
- package/dist/{index-BaCWtOOT.d.mts.map → index-BOpYg0_t.d.mts.map} +1 -1
- package/dist/{index-BNM5Q_2v.d.ts → index-DDvxoi4_.d.ts} +61 -2
- package/dist/{index-BNM5Q_2v.d.ts.map → index-DDvxoi4_.d.ts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/{src-CA0NHJyZ.js → src-BWlZe6w2.js} +130 -21
- package/dist/{src-vbz7QHad.mjs → src-DWe1Tv-R.mjs} +126 -23
- package/dist/src-DWe1Tv-R.mjs.map +1 -0
- package/ios/PrivacyInfo.xcprivacy +153 -0
- package/layers-react-native.podspec +12 -0
- package/package.json +2 -2
- package/dist/src-vbz7QHad.mjs.map +0 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<!--
|
|
6
|
+
Layers React Native SDK Privacy Manifest (iOS pod)
|
|
7
|
+
|
|
8
|
+
Added 2026-08-17. Until this file existed the `layers-react-native`
|
|
9
|
+
pod shipped `ios/LayersDeviceInfo.swift`, which reads a file
|
|
10
|
+
creation date — a required-reason API — with NO privacy manifest
|
|
11
|
+
anywhere in the pod. Apple has rejected uploads for that since
|
|
12
|
+
1 May 2024:
|
|
13
|
+
|
|
14
|
+
ITMS-91053: Missing API declaration — your app's code, or the
|
|
15
|
+
code of an SDK it uses, references one or more APIs that require
|
|
16
|
+
reasons, including NSPrivacyAccessedAPICategoryFileTimestamp.
|
|
17
|
+
|
|
18
|
+
Every sibling SDK in this repo already carried a manifest
|
|
19
|
+
(swift/Sources/Layers/, flutter/ios/, unity/Plugins/iOS/); the RN
|
|
20
|
+
pod was the one that did not, so `@layers/react-native` and
|
|
21
|
+
`@layers/expo` were the only Layers SDKs that could not be
|
|
22
|
+
submitted to the App Store. Keep this file in sync with what the
|
|
23
|
+
pod's Swift/ObjC actually does — scripts/check-tarballs.mjs greps
|
|
24
|
+
the shipped sources and fails on any undeclared usage.
|
|
25
|
+
|
|
26
|
+
NSPrivacyTracking is false, matching the sibling manifests: the SDK
|
|
27
|
+
does not send data to an ATT-defined tracking endpoint. Flipping it
|
|
28
|
+
to true (with a dedicated tracking domain in
|
|
29
|
+
NSPrivacyTrackingDomains) is a pending product decision blocked on
|
|
30
|
+
infra — see the audit record. NSPrivacyTrackingDomains stays EMPTY
|
|
31
|
+
on purpose: iOS blocks connections to declared tracking domains
|
|
32
|
+
when the user has not granted ATT authorization, and in.layers.com
|
|
33
|
+
is the event ingest endpoint. Listing it would silently drop all
|
|
34
|
+
delivery for every non-authorized user.
|
|
35
|
+
-->
|
|
36
|
+
|
|
37
|
+
<key>NSPrivacyTracking</key>
|
|
38
|
+
<false/>
|
|
39
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
40
|
+
<array/>
|
|
41
|
+
|
|
42
|
+
<!--
|
|
43
|
+
Data types this SDK collects.
|
|
44
|
+
|
|
45
|
+
Deliberately NOT a copy of the Swift/Unity manifests. Those SDKs
|
|
46
|
+
declare CrashData and (Swift) PerformanceData because they ship
|
|
47
|
+
crash/exception capture — swift/Sources/Layers/ExceptionModule.swift
|
|
48
|
+
and MetricKitModule.swift, unity/Runtime/ExceptionModule.cs. The
|
|
49
|
+
React Native SDK installs no global error handler and captures no
|
|
50
|
+
crashes, so declaring CrashData here would push a data type the SDK
|
|
51
|
+
never collects into every host app's privacy nutrition label.
|
|
52
|
+
-->
|
|
53
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
54
|
+
<array>
|
|
55
|
+
<!-- install_id (AsyncStorage), IDFV/IDFA via the ATT module
|
|
56
|
+
(src/att.ts), GAID via the Android module. -->
|
|
57
|
+
<dict>
|
|
58
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
59
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
60
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
61
|
+
<false/>
|
|
62
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
63
|
+
<false/>
|
|
64
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
65
|
+
<array>
|
|
66
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
67
|
+
</array>
|
|
68
|
+
</dict>
|
|
69
|
+
<!-- track()/screen() events, app_open, deep links, session data. -->
|
|
70
|
+
<dict>
|
|
71
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
72
|
+
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
|
|
73
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
74
|
+
<false/>
|
|
75
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
76
|
+
<false/>
|
|
77
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
78
|
+
<array>
|
|
79
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
80
|
+
</array>
|
|
81
|
+
</dict>
|
|
82
|
+
<!-- trackPurchase / trackPurchaseFailed and the RevenueCat and
|
|
83
|
+
Superwall bridges send purchase/subscription events
|
|
84
|
+
(revenue, product_id). -->
|
|
85
|
+
<dict>
|
|
86
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
87
|
+
<string>NSPrivacyCollectedDataTypePurchaseHistory</string>
|
|
88
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
89
|
+
<false/>
|
|
90
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
91
|
+
<false/>
|
|
92
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
93
|
+
<array>
|
|
94
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
95
|
+
</array>
|
|
96
|
+
</dict>
|
|
97
|
+
</array>
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
Required-reason APIs this POD touches.
|
|
101
|
+
|
|
102
|
+
Scope note: the declaration covers the code Apple actually scans —
|
|
103
|
+
the compiled pod, i.e. ios/*.{h,m,swift}. React Native runs the JS
|
|
104
|
+
engine (packages/wasm/src/core.ts), so unlike the Swift, Flutter,
|
|
105
|
+
and Unity SDKs there is no Rust core linked into this pod. That is
|
|
106
|
+
why three categories the sibling manifests declare are absent here:
|
|
107
|
+
|
|
108
|
+
- UserDefaults (CA92.1): the pod contains no NSUserDefaults
|
|
109
|
+
usage. RN persistence is AsyncStorage, a separate pod that
|
|
110
|
+
ships its own manifest.
|
|
111
|
+
- SystemBootTime (35F9.1): declared by the others because Rust's
|
|
112
|
+
std::time::Instant reads the boot clock. No Rust here; the JS
|
|
113
|
+
engine uses Date.now() and JS timers.
|
|
114
|
+
- DiskSpace (E174.1) / ActiveKeyboards (3EC4.1): unused.
|
|
115
|
+
|
|
116
|
+
Audited usage:
|
|
117
|
+
- File timestamps — ios/LayersDeviceInfo.swift getFirstInstallTime()
|
|
118
|
+
calls FileManager.attributesOfItem(atPath:) and reads
|
|
119
|
+
.creationDate (NSFileCreationDate) on the app's OWN Documents
|
|
120
|
+
directory, to date the install and suppress a false
|
|
121
|
+
`is_first_launch` when the SDK is added to an already-installed
|
|
122
|
+
app.
|
|
123
|
+
|
|
124
|
+
Reason C617.1 — "Access the timestamps, size, or other metadata
|
|
125
|
+
of files inside the app container, app group container, or the
|
|
126
|
+
app's CloudKit container." The Documents directory is the app
|
|
127
|
+
container, which is what makes C617.1 the honest code, and the
|
|
128
|
+
only fitting one:
|
|
129
|
+
|
|
130
|
+
* DDA9.1 is for displaying timestamps to the person using the
|
|
131
|
+
device and forbids sending the information or anything
|
|
132
|
+
derived from it off-device. This value is not displayed, and
|
|
133
|
+
a boolean derived from it gates an event that is sent — so
|
|
134
|
+
DDA9.1 would be wrong twice.
|
|
135
|
+
* 3B52.1 requires files the user granted access to explicitly
|
|
136
|
+
(e.g. a document picker). There is no picker.
|
|
137
|
+
* 0A2A.1 is for an SDK wrapping a file-timestamp API on behalf
|
|
138
|
+
of a calling app and only while that app calls the wrapper.
|
|
139
|
+
The SDK reads this on its own initiative during init.
|
|
140
|
+
-->
|
|
141
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
142
|
+
<array>
|
|
143
|
+
<dict>
|
|
144
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
145
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
146
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
147
|
+
<array>
|
|
148
|
+
<string>C617.1</string>
|
|
149
|
+
</array>
|
|
150
|
+
</dict>
|
|
151
|
+
</array>
|
|
152
|
+
</dict>
|
|
153
|
+
</plist>
|
|
@@ -15,6 +15,18 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
17
|
|
|
18
|
+
# Privacy manifest. ios/LayersDeviceInfo.swift reads a file creation date —
|
|
19
|
+
# a required-reason API — so without this the App Store upload is rejected
|
|
20
|
+
# with ITMS-91053 ("Missing API declaration"), enforced since 1 May 2024.
|
|
21
|
+
#
|
|
22
|
+
# It must ship INSIDE the pod: Xcode aggregates .xcprivacy files from the app
|
|
23
|
+
# and from every bundled framework/resource bundle into one privacy report. A
|
|
24
|
+
# manifest in the host app cannot cover an SDK's own API usage, and telling
|
|
25
|
+
# consumers to hand-write one would put the burden on every app that installs
|
|
26
|
+
# us. resource_bundles is the CocoaPods-supported way to do this for a static
|
|
27
|
+
# library pod, and it is what flutter/ios/layers_flutter.podspec already does.
|
|
28
|
+
s.resource_bundles = { "layers_react_native_privacy" => ["ios/PrivacyInfo.xcprivacy"] }
|
|
29
|
+
|
|
18
30
|
s.dependency "React-Core"
|
|
19
31
|
|
|
20
32
|
# Strong-linked frameworks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers/react-native",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"mobile"
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@layers/core-wasm": "3.2.
|
|
70
|
+
"@layers/core-wasm": "3.2.11"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@react-native-async-storage/async-storage": ">=1.21.0",
|