Removing `newArchEnabled` property might cause issues with old libraries
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C++
- Star
- 127k
- Fork
- 25.3k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
Description
When newArchEnabled property is set in gradle.properties, a warning is displayed:
********************************************************************************
WARNING: Setting `newArchEnabled=false` in your `gradle.properties` file is not
supported anymore since React Native 0.82.
You can remove the line from your `gradle.properties` file.
The application will run with the New Architecture enabled by default.
********************************************************************************
As long as your dependencies do not rely on this property to enable new arch, you are good to remove it. Libraries created with builder bob < v0.48.4, check for the property, so disabling it might cause issues with migration.
I propose to remove the line "You can remove the line from your gradle.properties file." or change it to mention old libraries.
Steps to reproduce
not relevant
React Native Version
0.82.0
Affected Platforms
Runtime - Android
Areas
Other (please specify)
Output of npx @react-native-community/cli info
not relevant
Stacktrace or Logs
not relevant
MANDATORY Reproducer
not relevant
Screenshots and Videos
No response
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.
Hướng nghiên cứu
Issue này nêu gradle.properties và bao gồm nội dung cảnh báo, nhưng không có tệp mã nguồn React Native hoặc bài kiểm thử nào. Hãy tìm kiếm chính xác cảnh báo đó trong repository, kiểm tra đường dẫn cấu hình Android phát ra cảnh báo và so sánh với template builder-bob được liên kết. Cập nhật hướng dẫn cho các thư viện cũ hơn, sau đó chạy bài kiểm thử cấu hình Android hoặc cảnh báo có liên quan; hoàn tất nghĩa là thông báo không còn ngụ ý tính an toàn vô điều kiện.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, react-native
- Lĩnh vực
- build-system, mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100