-
Notifications
You must be signed in to change notification settings - Fork 550
Use complete Java.Interop #1231
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
Use complete Java.Interop #1231
Conversation
Please make sure #1230 is merged and built before merging this PR. |
|
||
public override void WaitForGCBridgeProcessing () | ||
{ | ||
throw new NotImplementedException (); |
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.
This can call JNIEnv.WaitForBridgeProcessing()
.
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.
OK, I will add it. Looks like it is not called yet though.
if (targetType == null) | ||
return o.Instance; | ||
return Convert.ChangeType (o.Instance, targetType); | ||
return Convert.ChangeType(o.Instance, targetType); |
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.
Strange whitespace changes...
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.
Ops, VS formatting :-)
@@ -12,10 +12,9 @@ | |||
Outputs="$(OutputPath)\..\v1.0\Java.Interop.dll"> | |||
<MSBuild |
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.
Ideally, we shouldn't need this <MSBuild/>
invocation anymore, nor the _BuildJavaInterop
target, nor the @(Assembly)
item group (below).
Instead -- ideally -- we'd have a @(ProjectReference)
within Mono.Android.csproj
referring to Java.Interop.csproj
, and MSBuild would handle it "normally".
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.
OK, I will try it in the next PR.
Start using complete Java.Interop, ie. `Debug` and `Release` configurations instead of `XAIntegrationDebug` and `XAIntegrationRelease`. Add Java.Interop java sources to the list of sources to build mono.android.jar. This is needed for `ManagedPeer` and other classes with java counterparts. Few updates to distinguish between `Android.Runtime.JavaObject` and `Java.Interop.JavaObject`. Added System.Collections reference is for `List<JniSurfacedPeerInfo>` return type in `AndroidValueManager`.
4716fed
to
c9f9dce
Compare
@monojenkins build Ubuntu+xbuild PR Build |
In PR: dotnet#360 I will likely add a new `$(Configuration)` to be used in xamarin-android, so we can build `Java.Interop` as a non-PCL. The existence of `XAIntegrationDebug` and `XAIntegrationRelease` are confusing, since they are no longer used. See: dotnet@54a2aff dotnet/android#1231 This removes `XAIntegrationDebug` and `XAIntegrationRelease` from all solutions and project files. I also let VS 2017 update the SLN file, as it was an old VS 2010 format...
In PR: dotnet#360 I will likely add a new `$(Configuration)` to be used in xamarin-android, so we can build `Java.Interop` as a non-PCL. The existence of `XAIntegrationDebug` and `XAIntegrationRelease` are confusing, since they are no longer used. See: dotnet@54a2aff dotnet/android#1231 This removes `XAIntegrationDebug` and `XAIntegrationRelease` from all solutions, project files, and `Makefile`. I also let VS 2017 update the SLN file, as it was an old VS 2010 format...
In PR: dotnet#360 I will likely add a new `$(Configuration)` to be used in xamarin-android, so we can build `Java.Interop` as a non-PCL. The existence of `XAIntegrationDebug` and `XAIntegrationRelease` are confusing, since they are no longer used. See: dotnet@54a2aff dotnet/android#1231 This removes `XAIntegrationDebug` and `XAIntegrationRelease` from all solutions, project files, and `Makefile`. I also let VS 2017 update the SLN file, as it was an old VS 2010 format...
In PR: #360 I will likely add a new `$(Configuration)` to be used in xamarin-android, so we can build `Java.Interop` as a non-PCL. The existence of `XAIntegrationDebug` and `XAIntegrationRelease` are confusing, since they are no longer used. See: 54a2aff dotnet/android#1231 This removes `XAIntegrationDebug` and `XAIntegrationRelease` from all solutions, project files, and `Makefile`. I also let VS 2017 update the SLN file, as it was an old VS 2010 format...
In PR: dotnet#360 I will likely add a new `$(Configuration)` to be used in xamarin-android, so we can build `Java.Interop` as a non-PCL. The existence of `XAIntegrationDebug` and `XAIntegrationRelease` are confusing, since they are no longer used. See: dotnet@54a2aff dotnet/android#1231 This removes `XAIntegrationDebug` and `XAIntegrationRelease` from all solutions, project files, and `Makefile`. I also let VS 2017 update the SLN file, as it was an old VS 2010 format...
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1397171 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1433453 Changes: xamarin/monodroid@4e8702a...06ff96d * xamarin/monodroid@06ff96ddc: Bump to xamarin/androidtools@802ead1c, android-sdk-installer@01b73d23 (#1232) * xamarin/monodroid@42fef41af: Bump to 0503d63 (#1231)
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1397171 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1433453 Changes: xamarin/monodroid@4e8702a...06ff96d * xamarin/monodroid@06ff96ddc: Bump to xamarin/androidtools@802ead1c, android-sdk-installer@01b73d23 (#1232) * xamarin/monodroid@42fef41af: Bump to 0503d63 (#1231)
Start using complete Java.Interop, ie.
Debug
andRelease
configurations instead of
XAIntegrationDebug
andXAIntegrationRelease
.Add Java.Interop java sources to the list of sources to build
mono.android.jar. This is needed for
ManagedPeer
and other classeswith java counterparts.
Few updates to distinguish between
Android.Runtime.JavaObject
andJava.Interop.JavaObject
.Added System.Collections reference is for
List<JniSurfacedPeerInfo>
return type in
AndroidValueManager
.