Commit bdbc7bc
authored
MagicWeather: upgrade to React Native 0.85.3 (#1769)
## Summary
- Upgrades the MagicWeather example app from React Native 0.83 →
**0.85.3**, bumps `react-native-purchases` to `^10.1.0` and
`react-native-safe-area-context` to `^5.7.0`, and aligns React +
`@react-native/*` peer/dev deps to the 0.85.3 template.
- Switches `jest.config.js` to the new mandatory
`@react-native/jest-preset` (the bare `'react-native'` preset is removed
in 0.85). Realigns `jest` / `@types/jest` to v29 to match the preset's
bundled deps.
- Lets `pod install` apply the legacy-architecture-removal flags RN 0.85
expects on the iOS app target (`-DRCT_REMOVE_LEGACY_ARCH=1` in
`OTHER_CFLAGS`/`OTHER_CPLUSPLUSFLAGS`, `SWIFT_ENABLE_EXPLICIT_MODULES =
NO`).
- Pins the Android Gradle wrapper back to **9.3.1** (the version RN 0.85
ships with) — 9.4.1 bundles kotlin-stdlib 2.3.0 which can't be read by
the Kotlin 2.1.20 compiler used to build the RN gradle plugin.
No source-code changes were needed: nothing in `src/` used the APIs
removed in 0.84/0.85 (`StyleSheet.absoluteFillObject`,
`AccessibilityInfo.setAccessibilityFocus`, etc.), and the
AppDelegate/MainActivity/MainApplication/Podfile already match the 0.85
template.
## Test plan
- [x] `yarn install` clean
- [x] `tsc --noEmit` passes
- [x] `yarn test` passes (no tests defined)
- [x] `bundle exec pod install` on a clean `ios/Pods` (uses prebuilt
RNCore + Hermes V1 + PurchasesHybridCommon 18.4.0)
- [x] iOS `xcodebuild ... -sdk iphonesimulator build` → **BUILD
SUCCEEDED**
- [x] `react-native bundle --platform ios` → bundles cleanly with Metro
v0.84.4
- [x] Android `./gradlew :app:assembleDebug` → **BUILD SUCCESSFUL**
- [x] Run on iOS simulator end-to-end
- [ ] Run on Android emulator end-to-end
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent e92a790 commit bdbc7bc
5 files changed
Lines changed: 1039 additions & 1642 deletions
File tree
- examples/MagicWeather
- android/gradle/wrapper
- ios/MagicWeatherReactNative.xcodeproj
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
379 | 383 | | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| 393 | + | |
388 | 394 | | |
389 | 395 | | |
390 | 396 | | |
| |||
442 | 448 | | |
443 | 449 | | |
444 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
445 | 455 | | |
446 | 456 | | |
447 | 457 | | |
448 | 458 | | |
449 | 459 | | |
450 | 460 | | |
451 | 461 | | |
| 462 | + | |
452 | 463 | | |
453 | 464 | | |
454 | 465 | | |
455 | 466 | | |
456 | 467 | | |
457 | 468 | | |
458 | 469 | | |
| 470 | + | |
459 | 471 | | |
460 | 472 | | |
461 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
0 commit comments