Skip to content

Commit 5e5b5f7

Browse files
committed
Remove old e2e RN app
1 parent 7ffc912 commit 5e5b5f7

Some content is hidden

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

66 files changed

+3621
-17114
lines changed

e2e/react-native-otel/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@ This is a React Native application that demonstrates the LaunchDarkly Observabil
99
yarn install
1010
```
1111

12-
2. **Start the OTel collector** (and view logs):
12+
2. **Start the OTel collector**:
1313
```bash
1414
yarn otel:start
1515
```
1616

1717
3. **Configure LaunchDarkly** (optional):
1818
- Adjust OTLP endpoint and configuration as needed
1919

20-
4. **Start the development server**:
20+
4. **Run the app** (remember to set your SDK key):
2121
```bash
22-
# Make sure to set your SDK key when starting the app
23-
LAUNCHDARKLY_MOBILE_KEY=<your_mobile_sdk_key> yarn ios
22+
export LAUNCHDARKLY_MOBILE_KEY=<your_mobile_sdk_key>
23+
24+
# Start the Metro bundler
25+
yarn start
26+
27+
# Build and run in a specific simulator
28+
yarn ios:run
2429
```
2530

2631
## Configuration

e2e/react-native-otel/app.json

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
{
2-
"expo": {
3-
"name": "react-native-otel",
4-
"slug": "react-native-otel",
5-
"version": "1.0.0",
6-
"orientation": "portrait",
7-
"icon": "./assets/images/icon.png",
8-
"scheme": "reactnativeotel",
9-
"userInterfaceStyle": "automatic",
10-
"newArchEnabled": true,
11-
"ios": {
12-
"supportsTablet": true
13-
},
14-
"android": {
15-
"adaptiveIcon": {
16-
"foregroundImage": "./assets/images/adaptive-icon.png",
17-
"backgroundColor": "#ffffff"
18-
},
19-
"edgeToEdgeEnabled": true
20-
},
21-
"web": {
22-
"bundler": "metro",
23-
"output": "static",
24-
"favicon": "./assets/images/favicon.png"
25-
},
26-
"plugins": [
27-
"expo-router",
28-
[
29-
"expo-splash-screen",
30-
{
31-
"image": "./assets/images/splash-icon.png",
32-
"imageWidth": 200,
33-
"resizeMode": "contain",
34-
"backgroundColor": "#ffffff"
35-
}
36-
]
37-
],
38-
"experiments": {
39-
"typedRoutes": true
40-
}
41-
}
2+
"expo": {
3+
"name": "react-native-otel",
4+
"slug": "react-native-otel",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "reactnativeotel",
9+
"userInterfaceStyle": "automatic",
10+
"newArchEnabled": true,
11+
"ios": {
12+
"supportsTablet": true,
13+
"bundleIdentifier": "com.anonymous.react-native-otel"
14+
},
15+
"android": {
16+
"adaptiveIcon": {
17+
"foregroundImage": "./assets/images/adaptive-icon.png",
18+
"backgroundColor": "#ffffff"
19+
},
20+
"edgeToEdgeEnabled": true
21+
},
22+
"web": {
23+
"bundler": "metro",
24+
"output": "static",
25+
"favicon": "./assets/images/favicon.png"
26+
},
27+
"plugins": [
28+
"expo-router",
29+
[
30+
"expo-splash-screen",
31+
{
32+
"image": "./assets/images/splash-icon.png",
33+
"imageWidth": 200,
34+
"resizeMode": "contain",
35+
"backgroundColor": "#ffffff"
36+
}
37+
]
38+
],
39+
"experiments": {
40+
"typedRoutes": true
41+
}
42+
}
4243
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
.xcode.env.local
25+
26+
# Bundle artifacts
27+
*.jsbundle
28+
29+
# CocoaPods
30+
/Pods/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This `.xcode.env` file is versioned and is used to source the environment
2+
# used when running script phases inside Xcode.
3+
# To customize your local environment, you can create an `.xcode.env.local`
4+
# file that is not versioned.
5+
6+
# NODE_BINARY variable contains the PATH to the node executable.
7+
#
8+
# Customize the NODE_BINARY variable here.
9+
# For example, to use nvm with brew, add the following line
10+
# . "$(brew --prefix nvm)/nvm.sh" --no-use
11+
export NODE_BINARY=$(command -v node)

e2e/react-native-otel/ios/Podfile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2+
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
3+
4+
require 'json'
5+
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
6+
7+
ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
8+
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
9+
10+
platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
11+
install! 'cocoapods',
12+
:deterministic_uuids => false
13+
14+
prepare_react_native_project!
15+
16+
target 'reactnativeotel' do
17+
use_expo_modules!
18+
19+
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
20+
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
21+
else
22+
config_command = [
23+
'npx',
24+
'expo-modules-autolinking',
25+
'react-native-config',
26+
'--json',
27+
'--platform',
28+
'ios'
29+
]
30+
end
31+
32+
config = use_native_modules!(config_command)
33+
34+
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
35+
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
36+
37+
use_react_native!(
38+
:path => config[:reactNativePath],
39+
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
40+
# An absolute path to your application root.
41+
:app_path => "#{Pod::Config.instance.installation_root}/..",
42+
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
43+
)
44+
45+
post_install do |installer|
46+
react_native_post_install(
47+
installer,
48+
config[:reactNativePath],
49+
:mac_catalyst_enabled => false,
50+
:ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
51+
)
52+
53+
# This is necessary for Xcode 14, because it signs resource bundles by default
54+
# when building for devices.
55+
installer.target_installation_results.pod_target_installation_results
56+
.each do |pod_name, target_installation_result|
57+
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
58+
resource_bundle_target.build_configurations.each do |config|
59+
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
60+
end
61+
end
62+
end
63+
end
64+
end

0 commit comments

Comments
 (0)