Skip to content

Commit 9c200de

Browse files
Merge branch 'master' into kw/add-user-feedback
2 parents b38ad60 + 1ef4bdd commit 9c200de

File tree

9 files changed

+287
-341
lines changed

9 files changed

+287
-341
lines changed

.github/workflows/build.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
11+
SENTRY_ALLOW_FAILURE: false
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-android:
19+
name: Android
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 18
27+
cache: 'npm'
28+
cache-dependency-path: package-lock.json
29+
30+
- run: npm ci
31+
32+
- uses: actions/setup-java@v4
33+
with:
34+
java-version: '17'
35+
distribution: 'adopt'
36+
37+
- uses: gradle/gradle-build-action@v3
38+
39+
- working-directory: android
40+
run: ./gradlew :app:assembleRelease
41+
42+
- name: Upload APK
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: empower-plant-react-native-android
46+
path: android/app/build/outputs/apk/release/app-release.apk
47+
retention-days: 60
48+
49+
build-ios:
50+
name: iOS
51+
runs-on: macos-14
52+
steps:
53+
- uses: actions/checkout@v4
54+
55+
- uses: actions/setup-node@v4
56+
with:
57+
node-version: 18
58+
cache: 'npm'
59+
cache-dependency-path: package-lock.json
60+
61+
- run: npm ci
62+
63+
- uses: ruby/setup-ruby@v1
64+
with:
65+
ruby-version: '3.3.0'
66+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
67+
68+
- working-directory: ios
69+
run: bundle exec pod install
70+
71+
- name: Run xcodebuild
72+
working-directory: ios
73+
run: |
74+
mkdir -p "DerivedData"
75+
derivedData="$(cd "DerivedData" ; pwd -P)"
76+
set -o pipefail && xcodebuild \
77+
-workspace sentry_react_native.xcworkspace \
78+
-configuration "Release" \
79+
-scheme sentry_react_native \
80+
-destination 'generic/platform=iOS Simulator' \
81+
-derivedDataPath "$derivedData" \
82+
build \
83+
| tee xcodebuild.log \
84+
| xcbeautify --quieter --is-ci --disable-colored-output
85+
86+
- name: Upload APP
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: empower-plant-react-native-ios
90+
path: ios/DerivedData/Build/Products/Release-iphonesimulator/sentry_react_native.app
91+
retention-days: 60
92+
93+
- name: Upload logs
94+
if: ${{ always() }}
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: build-ios-logs
98+
path: ios/xcodebuild.log

android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ android {
150150
dependencies {
151151
// The version of react-native is set by the React Native Gradle Plugin
152152
implementation("com.facebook.react:react-android")
153-
implementation 'androidx.core:core-ktx:+'
154153

155154
if (hermesEnabled.toBoolean()) {
156155
implementation("com.facebook.react:hermes-android")

ios/Podfile.lock

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,11 +1211,29 @@ PODS:
12111211
- ReactCommon/turbomodule/bridging
12121212
- ReactCommon/turbomodule/core
12131213
- Yoga
1214-
- RNSentry (5.26.0):
1214+
- RNSentry (6.5.0):
1215+
- DoubleConversion
1216+
- glog
12151217
- hermes-engine
1218+
- RCT-Folly (= 2024.01.01.00)
1219+
- RCTRequired
1220+
- RCTTypeSafety
1221+
- React-Codegen
12161222
- React-Core
1223+
- React-debug
1224+
- React-Fabric
1225+
- React-featureflags
1226+
- React-graphics
12171227
- React-hermes
1218-
- Sentry/HybridSDK (= 8.31.1)
1228+
- React-ImageManager
1229+
- React-NativeModulesApple
1230+
- React-RCTFabric
1231+
- React-rendererdebug
1232+
- React-utils
1233+
- ReactCommon/turbomodule/bridging
1234+
- ReactCommon/turbomodule/core
1235+
- Sentry/HybridSDK (= 8.43.0)
1236+
- Yoga
12191237
- RNVectorIcons (10.1.0):
12201238
- DoubleConversion
12211239
- glog
@@ -1237,7 +1255,7 @@ PODS:
12371255
- ReactCommon/turbomodule/bridging
12381256
- ReactCommon/turbomodule/core
12391257
- Yoga
1240-
- Sentry/HybridSDK (8.31.1)
1258+
- Sentry/HybridSDK (8.43.0)
12411259
- SocketRocket (0.7.0)
12421260
- Yoga (0.0.0)
12431261

@@ -1491,12 +1509,12 @@ SPEC CHECKSUMS:
14911509
ReactCommon: f42444e384d82ab89184aed5d6f3142748b54768
14921510
RNGestureHandler: 2282cfbcf86c360d29f44ace393203afd5c6cff7
14931511
RNScreens: b32a9ff15bea7fcdbe5dff6477bc503f792b1208
1494-
RNSentry: 85fe1023bf60ead12d059d9c845de19de0ed6f0d
1512+
RNSentry: aa75421e670b184b645fdd70a03c480056dc5bb4
14951513
RNVectorIcons: 2a2f79274248390b80684ea3c4400bd374a15c90
1496-
Sentry: 9c1188876ea1291d1a9db4b38c3f17ebd8e6985e
1514+
Sentry: 532b281a53b1b45a523fd592f608956fb36e577c
14971515
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
14981516
Yoga: 348f8b538c3ed4423eb58a8e5730feec50bce372
14991517

1500-
PODFILE CHECKSUM: 80c7c0d5a0c5b9c4c998360149ad615db237b157
1518+
PODFILE CHECKSUM: 785af98a36abdee2bc88d72af0fe14c3f69e6945
15011519

15021520
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)