CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Issues with Template

Đang mở
#69 25 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
249
Fork
48
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

The template, as is, does not seem to be working. The using directives are not being recognized, apparently due to the declaration of Metadata.xml.

I tried many different approaches to fix this (mostly by trying to add the generated *. aar file somehow to the project, for instance, as an AndroidLibrary or as an EmbeddedReferenceJar), but I'm getting to the conclusion that the original intention was to have something behind the scenes that would make the conversion specified in the Metadata.xml implementation work.

As per the content generated about the template, I was expecting that a simple build in Android Studio would be enough to make it happen. Before trying to fix this as I mentioned above, I was expecting that a simple build of the native Android project, followed by the build of the .Net Maui project, would be enough, as per the high level discussion on this between @rachelkang and @jamesmontemagno.

### Steps to Reproduce

1. Clone the repository
2. Open the template solution as is
3. Build the android native project
4. Build the .Net Maui
5. See that the Android using directives are not working;

### Link to public reproduction project repository

_No response_

### Environment

- OS:
- .NET MAUI:
- Target platforms:

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Open the template solution and inspect Metadata.xml, the native Android project, and the .NET MAUI project. Reproduce the reported sequence by building the native Android project followed by the .NET MAUI project, then trace why the Android using directives are not recognized. Done means the documented template build produces working Android using directives without an unexplained manual AAR integration.

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, csharp
Lĩnh vực
build-system, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/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.