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

オープン 初心者向け
#7,073 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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 へのガイド作業を読み、次に 2 つの項目を追加してください。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分
マージ済み PR(30日)
106

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-react-native のほかの issue

getsentry/sentry-react-native の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。