-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #732 from DataDog/marcosaia/RUM-6255/native-webview
[RUM-6255] Auto-Instrumented Native WebView
- Loading branch information
Showing
49 changed files
with
2,998 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/react-native-webview/DatadogSDKReactNativeWebView.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "DatadogSDKReactNativeWebView" | ||
s.version = package["version"] | ||
s.summary = package["description"] | ||
s.homepage = package["homepage"] | ||
s.license = package["license"] | ||
s.authors = package["author"] | ||
|
||
s.platforms = { :ios => "12.0", :tvos => "12.0" } | ||
s.source = { :git => "https://github.com/DataDog/dd-sdk-reactnative.git", :tag => "#{s.version}" } | ||
|
||
|
||
s.source_files = "ios/Sources/*.{h,m,mm,swift}" | ||
|
||
s.dependency "React-Core" | ||
|
||
# /!\ Remember to keep the version in sync with DatadogSDKReactNative.podspec | ||
s.dependency 'DatadogWebViewTracking', '~> 2.18.0' | ||
s.dependency 'DatadogInternal', '~> 2.18.0' | ||
s.dependency 'DatadogSDKReactNative' | ||
|
||
s.test_spec 'Tests' do |test_spec| | ||
test_spec.dependency "react-native-webview" | ||
test_spec.dependency "React-RCTText" | ||
|
||
test_spec.source_files = 'ios/Tests/*.swift' | ||
test_spec.platforms = { :ios => "13.4", :tvos => "13.4" } | ||
end | ||
|
||
|
||
# This guard prevents installing the dependencies when we run `pod install` in the old architecture. | ||
# The `install_modules_dependencies` function is only available from RN 0.71, the new architecture is not | ||
# supported on earlier RN versions. | ||
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then | ||
s.pod_target_xcconfig = { | ||
"DEFINES_MODULE" => "YES", | ||
"OTHER_CPLUSPLUSFLAGS" => "-DRCT_NEW_ARCH_ENABLED=1" | ||
} | ||
|
||
install_modules_dependencies(s) | ||
end | ||
end |
Oops, something went wrong.