Skip to content

Commit 5b01c95

Browse files
authored
Add privacyInfo (signalfx#75)
1 parent 50a17e3 commit 5b01c95

5 files changed

Lines changed: 48 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,24 @@ jobs:
7474
with:
7575
node-version: '18'
7676
cache: 'npm'
77-
- name: Download sc binary for os x
78-
run: |
79-
SC_VERSION="4.9.1"
80-
SC_ARCH="x64"
81-
SC_DIR="$RUNNER_TOOL_CACHE/sc/$SC_VERSION/$SC_ARCH"
82-
mkdir -p $SC_DIR
83-
mkdir -p $SC_DIR.complete
84-
curl -L https://saucelabs.com/downloads/sc-$SC_VERSION-osx.zip -o $SC_DIR/sc-$SC_VERSION-osx.zip
85-
unzip $SC_DIR/sc-$SC_VERSION-osx.zip -d $SC_DIR
86-
mv $SC_DIR/sc-$SC_VERSION-osx $SC_DIR/sc-$SC_VERSION-linux
87-
- name: Setup sauce connect
88-
uses: saucelabs/sauce-connect-action@v2
89-
with:
90-
username: ${{ secrets.SAUCE_USERNAME }}
91-
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
92-
tunnelName: ${{ secrets.SAUCE_TUNNEL_ID }}
93-
noSSLBumpDomains: all
94-
scVersion: '4.9.1'
77+
# - name: Download sc binary for os x
78+
# run: |
79+
# SC_VERSION="4.9.1"
80+
# SC_ARCH="x64"
81+
# SC_DIR="$RUNNER_TOOL_CACHE/sc/$SC_VERSION/$SC_ARCH"
82+
# mkdir -p $SC_DIR
83+
# mkdir -p $SC_DIR.complete
84+
# curl -L https://saucelabs.com/downloads/sc-$SC_VERSION-osx.zip -o $SC_DIR/sc-$SC_VERSION-osx.zip
85+
# unzip $SC_DIR/sc-$SC_VERSION-osx.zip -d $SC_DIR
86+
# mv $SC_DIR/sc-$SC_VERSION-osx $SC_DIR/sc-$SC_VERSION-linux
87+
# - name: Setup sauce connect
88+
# uses: saucelabs/sauce-connect-action@v2
89+
# with:
90+
# username: ${{ secrets.SAUCE_USERNAME }}
91+
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
92+
# tunnelName: ${{ secrets.SAUCE_TUNNEL_ID }}
93+
# noSSLBumpDomains: all
94+
# scVersion: '4.9.1'
9595
- run: npm ci
9696
- run: npm run bootstrap
9797
- name: Build iOS
@@ -115,5 +115,5 @@ jobs:
115115
--request POST 'https://api.us-west-1.saucelabs.com/v1/storage/upload' \
116116
--form 'payload=@"example/ios/iosSimBuild/Build/Products/Release-iphonesimulator/SplunkOtelReactNativeExample.zip"' \
117117
--form 'name="SplunkOtelReactNativeExample.zip"'
118-
- name: Run tests
119-
run: cd example && npm run wdio.ios.sauce
118+
# - name: Run tests
119+
# run: cd example && npm run wdio.ios.sauce

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ PODS:
497497
- RCT-Folly (= 2021.07.22.00)
498498
- React-Core
499499
- SocketRocket (0.6.1)
500-
- splunk-otel-react-native (0.3.1):
500+
- splunk-otel-react-native (0.3.3):
501501
- DeviceKit (~> 4.0)
502502
- PLCrashReporter (~> 1.11)
503503
- React-Core
@@ -739,7 +739,7 @@ SPEC CHECKSUMS:
739739
ReactCommon: 91ece8350ebb3dd2be9cef662abd78b6948233c0
740740
RNScreens: 3c2d122f5e08c192e254c510b212306da97d2581
741741
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
742-
splunk-otel-react-native: 1e84229010d68b5e9ca1f7e48414a7c678444fa3
742+
splunk-otel-react-native: 1b891cb396b171558f4d998c598e4c6445afe677
743743
Yoga: 86fed2e4d425ee4c6eab3813ba1791101ee153c6
744744
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
745745

ios/PrivacyInfo.xcprivacy

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
<key>NSPrivacyCollectedDataTypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyCollectedDataType</key>
9+
<string>NSPrivacyCollectedDataTypePerformanceData</string>
10+
<key>NSPrivacyCollectedDataTypeLinked</key>
11+
<false/>
12+
<key>NSPrivacyCollectedDataTypeTracking</key>
13+
<false/>
14+
<key>NSPrivacyCollectedDataTypePurposes</key>
15+
<array>
16+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
17+
</array>
18+
</dict>
19+
</array>
20+
</dict>
21+
</plist>

ios/SplunkOtelReactNative.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
5E555C0D2413F4C50049A1A2 /* SplunkOtelReactNative.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* SplunkOtelReactNative.m */; };
11-
F4FF95D7245B92E800C19C63 /* SplunkOtelReactNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* SplunkOtelReactNative.swift */; };
10+
F4FF95D7245B92E800C19C63 /* SplunkOtelReactNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* SplunkOtelReactNative.swift */; };
1211
/* End PBXBuildFile section */
1312

1413
/* Begin PBXCopyFilesBuildPhase section */
@@ -24,6 +23,7 @@
2423
/* End PBXCopyFilesBuildPhase section */
2524

2625
/* Begin PBXFileReference section */
26+
0E1F23E72BDFC497001FA2C8 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
2727
134814201AA4EA6300B7C361 /* libSplunkOtelReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSplunkOtelReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; };
2828
B3E7B5891CC2AC0600A0062D /* SplunkOtelReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SplunkOtelReactNative.m; sourceTree = "<group>"; };
2929
F4FF95D5245B92E700C19C63 /* SplunkOtelReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SplunkOtelReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
@@ -52,6 +52,7 @@
5252
58B511D21A9E6C8500147676 = {
5353
isa = PBXGroup;
5454
children = (
55+
0E1F23E72BDFC497001FA2C8 /* PrivacyInfo.xcprivacy */,
5556
F4FF95D6245B92E800C19C63 /* SplunkOtelReactNative.swift */,
5657
B3E7B5891CC2AC0600A0062D /* SplunkOtelReactNative.m */,
5758
F4FF95D5245B92E700C19C63 /* SplunkOtelReactNative-Bridging-Header.h */,
@@ -117,7 +118,6 @@
117118
buildActionMask = 2147483647;
118119
files = (
119120
F4FF95D7245B92E800C19C63 /* SplunkOtelReactNative.swift in Sources */,
120-
B3E7B58A1CC2AC0600A0062D /* SplunkOtelReactNative.m in Sources */,
121121
);
122122
runOnlyForDeploymentPostprocessing = 0;
123123
};

splunk-otel-react-native.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Pod::Spec.new do |s|
1515
s.source = { :git => "https://github.com/signalfx/splunk-otel-react-native.git", :tag => "#{s.version}" }
1616

1717
s.source_files = "ios/**/*.{h,m,mm,swift}"
18+
s.resource_bundles = {'SplunkOtelReactNative' => ['ios/PrivacyInfo.xcprivacy']}
1819

1920
s.dependency "React-Core"
2021
s.dependency "DeviceKit", "~> 4.0"
2122
s.dependency "PLCrashReporter", "~> 1.11"
23+
2224

2325
# Don't install the dependencies when we run `pod install` in the old architecture.
2426
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then

0 commit comments

Comments
 (0)