Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

.NET11 RC2 AndroidTypeMapImplementation trimmable doesn't generate java callable wrappers for classes marked with Register attribute

オープン
#13,205 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
46/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, csharp
領域
mobile

調査の方向性

Start by reading the .NET for Android changes to the trimmable type map implementation and how it handles classes marked with Register and methods marked with Export. Reproduce the issue using the provided FeaturesLib example and inspect the build output for Java callable wrappers. Done means the wrappers are generated for registered classes when AndroidTypeMapImplementation is set to trimmable.

索引モデルが issue の本文から書いたものです。

説明

needs-triage

We have been using Register attribute on Java.Lang.Object derived classes and Export attribute on its methods to generate Java callable wrappers for Android. E.g.

[Register("AndroidFeatures.FeaturesLib")]
public class FeaturesLib : Java.Lang.Object
{
    private MutableLiveData _data = new MutableLiveData(new Intent());
    
    [Export("Initialize")]
    public void Initialize(MutableLiveData data)
    {
        _data = data;
    }
    
    [Export("GetFeatureStr")]
    public string GetFeatureStr(string jString)
    {
        return jString;
    }

    [Export("GetDigitalValue")]
    public int GetDigitalValue()
    {
        return -999;
    }
}

I tried to use .NET11's new trimmable typemap using trimmable. The resulting build output doesn't contain the Java callable wrappers for the classes.

Can this be addressed?
@jonathanpeppers

主要言語
C#
スター
2.1k
フォーク
581
平均マージ
1日 17時間
マージ済み PR(30日)
237

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/android のほかの issue

dotnet/android の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。