Missing attribute support for `<property>` manifest items.
Maintainer thường phản hồi trong vòng 1 ngày
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
- 30/100
Hướng nghiên cứu
The payload names no files or classes. Start by finding how the existing Application-level <property> support generates manifest entries, then how the Activity attribute creates <activity> nodes and where the merge duplicates them. Reproduce with the steps in the issue. Done means a C#-side way to declare a property on an activity produces one merged <activity> entry, and a maintainer agrees on the attribute API first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Android framework version
net11.0-android (Preview)
Affected platform version
Net 10, 11
Description
Activity and Application supports many attributes that generates manifest items, like [Activity], [IntentFilter] etc. Android introduced a new manifest item for activities and application, https://developer.android.com/guide/topics/manifest/property-element a few versions back. Currently, it's only possible to set elements in nodes in manifest and not for nodes. The merging tool duplicates activity entries if you attempt to set it in the manifest file, and no attribute exists that allow the generator to create those entries for
A use case for this is support multi instance mode in the system ui, as explained here https://developer.android.com/develop/adaptive-apps/guides/support-desktop-windowing#multitasking_and_multi-instance https://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-instance . Setting it in application scope will affect all activities, including those the user will not want to be created multiple times. Setting it in activity scope is currently not supported, thus this issue is created.
Steps to Reproduce
- Create a new Android application.
- Try adding an activity element in the manifest with the same name as the c# activity.
- Add a property element, like https://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-instance .
- When build is complete, the generated manifest has 2 entries with the same activity name.
Did you find any workaround?
No response
Relevant log output
- Ngôn ngữ chính
- C#
- Star
- 2.1k
- Fork
- 581
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 241
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có 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 dotnet/android
-
Area: App+Library Build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
EditText.getText() isn't boundĐang mởArea: Mono.Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotnet/android#9192 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: App Runtime needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
-
flaky-ci flaky-tests needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: App+Library Build needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/android
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sebastienros/jint#4282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
pyrevitlabs/pyRevit#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Update the about pageĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
fboucher/2d6-dungeon-app#256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: design documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eyalgolan/statecraft-israel#883 ·
Maintainer thường phản hồi trong vòng 1 ngày