Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Investigate AGP built-in Kotlin and remove android.builtInKotlin=false opt-out

Đang mở
#5,782 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

Platform: Android Platform: Java repository maintenance

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=false today.

What's involved:

  • org.jetbrains.kotlin.android is 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 pinned kotlinStdLibVersionAndroid = "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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-java

Tất cả issue của getsentry/sentry-java

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.