Investigate AGP built-in Kotlin and remove android.builtInKotlin=false opt-out
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- kotlin
- Lĩnh vực
- build-system, mobile
Hướng nghiên cứu
Bắt đầu với gradle.properties và buildSrc/src/main/java/Config.kt:5, sau đó kiểm tra khoảng 15 module áp dụng org.jetbrains.kotlin.android, bao gồm sentry-android và sentry-android-core. Xóa android.builtInKotlin=false trong một cấu hình thử nghiệm và ghi lại khả năng tương thích, việc kiểm soát phiên bản Kotlin, hành vi của stdlib và các lỗi hỏng trong nhiều module. Được xem là hoàn tất khi các ràng buộc và một lộ trình di chuyển được ghi chép rõ ràng, lý tưởng nhất là đã xóa opt-out.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to the AGP 8.13.1 → 9.2.1 bump (getsentry/sentry-java#5777). AGP 9 bundles its own ("built-in") Kotlin. To land the bump without a large refactor, we added a temporary opt-out in gradle.properties:
# AGP 9+ migration opt-outs until we remove kotlin-android plugin and adopt built-in Kotlin.
android.builtInKotlin=false
Why this matters: android.builtInKotlin=false keeps us on the standalone org.jetbrains.kotlin.android plugin (Kotlin 2.3.21). If Google removes this opt-out in a future AGP release, we would be forced onto built-in Kotlin — and given our current project structure, that may block us from upgrading at all.
What to investigate:
- Whether AGP's built-in Kotlin version can be controlled/pinned, and whether it is compatible with our multi-module setup.
- What breaks if we remove
android.builtInKotlin=falsetoday.
What's involved:
org.jetbrains.kotlin.androidis applied in ~15 modules (sentry-android, sentry-android-core, sentry-android-replay, sentry-compose, etc.). Adopting built-in Kotlin means removing that plugin from all of them.- Interacts with
kotlin.stdlib.default.dependency=false(stdlib management) and the pinnedkotlinStdLibVersionAndroid = "1.9.24"(buildSrc/src/main/java/Config.kt:5).
Done when: we understand the constraints, have a documented path forward, and (ideally) can remove android.builtInKotlin=false.
Should be picked up after the AGP bump PRs merge.
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 478
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 70
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-java
-
Improvement Java Platform: Java
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-java#6145 · 1 bình luận ·
-
Bug Java Platform: Java
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-java#6138 · 1 bình luận ·
-
Feature Java Platform: Java Spans
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-java#5984 · 1 bình luận ·
-
Android Task Traces
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-java#5376 · 1 bình luận ·
-
Android Docs Errors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
getsentry/sentry-java#5375 · 1 bình luận ·
Tất cả issue của getsentry/sentry-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
2 rename bugs Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ankidroid/Anki-Android#21999 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openwallet-foundation/multipaz#2028 ·