NativeScript / NativeScript/android
Gradle clean task executes not needed steps
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C++
- Star
- 563
- Fork
- 144
- Merge trung bình
- 10 giờ 46 phút
- Pull request đã merge (30 ngày)
- 14
Mô tả
Environment
- CLI: 5.3.2
- Cross-platform modules:
- Android Runtime: 5.3.1
- iOS Runtime (if applicable):
- Plugin(s):
Describe the bug
Gradle clean...
+ setting applicationId
+ applying user-defined configuration from /Users/myUser/Work/nativescript-cli/scratch/buildProject/app/App_Resources/Android/app.gradle
+ using support library version 28.0.0
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: /Users/myUser/Work/nativescript-cli/scratch/buildProject/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Gradle build...
+ setting applicationId
+ applying user-defined configuration from /Users/myUser/Work/nativescript-cli/scratch/buildProject/app/App_Resources/Android/app.gradle
+ using support library version 28.0.0
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: /Users/myUser/Work/nativescript-cli/scratch/buildProject/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
As you can see from the above log, the output from Gradle clean... and Gradle build... is the same. Most probably we don't need to execute build task's logic when cleaning the project.
To Reproduce
tns build android --bundle --clean
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
Bắt đầu bằng cách tái hiện tns build android --bundle --clean và so sánh các bước được ghi log cho các giai đoạn clean và build. Theo dõi điểm vào của tác vụ clean và xác định vì sao logic của tác vụ build lại chạy trong quá trình dọn dẹp; hoàn thành khi clean không còn thực hiện các bước build không cần thiết, trong khi đầu ra build thông thường vẫn không thay đổi.
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
- Lĩnh vực
- build-system, mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100