diff --git a/.github/workflows/generateclasses.yaml b/.github/workflows/generateclasses.yaml index 3775a7da7..1e7eae667 100644 --- a/.github/workflows/generateclasses.yaml +++ b/.github/workflows/generateclasses.yaml @@ -119,14 +119,29 @@ jobs: run: jnetreflector -TraceLevel 0 -OriginRootPath %ANDROID_HOME%\platforms\android-34-ext8 -DestinationRootPath %GITHUB_WORKSPACE%\src\ -ConfigurationFile %GITHUB_WORKSPACE%\src\configuration.json env: JCOBRIDGE_LicensePath: ${{ secrets.JCOBRIDGE_ONLINE }} - + + - name: Request a PR to commit changes made with unpublished version of JNetReflector + if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true && inputs.UseLatestJNetReflector == true }} #do not push any changes outside main repo or GeneratePR is false + uses: peter-evans/create-pull-request@v6 + with: + branch-suffix: short-commit-hash + add-paths: src/*.* + commit-message: Update generated classes using last unpublished version of JNetReflector + title: Changes by GitHub action + body: | + Automated changes by GitHub action, fix #2 + reviewers: masesdevelopers + assignees: masesdevelopers + labels: java, .NET, enhancement + - name: Extract commit SHA + if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true && inputs.UseLatestJNetReflector == false }} run: | echo "GITHUB_COMMIT_MESSAGE=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV shell: bash - name: Request a PR to commit changes - if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true }} #do not push any changes outside main repo or GeneratePR is false + if: ${{ github.repository_owner == 'masesgroup' && inputs.GeneratePR == true && inputs.UseLatestJNetReflector == false }} #do not push any changes outside main repo or GeneratePR is false uses: peter-evans/create-pull-request@v6 with: branch-suffix: short-commit-hash diff --git a/src/configuration.json b/src/configuration.json index a65ea1c1b..bef7a00e2 100644 --- a/src/configuration.json +++ b/src/configuration.json @@ -76,6 +76,7 @@ "org.xml.sax.helpers.XMLReaderAdapter" ], "ClassesToAvoid": [ + "android.net.TransportInfo", "android.util.Range", "java.io.ObjectInputFilter", "java.lang.Enum$EnumDesc", @@ -96,6 +97,7 @@ "java.sql.ShardingKeyBuilder", "java.sql.SQLType", "java.text.NumberFormat$Style", + "java.time.chrono.ChronoLocalDate", "java.util.Comparator", "java.util.EventListener", "java.util.random.RandomGenerator", diff --git a/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs b/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs index 6b9871561..0d0c3641e 100644 --- a/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs +++ b/src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs @@ -179,6 +179,15 @@ public Android.Net.MacAddress GetApMldMacAddress() return IExecuteWithSignature("getApMldMacAddress", "()Landroid/net/MacAddress;"); } /// + /// + /// + /// + /// + public Android.Net.TransportInfo MakeCopy(long arg0) + { + return IExecuteWithSignature("makeCopy", "(J)Landroid/net/TransportInfo;", arg0); + } + /// /// /// /// diff --git a/src/net/Netdroid/Generated/Android/Widget/AdapterView.cs b/src/net/Netdroid/Generated/Android/Widget/AdapterView.cs index 236e6c47e..147902457 100644 --- a/src/net/Netdroid/Generated/Android/Widget/AdapterView.cs +++ b/src/net/Netdroid/Generated/Android/Widget/AdapterView.cs @@ -836,6 +836,14 @@ public T GetAdapter() return IExecuteWithSignature("getAdapter", "()Landroid/widget/Adapter;"); } /// + /// + /// + /// + public T GetAdapterDirect() + { + return IExecuteWithSignature("getAdapter", "()Landroid/widget/Adapter;"); + } + /// /// /// /// diff --git a/src/net/Netdroid/Generated/Android/Widget/AutoCompleteTextView.cs b/src/net/Netdroid/Generated/Android/Widget/AutoCompleteTextView.cs index 3e26d4fec..5a897c00f 100644 --- a/src/net/Netdroid/Generated/Android/Widget/AutoCompleteTextView.cs +++ b/src/net/Netdroid/Generated/Android/Widget/AutoCompleteTextView.cs @@ -100,7 +100,7 @@ public AutoCompleteTextView(Android.Content.Context arg0) /// /// /// - public void SetAdapter(T arg0) where T : Android.Widget.IListAdapter, Android.Widget.IFilterable, new() + public void SetAdapter(T arg0) where T : Android.Widget.IListAdapter, new(), Android.Widget.IFilterable, new() { IExecuteWithSignature("setAdapter", "(Landroid/widget/ListAdapter;)V", arg0); } diff --git a/src/net/Netdroid/Generated/Java/Time/Chrono/Chronology.cs b/src/net/Netdroid/Generated/Java/Time/Chrono/Chronology.cs index a99d30993..108c792dd 100644 --- a/src/net/Netdroid/Generated/Java/Time/Chrono/Chronology.cs +++ b/src/net/Netdroid/Generated/Java/Time/Chrono/Chronology.cs @@ -291,7 +291,7 @@ public Java.Time.Chrono.ChronoLocalDate DateYearDay(Java.Time.Chrono.Era arg0, i /// /// /// - public Java.Time.Chrono.ChronoLocalDateTime LocalDateTime(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new() + public Java.Time.Chrono.ChronoLocalDateTime LocalDateTime(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate { return IExecuteWithSignature>("localDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoLocalDateTime;", arg0); } @@ -313,7 +313,7 @@ public Java.Time.Chrono.ChronoPeriod Period(int arg0, int arg1, int arg2) /// /// /// - public Java.Time.Chrono.ChronoZonedDateTime ZonedDateTime(Java.Time.Instant arg0, Java.Time.ZoneId arg1) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new() + public Java.Time.Chrono.ChronoZonedDateTime ZonedDateTime(Java.Time.Instant arg0, Java.Time.ZoneId arg1) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate { return IExecute>("zonedDateTime", arg0, arg1); } @@ -323,7 +323,7 @@ public Java.Time.Chrono.ChronoPeriod Period(int arg0, int arg1, int arg2) /// /// /// - public Java.Time.Chrono.ChronoZonedDateTime ZonedDateTime(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new() + public Java.Time.Chrono.ChronoZonedDateTime ZonedDateTime(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate { return IExecuteWithSignature>("zonedDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoZonedDateTime;", arg0); }