-
Notifications
You must be signed in to change notification settings - Fork 534
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
[Xamarin.Android.Build.utilities] Switch over to using the xamarin-android-tools repo for SDK resolution. [INPROGRESS] #241
Conversation
…droid-tools repo for SDK resolution. We currently have duplicate code between Xamarin.Android and Xamarin Studio to resolve the Android Sdk/Ndk. This commit updates xamarin-android to use the new xamarin-android-tools repo for the SDK resolution. Xamarin Studio will also need to be updated to use the new common code base.
@@ -29,3 +29,6 @@ | |||
path = external/llvm | |||
url = https://github.com/mono/llvm.git | |||
branch = master | |||
[submodule "external/xamarin-android-tools"] | |||
path = external/xamarin-android-tools | |||
url = git@github.com:xamarin/xamarin-android-tools.git |
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 should be an https://
url, like the other submodules. Requiring git@
urls complicates checkouts for those who don't have GitHub accounts, iirc. (Or something like that...?)
@@ -643,6 +643,10 @@ | |||
<Project>{E248B2CA-303B-4645-ADDC-9D4459D550FD}</Project> | |||
<Name>libZipSharp</Name> | |||
</ProjectReference> | |||
<ProjectReference Include="..\..\external\xamarin-android-tools\src\Xamarin.Android.Tools\Xamarin.Android.Tools.csproj"> |
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.
We should possibly follow suit with other external modules:
-
In toplevel
Configuration.props
, add a$(XamarinAndroidToolsFullPath)
MSBuild property (and others) -
This line should then become:
<ProjectReference Include="$(XamarinAndroidToolsFullPath)\src\Xamarin.Android.Tools\Xamarin.Android.Tools.csproj">
This is so that the directory can be overridden.
<ItemGroup> | ||
<Folder Include="Sdks\" /> | ||
<ProjectReference Include="..\..\external\xamarin-android-tools\src\Xamarin.Android.Tools\Xamarin.Android.Tools.csproj"> |
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.
Ditto here with using $(XamarinAndroidToolsFullPath)
.
Note that the PR build failed:
This is probably due to the use of the |
build |
Superseded by PR #835. |
Added them to the gendarme ignore list with an explanation.
We currently have duplicate code between Xamarin.Android and Xamarin Studio
to resolve the Android Sdk/Ndk. This commit updates xamarin-android to use
the new xamarin-android-tools repo for the SDK resolution.
Xamarin Studio will also need to be updated to use the new common code
base.