-
Notifications
You must be signed in to change notification settings - Fork 64
manual update mu 20211216 androidx.window:*-1.0.0(stable)
#449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test NuGets from CI dotnet/android-libraries#449
|
I pulled the NuGet packages from the CI and added them to a Xamarin.Android test project - seems to work 😊 microsoft/surface-duo-sdk-xamarin-samples#33 Will these NuGets get published? We had a PR for |
|
@moljac what's the status of this PR? did the stdlib update cause issues? |
|
I think we're going to have to hold off on this until we investigate the breaking changes to Kotlin 1.6 and determine if they're on our side or Kotlin's side: |
I downgraded Kotlin StdLib, skipped Building, cleaning up and preparing for release. Other stable bindings are in: and that one will be nasty. |
…b.com/xamarin/AndroidX into mu-20211216-androidx-window-1.0.0-rc1
androidx.window:*-1.0.0-rc1androidx.window:*-1.0.0(stable)
I think I got it with: There are still |
|
The Kotlin 1.6 issue is being tracked here: dotnet/java-interop#945. |
|
I don't think changing the parameter name is going to fix it: Type Changed: Kotlin.UIntArrayRemoved methods: public static uint Get (int[] _this, int index);
public static void Set (int[] _this, int index, uint value);Added methods: public static int Get (int[] _this, int index);
public static void Set (int[] _this, int index, int value);I think the only way to fix this without binding tooling changes would be to change the |
I changed types back to unsigned versions. Let us see if that helps, so this is unblocked. |
jpobst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I was afraid fixing this was going to require a lot more metadata than this.
I think we need to switch to type and then we're good to go.
| </attr> | ||
| <attr | ||
| path="/api/package[@name='kotlin']/class[@name='UIntArray']/method[@name='set-VXSXFK8' and count(parameter)=3 and parameter[1][@type='int[]'] and parameter[2][@type='int'] and parameter[3][@type='int']]/parameter[3]" | ||
| name="managedType" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize you should always use managedType and are never supposed to use type, but I think in these cases we actually do want type. There is some custom marshalling code that gets generated for Kotlin unsigned types, and I suspect it won't get triggered with managedType. Thus the code may not work correctly at runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize you should always use
managedTypeand are never supposed to usetype, but I think in these cases we actually do wanttype. There is some custom marshalling code that gets generated for Kotlin unsigned types, and I suspect it won't get triggered withmanagedType. Thus the code may not work correctly at runtime.
You know I try not to remove-node and to not change native type and return.
OK. Trying only type (only for parameter)!!
jpobst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!
* [WindowManager] update to rc01 test NuGets from CI dotnet/android-libraries#449 * [all] update Jetpack Window Manager (rc01) * [all] update Jetpack Window Manager (1.0.0 stable) * tweaks * add comments re 1.0.0.7 stable version update * [windowmanager] config tweaks * update README for Jetpack Window Manager support
Does this change any of the generated binding API's?
no API changes for
androidx.window:*-1.0.0new version of
kotlin-stdlibDescribe your contribution
androidx.window:*-1.0.0related:
#446
Updated