Skip to content

Commit

Permalink
Changes by GitHub action (#35)
Browse files Browse the repository at this point in the history
* Update generated classes after commit 9415517

* Update

---------

Co-authored-by: masesdevelopers <[email protected]>
  • Loading branch information
github-actions[bot] and masesdevelopers authored Jun 3, 2024
1 parent 9415517 commit 208f638
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/generateclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"org.xml.sax.helpers.XMLReaderAdapter"
],
"ClassesToAvoid": [
"android.net.TransportInfo",
"android.util.Range",
"java.io.ObjectInputFilter",
"java.lang.Enum$EnumDesc",
Expand All @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions src/net/Netdroid/Generated/Android/Net/Wifi/WifiInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ public Android.Net.MacAddress GetApMldMacAddress()
return IExecuteWithSignature<Android.Net.MacAddress>("getApMldMacAddress", "()Landroid/net/MacAddress;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/net/wifi/WifiInfo.html#makeCopy(long)"/>
/// </summary>
/// <param name="arg0"><see cref="long"/></param>
/// <returns><see cref="Android.Net.TransportInfo"/></returns>
public Android.Net.TransportInfo MakeCopy(long arg0)
{
return IExecuteWithSignature<Android.Net.TransportInfo>("makeCopy", "(J)Landroid/net/TransportInfo;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/net/wifi/WifiInfo.html#getSupplicantState()"/>
/// </summary>
/// <returns><see cref="Android.Net.Wifi.SupplicantState"/></returns>
Expand Down
8 changes: 8 additions & 0 deletions src/net/Netdroid/Generated/Android/Widget/AdapterView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,14 @@ public T GetAdapter()
return IExecuteWithSignature<T>("getAdapter", "()Landroid/widget/Adapter;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getAdapter()"/>
/// </summary>
/// <returns><typeparamref name="T"/></returns>
public T GetAdapterDirect()
{
return IExecuteWithSignature<TDirect, T>("getAdapter", "()Landroid/widget/Adapter;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#setAdapter(android.widget.Adapter)"/>
/// </summary>
/// <param name="arg0"><typeparamref name="T"/></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public AutoCompleteTextView(Android.Content.Context arg0)
/// </summary>
/// <param name="arg0"><typeparamref name="T"/></param>
/// <typeparam name="T"><see cref="Android.Widget.IListAdapter"/></typeparam>
public void SetAdapter<T>(T arg0) where T : Android.Widget.IListAdapter, Android.Widget.IFilterable, new()
public void SetAdapter<T>(T arg0) where T : Android.Widget.IListAdapter, new(), Android.Widget.IFilterable, new()
{
IExecuteWithSignature("setAdapter", "(Landroid/widget/ListAdapter;)V", arg0);
}
Expand Down
6 changes: 3 additions & 3 deletions src/net/Netdroid/Generated/Java/Time/Chrono/Chronology.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public Java.Time.Chrono.ChronoLocalDate DateYearDay(Java.Time.Chrono.Era arg0, i
/// <param name="arg0"><see cref="Java.Time.Temporal.TemporalAccessor"/></param>
/// <typeparam name="ReturnExtendsJava_Time_Chrono_ChronoLocalDate"><see cref="Java.Time.Chrono.ChronoLocalDate"/></typeparam>
/// <returns><see cref="Java.Time.Chrono.ChronoLocalDateTime"/></returns>
public Java.Time.Chrono.ChronoLocalDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> LocalDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new()
public Java.Time.Chrono.ChronoLocalDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> LocalDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate
{
return IExecuteWithSignature<Java.Time.Chrono.ChronoLocalDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>>("localDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoLocalDateTime;", arg0);
}
Expand All @@ -313,7 +313,7 @@ public Java.Time.Chrono.ChronoPeriod Period(int arg0, int arg1, int arg2)
/// <param name="arg1"><see cref="Java.Time.ZoneId"/></param>
/// <typeparam name="ReturnExtendsJava_Time_Chrono_ChronoLocalDate"><see cref="Java.Time.Chrono.ChronoLocalDate"/></typeparam>
/// <returns><see cref="Java.Time.Chrono.ChronoZonedDateTime"/></returns>
public Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> ZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Instant arg0, Java.Time.ZoneId arg1) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new()
public Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> ZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Instant arg0, Java.Time.ZoneId arg1) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate
{
return IExecute<Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>>("zonedDateTime", arg0, arg1);
}
Expand All @@ -323,7 +323,7 @@ public Java.Time.Chrono.ChronoPeriod Period(int arg0, int arg1, int arg2)
/// <param name="arg0"><see cref="Java.Time.Temporal.TemporalAccessor"/></param>
/// <typeparam name="ReturnExtendsJava_Time_Chrono_ChronoLocalDate"><see cref="Java.Time.Chrono.ChronoLocalDate"/></typeparam>
/// <returns><see cref="Java.Time.Chrono.ChronoZonedDateTime"/></returns>
public Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> ZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate, new()
public Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate> ZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>(Java.Time.Temporal.TemporalAccessor arg0) where ReturnExtendsJava_Time_Chrono_ChronoLocalDate : Java.Time.Chrono.ChronoLocalDate
{
return IExecuteWithSignature<Java.Time.Chrono.ChronoZonedDateTime<ReturnExtendsJava_Time_Chrono_ChronoLocalDate>>("zonedDateTime", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoZonedDateTime;", arg0);
}
Expand Down

0 comments on commit 208f638

Please sign in to comment.