Skip to content

Conversation

@pjcollins
Copy link
Member

@pjcollins pjcollins commented Jan 18, 2024

A $(JavaSdkVersion) property has been added to specify the preferred
Java SDK version that will be returned by <GetAndroidDependencies/>.

<AndroidSdkEmulatorVersion Condition="'$(AndroidSdkEmulatorVersion)' == ''"></AndroidSdkEmulatorVersion>
<AndroidSdkPlatformVersion Condition="'$(AndroidSdkPlatformVersion)' == ''">android-34</AndroidSdkPlatformVersion>
<AndroidNdkVersion Condition="'$(AndroidNdkVersion)' == ''">26.1.10909125</AndroidNdkVersion>
<JavaSdkVersion Condition="'$(JavaSdkVersion)' == ''">17.0.8.1</JavaSdkVersion>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think $(JdkVersion) was also a candidate name for this property? $(JavaSdkVersion) may be a better fit, as it more closely matches the $(JavaSdkDirectory) property that can be used to specify the path to the JDK.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only doc that mentions InstallAndroidDependencies:

https://github.com/dotnet/docs-maui/blob/main/docs/get-started/installation.md

I didn't make a public property for the JDK version here: https://github.com/xamarin/monodroid/commit/dbc9c67e7bd45744e5174dd7e94e5b642418bef9

@pjcollins pjcollins marked this pull request as ready for review January 22, 2024 22:21
<AndroidSdkEmulatorVersion Condition="'$(AndroidSdkEmulatorVersion)' == ''"></AndroidSdkEmulatorVersion>
<AndroidSdkPlatformVersion Condition="'$(AndroidSdkPlatformVersion)' == ''">android-34</AndroidSdkPlatformVersion>
<AndroidNdkVersion Condition="'$(AndroidNdkVersion)' == ''">26.1.10909125</AndroidNdkVersion>
<JavaSdkVersion Condition="'$(JavaSdkVersion)' == ''">17.0.8.1</JavaSdkVersion>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only doc that mentions InstallAndroidDependencies:

https://github.com/dotnet/docs-maui/blob/main/docs/get-started/installation.md

I didn't make a public property for the JDK version here: https://github.com/xamarin/monodroid/commit/dbc9c67e7bd45744e5174dd7e94e5b642418bef9

@pjcollins pjcollins merged commit ed102fc into main Jan 23, 2024
@pjcollins pjcollins deleted the dev/pjc/installjdk branch January 23, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants