Document Android minSdk 24 and Kotlin 2.0+ in v9 migration guide

未關閉 適合新手
#7,073 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
78/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
android, kotlin, react-native
領域
documentation

研究方向

變更本身是位於 docs.sentry.io/platforms/react-native/migration/ 的 React Native 遷移指南中的說明文字(與此儲存庫不同的另一個儲存庫),這才是這裡主要的摩擦點。閱讀 getsentry/sentry-react-native#6735 中相關的 v8 到 v9 指南工作以了解章節配置,然後新增兩條項目:將 Android 的 minSdkVersion 提高到 24,並要求 kotlinVersion 2.0+(RN 0.76 / Expo SDK 52 是需要提升 Kotlin 的一組,0.77 / SDK 53 已經沒問題)。完成意味著指南要在給出版本分界以及 Expo SDK 52 說明的同時,寫明這兩項破壞性變更。

由索引模型根據 Issue 內容生成。

描述

React-Native

sentry-java v9, which RN SDK v9 will pull in, raises Android minSdk to 24 and bumps the Kotlin language/API version from 1.9 to 2.1. Apps that compile Kotlin then need Kotlin 2.0 or newer. Both are breaking for some RN apps and should be called out in the RN migration guide.

  • minSdk 24: apps with a lower Android minSdkVersion must raise it.
  • Kotlin 2.0+: older RN Android templates default to Kotlin 1.9, so those apps fail to build until they raise kotlinVersion. RN 0.77+ / Expo SDK 53+ are compatible by default.
  • RN 0.76 / Expo SDK 52 is the only group the Kotlin bump newly breaks once minSdk 24 is accounted for. Expo SDK 52 supports Kotlin 2.0.21, and RN 0.76's AGP 8.6.0 works with it, so these apps can bump Kotlin without other upgrades.
  • Impact: 34 orgs have RN 0.76 as their newest RN version and SDK 7.x as their newest SDK (23 Expo), out of ~406 orgs on RN 0.76 overall. All are self-serve.
  • Reasoning and impact analysis: Kotlin version proposal for SDK 9.0. Org-level data: Hex thread.

Related: getsentry/sentry-react-native#6735 (v8 → v9 migration guide).

Action taken by Junior.

主要語言
TypeScript
星號
1.8k
分支
371
平均合併
22 小時 3 分鐘
30 天內合併 PR
106

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getsentry/sentry-react-native 的其他 Issue

查看 getsentry/sentry-react-native 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。