Skip to content

Commit b206f72

Browse files
authored
Merge pull request #985 from DataDog/carlosnogueira/RUM-11630/react-native-sr-svg-support
[RUM-11630] Support SVG in Session Replay
2 parents 97a0e66 + 72d80ab commit b206f72

File tree

60 files changed

+5528
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5528
-276
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ example/android/app/src/main/assets/index.android*
100100

101101
# Credentials for example app
102102
datadog-ci.json
103+
104+
105+
# Babel Plugin assets
106+
packages/react-native-babel-plugin/assets/*
107+
packages/react-native-babel-plugin/svg-map.json
108+
109+
# Session Replay assets
110+
packages/react-native-session-replay/assets/*

LICENSE-3rdparty.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ dev,react-native-webview,MIT,"Copyright (c) 2015-present, Facebook, Inc."
3232
dev,react-test-renderer,MIT,"Copyright (c) Facebook, Inc. and its affiliates."
3333
dev,typescript,Apache-2.0,"Copyright Microsoft Corporation"
3434
dev,genversion,MIT,"Copyright (c) 2021 Akseli Palén"
35+
prod,chokidar,MIT,"Copyright (c) 2012 Paul Miller (https://paulmillr.com), Elan Shanker"
36+
prod,fast-glob,MIT,"Copyright (c) Denis Malinochkin"
37+
prod,svgo,MIT,"Copyright (c) Kir Belevich"
38+
prod,uuid,MIT,"Copyright (c) 2010-2020 Robert Kieffer and other contributors"

example-new-architecture/ios/DdSdkReactNativeExample.xcodeproj/project.pbxproj

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1212
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
13-
38FDA727C2ADFB612BC59CAF /* libPods-DdSdkReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 392B93CDAA416A9B63770F89 /* libPods-DdSdkReactNativeExample.a */; };
1413
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1514
E05973ABEC106467505BAF84 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 91A6167299744A7A5E90FD00 /* PrivacyInfo.xcprivacy */; };
15+
F59778933728396AC9586AC3 /* libPods-DdSdkReactNativeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F15FCB308661F5FE9CD1E2F0 /* libPods-DdSdkReactNativeExample.a */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
@@ -24,20 +24,20 @@
2424
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = DdSdkReactNativeExample/Images.xcassets; sourceTree = "<group>"; };
2525
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = DdSdkReactNativeExample/Info.plist; sourceTree = "<group>"; };
2626
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DdSdkReactNativeExample/main.m; sourceTree = "<group>"; };
27-
392B93CDAA416A9B63770F89 /* libPods-DdSdkReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DdSdkReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
28-
6F4909953279AC89EEC11F97 /* Pods-DdSdkReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DdSdkReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample.debug.xcconfig"; sourceTree = "<group>"; };
27+
4A4B8157669F7C844ABF982B /* Pods-DdSdkReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DdSdkReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample.release.xcconfig"; sourceTree = "<group>"; };
2928
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = DdSdkReactNativeExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
30-
82767EEEA8B17AE9E7964826 /* Pods-DdSdkReactNativeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DdSdkReactNativeExample.release.xcconfig"; path = "Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample.release.xcconfig"; sourceTree = "<group>"; };
3129
91A6167299744A7A5E90FD00 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = DdSdkReactNativeExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
30+
943593C03DDD65A0F77DAD08 /* Pods-DdSdkReactNativeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DdSdkReactNativeExample.debug.xcconfig"; path = "Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample.debug.xcconfig"; sourceTree = "<group>"; };
3231
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
32+
F15FCB308661F5FE9CD1E2F0 /* libPods-DdSdkReactNativeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DdSdkReactNativeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3333
/* End PBXFileReference section */
3434

3535
/* Begin PBXFrameworksBuildPhase section */
3636
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
3737
isa = PBXFrameworksBuildPhase;
3838
buildActionMask = 2147483647;
3939
files = (
40-
38FDA727C2ADFB612BC59CAF /* libPods-DdSdkReactNativeExample.a in Frameworks */,
40+
F59778933728396AC9586AC3 /* libPods-DdSdkReactNativeExample.a in Frameworks */,
4141
);
4242
runOnlyForDeploymentPostprocessing = 0;
4343
};
@@ -79,7 +79,7 @@
7979
isa = PBXGroup;
8080
children = (
8181
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
82-
392B93CDAA416A9B63770F89 /* libPods-DdSdkReactNativeExample.a */,
82+
F15FCB308661F5FE9CD1E2F0 /* libPods-DdSdkReactNativeExample.a */,
8383
);
8484
name = Frameworks;
8585
sourceTree = "<group>";
@@ -117,8 +117,8 @@
117117
BBD78D7AC51CEA395F1C20DB /* Pods */ = {
118118
isa = PBXGroup;
119119
children = (
120-
6F4909953279AC89EEC11F97 /* Pods-DdSdkReactNativeExample.debug.xcconfig */,
121-
82767EEEA8B17AE9E7964826 /* Pods-DdSdkReactNativeExample.release.xcconfig */,
120+
943593C03DDD65A0F77DAD08 /* Pods-DdSdkReactNativeExample.debug.xcconfig */,
121+
4A4B8157669F7C844ABF982B /* Pods-DdSdkReactNativeExample.release.xcconfig */,
122122
);
123123
path = Pods;
124124
sourceTree = "<group>";
@@ -130,14 +130,14 @@
130130
isa = PBXNativeTarget;
131131
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DdSdkReactNativeExample" */;
132132
buildPhases = (
133-
E7FEDEC891CFB376C01E3757 /* [CP] Check Pods Manifest.lock */,
133+
6D376D298F855F5CC23E9ED5 /* [CP] Check Pods Manifest.lock */,
134134
FD10A7F022414F080027D42C /* Start Packager */,
135135
13B07F871A680F5B00A75B9A /* Sources */,
136136
13B07F8C1A680F5B00A75B9A /* Frameworks */,
137137
13B07F8E1A680F5B00A75B9A /* Resources */,
138138
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
139-
24FCB8A28DAC48C3D46EDEDA /* [CP] Embed Pods Frameworks */,
140-
883B42E77DC977535F0A70C3 /* [CP] Copy Pods Resources */,
139+
07743436841738907FE3FD72 /* [CP] Embed Pods Frameworks */,
140+
961EBCFFF8E0F6A3F5781446 /* [CP] Copy Pods Resources */,
141141
);
142142
buildRules = (
143143
);
@@ -209,7 +209,7 @@
209209
shellPath = /bin/sh;
210210
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
211211
};
212-
24FCB8A28DAC48C3D46EDEDA /* [CP] Embed Pods Frameworks */ = {
212+
07743436841738907FE3FD72 /* [CP] Embed Pods Frameworks */ = {
213213
isa = PBXShellScriptBuildPhase;
214214
buildActionMask = 2147483647;
215215
files = (
@@ -226,43 +226,43 @@
226226
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-frameworks.sh\"\n";
227227
showEnvVarsInLog = 0;
228228
};
229-
883B42E77DC977535F0A70C3 /* [CP] Copy Pods Resources */ = {
229+
6D376D298F855F5CC23E9ED5 /* [CP] Check Pods Manifest.lock */ = {
230230
isa = PBXShellScriptBuildPhase;
231231
buildActionMask = 2147483647;
232232
files = (
233233
);
234234
inputFileListPaths = (
235-
"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources-${CONFIGURATION}-input-files.xcfilelist",
236235
);
237-
name = "[CP] Copy Pods Resources";
236+
inputPaths = (
237+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
238+
"${PODS_ROOT}/Manifest.lock",
239+
);
240+
name = "[CP] Check Pods Manifest.lock";
238241
outputFileListPaths = (
239-
"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources-${CONFIGURATION}-output-files.xcfilelist",
242+
);
243+
outputPaths = (
244+
"$(DERIVED_FILE_DIR)/Pods-DdSdkReactNativeExample-checkManifestLockResult.txt",
240245
);
241246
runOnlyForDeploymentPostprocessing = 0;
242247
shellPath = /bin/sh;
243-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources.sh\"\n";
248+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
244249
showEnvVarsInLog = 0;
245250
};
246-
E7FEDEC891CFB376C01E3757 /* [CP] Check Pods Manifest.lock */ = {
251+
961EBCFFF8E0F6A3F5781446 /* [CP] Copy Pods Resources */ = {
247252
isa = PBXShellScriptBuildPhase;
248253
buildActionMask = 2147483647;
249254
files = (
250255
);
251256
inputFileListPaths = (
257+
"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources-${CONFIGURATION}-input-files.xcfilelist",
252258
);
253-
inputPaths = (
254-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
255-
"${PODS_ROOT}/Manifest.lock",
256-
);
257-
name = "[CP] Check Pods Manifest.lock";
259+
name = "[CP] Copy Pods Resources";
258260
outputFileListPaths = (
259-
);
260-
outputPaths = (
261-
"$(DERIVED_FILE_DIR)/Pods-DdSdkReactNativeExample-checkManifestLockResult.txt",
261+
"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources-${CONFIGURATION}-output-files.xcfilelist",
262262
);
263263
runOnlyForDeploymentPostprocessing = 0;
264264
shellPath = /bin/sh;
265-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
265+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DdSdkReactNativeExample/Pods-DdSdkReactNativeExample-resources.sh\"\n";
266266
showEnvVarsInLog = 0;
267267
};
268268
FD10A7F022414F080027D42C /* Start Packager */ = {
@@ -301,7 +301,7 @@
301301
/* Begin XCBuildConfiguration section */
302302
13B07F941A680F5B00A75B9A /* Debug */ = {
303303
isa = XCBuildConfiguration;
304-
baseConfigurationReference = 6F4909953279AC89EEC11F97 /* Pods-DdSdkReactNativeExample.debug.xcconfig */;
304+
baseConfigurationReference = 943593C03DDD65A0F77DAD08 /* Pods-DdSdkReactNativeExample.debug.xcconfig */;
305305
buildSettings = {
306306
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
307307
CLANG_ENABLE_MODULES = YES;
@@ -328,7 +328,7 @@
328328
};
329329
13B07F951A680F5B00A75B9A /* Release */ = {
330330
isa = XCBuildConfiguration;
331-
baseConfigurationReference = 82767EEEA8B17AE9E7964826 /* Pods-DdSdkReactNativeExample.release.xcconfig */;
331+
baseConfigurationReference = 4A4B8157669F7C844ABF982B /* Pods-DdSdkReactNativeExample.release.xcconfig */;
332332
buildSettings = {
333333
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
334334
CLANG_ENABLE_MODULES = YES;

0 commit comments

Comments
 (0)