├── example ├── .watchmanconfig ├── .bundle │ └── config ├── babel.config.js ├── src │ ├── components │ │ └── consent │ │ │ ├── index.tsx │ │ │ ├── ConsentItem.tsx │ │ │ └── styles.tsx │ ├── NavigationRoot.tsx │ ├── axiosConfig.js │ ├── screens │ │ ├── NestedNavigator │ │ │ ├── ScreenWithLinks.tsx │ │ │ └── NestedNavigator.tsx │ │ ├── styles.tsx │ │ └── AboutScreen.tsx │ ├── resources │ │ └── strings.json │ └── utils.tsx ├── android │ ├── app │ │ ├── debug.keystore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── ddsdkreactnativeexample │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ └── proguard-rules.pro │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── app.json ├── ios │ ├── ddSdkReactnativeExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ └── PrivacyInfo.xcprivacy │ ├── DdSdkReactNativeExample.xcworkspace │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── contents.xcworkspacedata │ └── .xcode.env └── Gemfile ├── benchmarks ├── .watchmanconfig ├── jest.config.js ├── .bundle │ └── config ├── .eslintrc.js ├── app.json ├── babel.config.js ├── android │ ├── app │ │ ├── debug.keystore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── benchmarkvitals │ │ │ │ │ └── BenchmarkVitalsPackage.kt │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ └── proguard-rules.pro │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── ios │ ├── BenchmarkRunner │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── main.m │ │ ├── BenchmarkVitalsModule.m │ │ ├── BenchmarkVitalsModule.swift │ │ └── PrivacyInfo.xcprivacy │ ├── main.m │ ├── BenchmarkRunner.xcworkspace │ │ └── contents.xcworkspacedata │ ├── .xcode.env │ ├── exportOptions.plist │ └── BenchmarkVitals │ │ └── BenchmarkVitals.h ├── tsconfig.json ├── src │ ├── scenario │ │ ├── SessionReplay │ │ │ ├── component │ │ │ │ ├── assets │ │ │ │ │ └── bits.png │ │ │ │ ├── Picker.tsx │ │ │ │ ├── WebView.tsx │ │ │ │ ├── ActivityIndicators.tsx │ │ │ │ ├── Views.tsx │ │ │ │ └── Images.tsx │ │ │ ├── types.ts │ │ │ └── constants.ts │ │ ├── Default │ │ │ ├── types.ts │ │ │ └── defaultScenario.tsx │ │ ├── Traces │ │ │ └── types.ts │ │ ├── NavigationExample │ │ │ └── types.ts │ │ ├── RUM │ │ │ ├── types.ts │ │ │ ├── constants.ts │ │ │ └── Auto │ │ │ │ ├── service │ │ │ │ └── types.ts │ │ │ │ └── screens │ │ │ │ └── docs.tsx │ │ └── Logs │ │ │ └── constants.ts │ ├── component │ │ ├── Stepper │ │ │ ├── types.ts │ │ │ ├── styles.ts │ │ │ └── Stepper.tsx │ │ └── Picker │ │ │ ├── styles.ts │ │ │ └── types.ts │ ├── specs │ │ └── NativeBenchmarkVitals.ts │ └── testSetup │ │ ├── logger.ts │ │ └── tracer.ts ├── .prettierrc.js ├── .env.alternate ├── index.js ├── Gemfile ├── react-native-config.d.ts └── scripts │ ├── create-env-config.sh │ ├── secrets │ ├── config.sh │ └── get-secret.sh │ ├── upload.sh │ └── build-android-benchmark.sh ├── example-new-architecture ├── .watchmanconfig ├── jest.config.js ├── .bundle │ └── config ├── .eslintrc.js ├── tsconfig.json ├── babel.config.js ├── app.json ├── ios │ ├── DdSdkReactNativeExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.mm │ │ └── PrivacyInfo.xcprivacy │ ├── DdSdkReactNativeExample.xcworkspace │ │ └── contents.xcworkspacedata │ ├── .xcode.env │ └── DdSdkReactNativeExampleTests │ │ └── Info.plist ├── android │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ └── proguard-rules.pro │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── .prettierrc.js ├── index.js └── Gemfile ├── packages ├── internal-testing-tools │ ├── release-content.txt │ ├── tsconfig.json │ ├── android │ │ ├── src │ │ │ ├── test │ │ │ │ └── resources │ │ │ │ │ └── mockito-extensions │ │ │ │ │ └── org.mockito.plugins.MockMaker │ │ │ └── main │ │ │ │ └── AndroidManifest.xml │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ └── settings.gradle │ ├── babel.config.js │ ├── README.md │ ├── ios │ │ ├── DatadogInternalTesting.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Sources │ │ │ ├── DatadogInternalTesting.h │ │ │ └── DdInternalTesting.h │ ├── src │ │ ├── index.ts │ │ ├── assertions │ │ │ ├── rum │ │ │ │ └── __tests__ │ │ │ │ │ └── __utils__ │ │ │ │ │ ├── views.mock.ts │ │ │ │ │ ├── errors.mock.ts │ │ │ │ │ ├── resources.mock.ts │ │ │ │ │ ├── actions.mock.ts │ │ │ │ │ └── longTasks.mock.ts │ │ │ ├── session-replay │ │ │ │ └── __tests__ │ │ │ │ │ └── __utils__ │ │ │ │ │ └── views.mock.ts │ │ │ └── assertionError.ts │ │ ├── types │ │ │ └── report.ts │ │ └── nativeModulesTypes.ts │ └── __mocks__ │ │ └── react-native.ts ├── core │ ├── tsconfig.json │ ├── app.plugin.js │ ├── src │ │ ├── version.ts │ │ ├── sdk │ │ │ ├── FileBasedConfiguration │ │ │ │ └── __tests__ │ │ │ │ │ └── __fixtures__ │ │ │ │ │ ├── malformed-configuration.json │ │ │ │ │ └── configuration-all-fields.json │ │ │ ├── AttributesSingleton │ │ │ │ ├── types.ts │ │ │ │ └── AttributesSingleton.ts │ │ │ ├── DdSdk.ts │ │ │ ├── DatadogEventEmitter │ │ │ │ └── DatadogEventEmitter.tsx │ │ │ ├── UserInfoSingleton │ │ │ │ ├── types.ts │ │ │ │ ├── UserInfoSingleton.ts │ │ │ │ └── __tests__ │ │ │ │ │ └── UserInfoSingleton.test.ts │ │ │ ├── DatadogProvider │ │ │ │ └── Buffer │ │ │ │ │ ├── PassThroughBuffer.ts │ │ │ │ │ ├── bufferNativeCall.ts │ │ │ │ │ └── BufferSingleton.ts │ │ │ └── GlobalState │ │ │ │ └── GlobalState.tsx │ │ ├── __mocks__ │ │ │ └── InternalLog.tsx │ │ ├── rum │ │ │ ├── constants.ts │ │ │ ├── instrumentation │ │ │ │ ├── interactionTracking │ │ │ │ │ ├── EventsInterceptor.tsx │ │ │ │ │ └── NoOpEventsInterceptor.tsx │ │ │ │ └── resourceTracking │ │ │ │ │ ├── headers.ts │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── headers.test.ts │ │ │ │ │ ├── graphql │ │ │ │ │ ├── graphqlHeaders.ts │ │ │ │ │ └── __tests__ │ │ │ │ │ │ └── graphqlHeaders.test.ts │ │ │ │ │ └── requestProxy │ │ │ │ │ └── interfaces │ │ │ │ │ └── RequestProxy.ts │ │ │ ├── sessionId │ │ │ │ └── sessionIdHelper.ts │ │ │ ├── __tests__ │ │ │ │ └── DdRumTimeProvider.test.ts │ │ │ ├── __mocks__ │ │ │ │ └── MockTimeProvider.ts │ │ │ └── DdAttributes.ts │ │ ├── SdkVerbosity.tsx │ │ ├── TrackingConsent.tsx │ │ ├── utils │ │ │ ├── jsUtils.ts │ │ │ ├── __mocks__ │ │ │ │ └── jsUtils.ts │ │ │ ├── longTasksUtils.ts │ │ │ └── time-provider │ │ │ │ └── DefaultTimeProvider.tsx │ │ └── metro.ts │ ├── android │ │ ├── src │ │ │ ├── test │ │ │ │ ├── resources │ │ │ │ │ ├── mockito-extensions │ │ │ │ │ │ └── org.mockito.plugins.MockMaker │ │ │ │ │ └── input │ │ │ │ │ │ ├── malformed-configuration.json │ │ │ │ │ │ └── minimal-configuration.json │ │ │ │ └── kotlin │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── tools │ │ │ │ │ └── unit │ │ │ │ │ ├── TestUiThreadExecutor.kt │ │ │ │ │ └── forge │ │ │ │ │ ├── ThrowableForgeryFactory.kt │ │ │ │ │ └── PackageInfoForgeryFactory.kt │ │ │ └── main │ │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ ├── SdkVersion.kt │ │ │ │ │ ├── DdSdkSynthetics.kt │ │ │ │ │ ├── JSONFileReader.kt │ │ │ │ │ ├── NoOpViewTrackingStrategy.kt │ │ │ │ │ ├── UiThreadExecutor.kt │ │ │ │ │ └── GlobalState.kt │ │ │ │ └── AndroidManifest.xml │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ └── gradle.properties │ ├── babel.config.js │ ├── ios │ │ ├── Tests │ │ │ └── Fixtures │ │ │ │ ├── malformed-configuration.json │ │ │ │ └── minimal-configuration.json │ │ ├── DdSdkReactNative.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Sources │ │ │ ├── SdkVersion.swift │ │ │ ├── DatadogSDKReactNative.h │ │ │ ├── DdRum.h │ │ │ ├── DdLogs.h │ │ │ ├── DdTrace.h │ │ │ ├── DdSdk.h │ │ │ └── QueueHolder.swift │ └── internal │ │ └── package.json ├── codepush │ ├── tsconfig.json │ └── babel.config.js ├── react-navigation │ ├── tsconfig.json │ ├── babel.config.js │ └── src │ │ └── index.tsx ├── react-native-navigation │ ├── tsconfig.json │ ├── babel.config.js │ └── src │ │ └── index.tsx ├── react-native-webview │ ├── tsconfig.json │ ├── android │ │ ├── src │ │ │ ├── test │ │ │ │ ├── resources │ │ │ │ │ └── mockito-extensions │ │ │ │ │ │ └── org.mockito.plugins.MockMaker │ │ │ │ └── kotlin │ │ │ │ │ └── main │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ └── tools │ │ │ │ │ └── unit │ │ │ │ │ └── GenericAssert.kt │ │ │ └── main │ │ │ │ └── AndroidManifest.xml │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ └── settings.gradle │ ├── babel.config.js │ ├── ios │ │ ├── DatadogSDKReactNativeWebView.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Sources │ │ │ ├── RCTDatadogWebViewManager.h │ │ │ ├── DatadogSDKReactNativeWebView.h │ │ │ └── RCTDatadogWebView.h │ ├── src │ │ ├── specs │ │ │ └── NativeDdWebView.ts │ │ ├── __tests__ │ │ │ └── __utils__ │ │ │ │ └── string-utils.ts │ │ └── ext-specs │ │ │ ├── NativeDdSdk.ts │ │ │ └── NativeDdLogs.ts │ └── __mocks__ │ │ └── react-native.ts ├── react-native-apollo-client │ ├── tsconfig.json │ ├── babel.config.js │ └── src │ │ ├── index.ts │ │ ├── types.ts │ │ └── __tests__ │ │ └── __utils__ │ │ └── operationMock.ts ├── react-native-session-replay │ ├── tsconfig.json │ ├── android │ │ ├── src │ │ │ ├── test │ │ │ │ ├── resources │ │ │ │ │ └── mockito-extensions │ │ │ │ │ │ └── org.mockito.plugins.MockMaker │ │ │ │ └── kotlin │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ └── tools │ │ │ │ │ └── unit │ │ │ │ │ ├── forge │ │ │ │ │ ├── ThrowableForgeryFactory.kt │ │ │ │ │ ├── ForgeConfigurator.kt │ │ │ │ │ ├── BaseConfigurator.kt │ │ │ │ │ └── WireframeClipForgeryFactory.kt │ │ │ │ │ └── MapExt.kt │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── res │ │ │ │ │ └── values │ │ │ │ │ │ └── ids.xml │ │ │ │ └── kotlin │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ └── sessionreplay │ │ │ │ │ ├── mappers │ │ │ │ │ ├── ReactViewModalMapper.kt │ │ │ │ │ └── ReactViewGroupMapper.kt │ │ │ │ │ ├── TextPropertiesResolver.kt │ │ │ │ │ └── utils │ │ │ │ │ ├── ColorUtils.kt │ │ │ │ │ └── DrawableUtils.kt │ │ │ ├── rn75 │ │ │ │ └── kotlin │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ └── sessionreplay │ │ │ │ │ └── extensions │ │ │ │ │ └── LengthPercentageExt.kt │ │ │ ├── rn76 │ │ │ │ └── kotlin │ │ │ │ │ └── com │ │ │ │ │ └── datadog │ │ │ │ │ └── reactnative │ │ │ │ │ └── sessionreplay │ │ │ │ │ └── extensions │ │ │ │ │ └── LengthPercentageExt.kt │ │ │ └── rn79 │ │ │ │ └── kotlin │ │ │ │ └── com │ │ │ │ └── datadog │ │ │ │ └── reactnative │ │ │ │ └── sessionreplay │ │ │ │ └── extensions │ │ │ │ └── LengthPercentageExt.kt │ │ ├── consumer-proguard-rules.pro │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ └── gradle.properties │ ├── babel.config.js │ ├── ios │ │ ├── DatadogSDKReactNativeSessionReplay.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Sources │ │ │ ├── DatadogSDKReactNativeSessionReplay.h │ │ │ ├── RCTFabricWrapper.h │ │ │ ├── Utils │ │ │ └── Bundle+SessionReplay.swift │ │ │ ├── DdSessionReplay.h │ │ │ ├── RCTTextPropertiesWrapper.h │ │ │ └── RCTTextPropertiesWrapper.mm │ ├── metro.js │ ├── src │ │ ├── specs │ │ │ ├── DdPrivacyViewPaper.ts │ │ │ ├── DdPrivacyView.ts │ │ │ └── DdPrivacyViewNativeComponent.ts │ │ ├── metro │ │ │ └── utils.ts │ │ ├── types │ │ │ └── DdPrivacyView.ts │ │ ├── index.ts │ │ └── components │ │ │ └── SessionReplayView │ │ │ └── HideView.tsx │ ├── __mocks__ │ │ └── react-native.ts │ └── scripts │ │ └── build-assets.js └── react-native-babel-plugin │ ├── jest.config.js │ ├── tsconfig.json │ └── src │ ├── constants │ ├── index.ts │ └── global.ts │ ├── utils │ └── index.ts │ ├── types │ ├── index.ts │ ├── rum.ts │ ├── nodes.ts │ └── helper-plugin-utils.ts │ └── libraries │ └── react-native-svg │ └── handlers │ └── SvgHandler.ts ├── .yarnrc.yml ├── babel.config.js ├── docs └── image_reactnative.png ├── prettier.config.js ├── lerna.json ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── Question.yml │ └── FeatureRequest.yml ├── workflows │ └── publish.yml └── PULL_REQUEST_TEMPLATE.md ├── .eslintignore ├── jest.setup.js ├── jestSetup.js.override ├── .vscode ├── launch.json └── settings.json ├── update-release-content.sh ├── check-release-content.sh └── tsconfig.json /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /benchmarks/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /example-new-architecture/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /packages/internal-testing-tools/release-content.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/core/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/codepush/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/core/app.plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./plugin/build'); 2 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | yarnPath: .yarn/releases/yarn-3.4.1.cjs 2 | nodeLinker: node-modules 3 | -------------------------------------------------------------------------------- /benchmarks/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-navigation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /benchmarks/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /example/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/react-native-navigation/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/react-native-webview/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/core/src/version.ts: -------------------------------------------------------------------------------- 1 | // generated by genversion 2 | export const version = '2.14.0'; 3 | -------------------------------------------------------------------------------- /packages/react-native-apollo-client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /benchmarks/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /benchmarks/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BenchmarkRunner", 3 | "displayName": "BenchmarkRunner" 4 | } 5 | -------------------------------------------------------------------------------- /example-new-architecture/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /example-new-architecture/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /benchmarks/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/core/android/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline 2 | -------------------------------------------------------------------------------- /docs/image_reactnative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/docs/image_reactnative.png -------------------------------------------------------------------------------- /example-new-architecture/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /example-new-architecture/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@react-native/typescript-config/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/codepush/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/core/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /example/src/components/consent/index.tsx: -------------------------------------------------------------------------------- 1 | import ConsentModal from './ConsentModal'; 2 | 3 | export { ConsentModal } 4 | -------------------------------------------------------------------------------- /example-new-architecture/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-native-webview/android/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline 2 | -------------------------------------------------------------------------------- /packages/react-navigation/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/debug.keystore -------------------------------------------------------------------------------- /packages/internal-testing-tools/android/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline 2 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-native-navigation/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-native-webview/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /benchmarks/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/debug.keystore -------------------------------------------------------------------------------- /packages/react-native-apollo-client/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline 2 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'] 3 | }; 4 | -------------------------------------------------------------------------------- /example-new-architecture/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DdSdkReactNativeExample", 3 | "displayName": "DD RN New architecture sample" 4 | } 5 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BenchmarkRunner 3 | 4 | -------------------------------------------------------------------------------- /benchmarks/ios/BenchmarkRunner/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DdSdkReactNativeExample", 3 | "displayName": "DD RN Sample", 4 | "navigation": "react-native-navigation" 5 | } 6 | -------------------------------------------------------------------------------- /example/ios/ddSdkReactnativeExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Datadog React Native SDK Example 3 | 4 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /benchmarks/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /benchmarks/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "jsx": "react-native" 4 | }, 5 | "extends": "@react-native/typescript-config/tsconfig.json" 6 | } 7 | -------------------------------------------------------------------------------- /example-new-architecture/ios/DdSdkReactNativeExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/ddSdkReactnativeExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /packages/core/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/packages/core/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/core/ios/Tests/Fixtures/malformed-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "clientToken": "clientToken", 3 | "env": "env", 4 | "applicationId": "applicationId" 5 | } 6 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/README.md: -------------------------------------------------------------------------------- 1 | # Internal E2E testing tools 2 | 3 | This package is internal and not released on npm. 4 | It contains tools for our E2E tests. 5 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | printWidth: 80, 3 | tabWidth: 4, 4 | singleQuote: true, 5 | arrowParens: 'avoid', 6 | trailingComma: 'none' 7 | }; 8 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /benchmarks/src/scenario/SessionReplay/component/assets/bits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/src/scenario/SessionReplay/component/assets/bits.png -------------------------------------------------------------------------------- /example-new-architecture/ios/DdSdkReactNativeExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "npmClient": "yarn", 3 | "version": "2.14.0", 4 | "packages": [ 5 | "packages/*" 6 | ], 7 | "$schema": "node_modules/lerna/schemas/lerna-schema.json" 8 | } -------------------------------------------------------------------------------- /packages/core/android/src/test/resources/input/malformed-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "clientToken": "clientToken", 3 | "env": "env", 4 | "applicationId": "applicationId" 5 | } 6 | -------------------------------------------------------------------------------- /packages/core/ios/DdSdkReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | New Architecture Datadog React Native SDK Example 3 | 4 | -------------------------------------------------------------------------------- /benchmarks/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /benchmarks/.env.alternate: -------------------------------------------------------------------------------- 1 | DD_CLIENT_TOKEN="ALT_CLIENT_TOKEN" 2 | DD_API_KEY="ALT_API_KEY" 3 | DD_APP_ID="ALT_APP_ID" 4 | DD_SITE="ALT_SITE" 5 | DD_ENV="ALT_ENV" 6 | BENCH_SCENARIO= 7 | BENCH_RUN_TYPE= -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/core/android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Uncomment here and in build.gradle for getting rid of IDE errors for new architecture: 2 | //includeBuild('../../../node_modules/react-native-gradle-plugin') 3 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/consumer-proguard-rules.pro: -------------------------------------------------------------------------------- 1 | -keepclassmembers class com.facebook.drawee.drawable.RoundedBitmapDrawable { 2 | private android.graphics.Bitmap mBitmap; 3 | } -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/benchmarks/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example-new-architecture/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/packages/internal-testing-tools/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/react-native-webview/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/packages/react-native-webview/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/core/internal/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "main": "../lib/commonjs/internal.js", 4 | "module": "../lib/module/internal.js", 5 | "types": "../lib/typescript/internal.d.ts" 6 | } -------------------------------------------------------------------------------- /packages/core/src/sdk/FileBasedConfiguration/__tests__/__fixtures__/malformed-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "clientToken": "clientToken", 3 | "env": "env", 4 | "applicationId": "applicationId" 5 | } 6 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/ios/DatadogInternalTesting.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/index.js: -------------------------------------------------------------------------------- 1 | import {AppRegistry} from 'react-native'; 2 | import App from './App'; 3 | import {name as appName} from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | transform: { 3 | '^.+\\.(t|j)sx?$': '@swc/jest' 4 | }, 5 | transformIgnorePatterns: ['node_modules/(?!(uuid)/)'] 6 | }; 7 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/packages/react-native-session-replay/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /packages/react-native-webview/ios/DatadogSDKReactNativeWebView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Global code owners - RUM Mobile Team 2 | 3 | * @DataDog/rum-mobile 4 | 5 | ## Docs 6 | 7 | /docs/ @DataDog/documentation @DataDog/rum-mobile 8 | *README.md @DataDog/documentation @DataDog/rum-mobile 9 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig", 3 | "compilerOptions": { 4 | "module": "CommonJS", 5 | "verbatimModuleSyntax": false 6 | }, 7 | "include": ["src", "types"] 8 | } 9 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DataDog/dd-sdk-reactnative/HEAD/example-new-architecture/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/src/NavigationRoot.tsx: -------------------------------------------------------------------------------- 1 | import type { NavigationContainerRef } from '@react-navigation/native'; 2 | import * as React from 'react'; 3 | 4 | export const navigationRef: React.RefObject = React.createRef(); -------------------------------------------------------------------------------- /benchmarks/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './src/App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /benchmarks/ios/BenchmarkRunner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "BenchmarkRunner-Swift.h" 3 | 4 | int main(int argc, char * argv[]) { 5 | @autoreleasepool { 6 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/core/android/gradle.properties: -------------------------------------------------------------------------------- 1 | DdSdkReactNative_kotlinVersion=1.8.21 2 | DdSdkReactNative_minSdkVersion=21 3 | DdSdkReactNative_compileSdkVersion=33 4 | DdSdkReactNative_buildToolsVersion=33.0.0 5 | DdSdkReactNative_targetSdkVersion=33 6 | android.useAndroidX=true 7 | -------------------------------------------------------------------------------- /packages/core/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/ios/ddSdkReactnativeExample/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | example 3 | example-new-architecture 4 | benchmarks 5 | dist 6 | lib 7 | packages/core/android/build/reports/tests 8 | // TODO remove that line once bridges updated 9 | // with proper order of context and timestamp 10 | packages/**/src/foundation.tsx 11 | -------------------------------------------------------------------------------- /packages/core/ios/Tests/Fixtures/minimal-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../datadog-configuration.schema.json", 3 | "configuration": { 4 | "applicationId": "fake-app-id", 5 | "env": "fake-env", 6 | "clientToken": "fake-client-token" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example-new-architecture/ios/DdSdkReactNativeExample/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 15 10:26:26 WET 2025 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /packages/core/android/src/test/resources/input/minimal-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../../../../datadog-configuration.schema.json", 3 | "configuration": { 4 | "applicationId": "fake-app-id", 5 | "env": "fake-env", 6 | "clientToken": "fake-client-token" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Question.yml: -------------------------------------------------------------------------------- 1 | name: Question 2 | description: Do you just have a question about the SDK or a product? Ask here. 3 | labels: ["question"] 4 | body: 5 | - type: textarea 6 | id: question 7 | attributes: 8 | label: Question 9 | validations: 10 | required: true 11 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/android/gradle.properties: -------------------------------------------------------------------------------- 1 | DatadogInternalTesting_kotlinVersion=1.8.21 2 | DatadogInternalTesting_minSdkVersion=21 3 | DatadogInternalTesting_compileSdkVersion=33 4 | DatadogInternalTesting_buildToolsVersion=33.0.0 5 | DatadogInternalTesting_targetSdkVersion=33 6 | android.useAndroidX=true 7 | -------------------------------------------------------------------------------- /benchmarks/ios/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "BenchmarkRunner-Swift.h" 3 | 4 | @interface AppDelegate : UIResponder 5 | @end 6 | 7 | int main(int argc, char * argv[]) { 8 | @autoreleasepool { 9 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/react-native-webview/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Nov 20 08:39:09 CET 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 7 | -------------------------------------------------------------------------------- /benchmarks/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /example/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | # Exclude problematic versions of cocoapods and activesupport that causes build failures. 4 | gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' 5 | gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' 6 | gem 'xcodeproj', '< 1.26.0' 7 | gem 'concurrent-ruby', '< 1.3.4' 8 | gem 'rexml', '3.4.2' -------------------------------------------------------------------------------- /benchmarks/ios/BenchmarkRunner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/react-native-webview/android/gradle.properties: -------------------------------------------------------------------------------- 1 | DatadogSDKReactNativeWebView_kotlinVersion=1.7.21 2 | DatadogSDKReactNativeWebView_minSdkVersion=21 3 | DatadogSDKReactNativeWebView_compileSdkVersion=33 4 | DatadogSDKReactNativeWebView_buildToolsVersion=33.0.0 5 | DatadogSDKReactNativeWebView_targetSdkVersion=33 6 | android.useAndroidX=true 7 | -------------------------------------------------------------------------------- /example-new-architecture/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /example/ios/DdSdkReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example-new-architecture/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | # Exclude problematic versions of cocoapods and activesupport that causes build failures. 4 | gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' 5 | gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' 6 | gem 'xcodeproj', '< 1.26.0' 7 | gem 'concurrent-ruby', '< 1.3.4' 8 | gem 'rexml', '3.4.2' -------------------------------------------------------------------------------- /example/ios/DdSdkReactNativeExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/core/ios/DdSdkReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/android/settings.gradle: -------------------------------------------------------------------------------- 1 | // This is only used for building locally and testing the package. 2 | // If the package is used in an app that contains ":datadog_mobile-react-native" it will be resolved correctly. 3 | include ':datadog_mobile-react-native' 4 | project(':datadog_mobile-react-native').projectDir = new File('../../core/android') 5 | -------------------------------------------------------------------------------- /packages/react-native-apollo-client/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export { DatadogLink } from './DatadogLink'; 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/settings.gradle: -------------------------------------------------------------------------------- 1 | // This is only used for building locally and testing the package. 2 | // If the package is used in an app that contains ":datadog_mobile-react-native" it will be resolved correctly. 3 | include ':datadog_mobile-react-native' 4 | project(':datadog_mobile-react-native').projectDir = new File('../../core/android') 5 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /example-new-architecture/ios/DdSdkReactNativeExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/metro.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | module.exports = require('./lib/commonjs/metro/index.js'); 8 | -------------------------------------------------------------------------------- /packages/core/src/__mocks__/InternalLog.tsx: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export const InternalLog = { 8 | log: jest.fn() 9 | }; 10 | -------------------------------------------------------------------------------- /packages/core/src/rum/constants.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export const BABEL_PLUGIN_TELEMETRY = 'Datadog Babel Integration Telemetry'; 8 | -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/src/constants/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export * from './global'; 8 | export * from './rum'; 9 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/android/gradle.properties: -------------------------------------------------------------------------------- 1 | DatadogSDKReactNativeSessionReplay_kotlinVersion=1.8.21 2 | DatadogSDKReactNativeSessionReplay_compileSdkVersion=33 3 | DatadogSDKReactNativeSessionReplay_minSdkVersion=21 4 | DatadogSDKReactNativeSessionReplay_buildToolsVersion=33.0.0 5 | DatadogSDKReactNativeSessionReplay_targetSdkVersion=33 6 | android.useAndroidX=true 7 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/ios/DatadogInternalTesting.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export * from './nodeProcessing'; 8 | export * from './PluginState'; 9 | -------------------------------------------------------------------------------- /packages/react-native-webview/ios/DatadogSDKReactNativeWebView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /benchmarks/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'BenchmarkRunner' 5 | include ':app' 6 | includeBuild('../node_modules/@react-native/gradle-plugin') 7 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /benchmarks/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /packages/react-native-session-replay/ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/core/src/sdk/AttributesSingleton/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export type Attributes = { 8 | readonly [key: string]: unknown; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/internal-testing-tools/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | import { InternalTesting } from './InternalTesting'; 8 | 9 | export { InternalTesting }; 10 | -------------------------------------------------------------------------------- /example-new-architecture/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /example-new-architecture/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'DdSdkReactNativeExample' 5 | include ':app' 6 | includeBuild('../../node_modules/@react-native/gradle-plugin') -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/src/types/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export * from './general'; 8 | export * from './nodes'; 9 | export * from './rum'; 10 | -------------------------------------------------------------------------------- /benchmarks/src/component/Stepper/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export interface StepperProps { 8 | onDecreasePressed: () => void, 9 | onIncreasePressed: () => void, 10 | }; -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'DdSdkReactNativeExample' 5 | include ':app' 6 | includeBuild('../node_modules/@react-native/gradle-plugin') 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /benchmarks/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | # Exclude problematic versions of cocoapods and activesupport that causes build failures. 7 | gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' 8 | gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' 9 | gem 'xcodeproj', '< 1.26.0' 10 | gem 'concurrent-ruby', '< 1.3.4' 11 | -------------------------------------------------------------------------------- /benchmarks/src/component/Picker/styles.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from "react-native"; 2 | import { Colors } from "../../common/styles"; 3 | 4 | export default StyleSheet.create({ 5 | pickerButton: { 6 | padding: 10, 7 | }, 8 | picker: { 9 | width: '40%', 10 | backgroundColor: Colors.White, 11 | }, 12 | pickerLabel: { 13 | color: Colors.DarkGrey, 14 | fontSize: 15, 15 | }, 16 | }); -------------------------------------------------------------------------------- /packages/core/ios/Sources/SdkVersion.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | import Foundation 8 | 9 | // This is automatically updated by the update-version.sh script 10 | let SdkVersion = "2.14.0" 11 | -------------------------------------------------------------------------------- /packages/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.tsx: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export interface EventsInterceptor { 8 | interceptOnPress(...args: any[]): void; 9 | } 10 | -------------------------------------------------------------------------------- /packages/react-native-webview/ios/Sources/RCTDatadogWebViewManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | #import "RNCWebViewManager.h" 8 | 9 | @interface RCTDatadogWebViewManager : RNCWebViewManager 10 | @end 11 | -------------------------------------------------------------------------------- /packages/core/ios/Sources/DatadogSDKReactNative.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | // This file is imported in the auto-generated DatadogSDKReactNative-Swift.h header file. 8 | // Deleting it could result in iOS builds failing. 9 | -------------------------------------------------------------------------------- /benchmarks/src/scenario/Default/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | import type { TestConfig } from "../../testSetup/types/testConfig" 8 | 9 | export type DefaultScenarioProps = { 10 | testConfig?: TestConfig, 11 | } -------------------------------------------------------------------------------- /benchmarks/src/scenario/Traces/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | import type { TestConfig } from "../../testSetup/types/testConfig" 8 | 9 | export type TracesScenarioProps = { 10 | testConfig?: TestConfig, 11 | }; -------------------------------------------------------------------------------- /benchmarks/src/component/Picker/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export interface PickerProps { 8 | onValueChange: (newValue: unknown) => void, 9 | label: string; 10 | values: {label: string, value: string}[]; 11 | }; -------------------------------------------------------------------------------- /packages/internal-testing-tools/ios/Sources/DatadogInternalTesting.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | // This file is imported in the auto-generated DatadogSDKReactNative-Swift.h header file. 8 | // Deleting it could result in iOS builds failing. 9 | -------------------------------------------------------------------------------- /benchmarks/src/scenario/NavigationExample/types.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | import type { TestConfig } from "../../testSetup/types/testConfig" 8 | 9 | export type NavigationExampleScenarioProps = { 10 | testConfig?: TestConfig, 11 | } -------------------------------------------------------------------------------- /example/src/axiosConfig.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | const axios = require('axios'); 8 | 9 | const axiosInstance = axios.default.create({ 10 | baseURL: 'https://random-data-api.com' 11 | }); 12 | 13 | module.exports = axiosInstance; -------------------------------------------------------------------------------- /packages/react-native-babel-plugin/src/libraries/react-native-svg/handlers/SvgHandler.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. 3 | * This product includes software developed at Datadog (https://www.datadoghq.com/). 4 | * Copyright 2016-Present Datadog, Inc. 5 | */ 6 | 7 | export interface SvgHandler { 8 | transformSvgNode(dimensions: Record): string | undefined; 9 | } 10 | -------------------------------------------------------------------------------- /example/src/screens/NestedNavigator/ScreenWithLinks.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Button} from 'react-native'; 3 | import {useNavigation} from '@react-navigation/native' 4 | 5 | export const ScreenWithLinks = (props: {links: { routeName: string}[]}) => { 6 | const {navigate} = useNavigation() 7 | return (<> 8 | {props.links.map(link =>