Skip to content

Commit c9380ae

Browse files
committed
ci: add build-status job to handle cancelled runs
1 parent 49381b0 commit c9380ae

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,14 @@ jobs:
133133
- name: Build example for iOS
134134
run: |
135135
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
136+
137+
build-status:
138+
runs-on: ubuntu-latest
139+
needs: [build-android, build-ios]
140+
if: always()
141+
steps:
142+
- name: Check build status
143+
run: |
144+
if [[ "${{ needs.build-android.result }}" == "failure" || "${{ needs.build-ios.result }}" == "failure" ]]; then
145+
exit 1
146+
fi

android/src/main/java/com/lodev09/truesheet/core/TrueSheetKeyboardObserver.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ interface TrueSheetKeyboardObserverDelegate {
2121
* Tracks keyboard height and notifies delegate on changes.
2222
* Uses WindowInsetsAnimationCompat on API 30+, ViewTreeObserver fallback on older versions.
2323
*/
24-
class TrueSheetKeyboardObserver(
25-
private val targetView: View,
26-
private val reactContext: ThemedReactContext
27-
) {
24+
class TrueSheetKeyboardObserver(private val targetView: View, private val reactContext: ThemedReactContext) {
2825

2926
var delegate: TrueSheetKeyboardObserverDelegate? = null
3027

0 commit comments

Comments
 (0)