react / react/react-native

Removing `newArchEnabled` property might cause issues with old libraries

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

Chưa có ai nhận issue này.

Needs: Attention Needs: Repro p: Callstack Partner Type: New Architecture
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

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.

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

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.