Repository navigation
Allow installing the SDK if one doesn't exist - #4003
Merged
Merged
Conversation
Member
|
There are 2 tests failures:
I'll look into the second one, I bet that the manifest merger feature is causing it: |
jonathanpeppers
approved these changes
Dec 9, 2019
jonathanpeppers
added a commit
to jonathanpeppers/xamarin-android
that referenced
this pull request
Dec 9, 2019
Context: dotnet#4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml`. I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
jonathanpeppers
added a commit
to jonathanpeppers/xamarin-android
that referenced
this pull request
Dec 10, 2019
Context: dotnet#4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml`. I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
jonathanpeppers
added a commit
that referenced
this pull request
Dec 11, 2019
Context: #4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml` when the activity's name is changed: -<activity android:name=".MainActivity"> +<activity android:name=".MainActivity2"> I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
jonpryor
pushed a commit
that referenced
this pull request
Dec 12, 2019
…xist (#4003) Fixes #3996 Commit 008ba98 did not go far enough. Both `ValidateJavaVersion` and `ResolveSdks` also needed the same `ContinueOnError` setting. While the commit did allow users to install components which were missing, it did NOT allow users to install the entire SDK. This is because even when calling's the `InstallAndroidDependencies` target the build would still fail with ``` error XA5300: The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory. ``` What we need to do in this case was include the `ContinueOnError` property on `ValidateJavaVersion` and `ResolveSdks`. This allows the build to continue and call the targets to install the required SDK. This is very handy for CI environments as it means we can install the Android SDK from scratch on a clean machine.
jonathanpeppers
added a commit
to jonathanpeppers/xamarin-android
that referenced
this pull request
Dec 17, 2019
Context: dotnet#4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml` when the activity's name is changed: -<activity android:name=".MainActivity"> +<activity android:name=".MainActivity2"> I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
jonathanpeppers
added a commit
to jonathanpeppers/xamarin-android
that referenced
this pull request
Dec 17, 2019
Context: dotnet#4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml` when the activity's name is changed: -<activity android:name=".MainActivity"> +<activity android:name=".MainActivity2"> I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
jonpryor
pushed a commit
that referenced
this pull request
Dec 18, 2019
Context: #4003 (comment) Since 2c6f5cd, I believe we are hitting a performance regression in the `Build_JLO_Change` test: Building target "_ManifestMerger" completely. Input file "obj/Debug/AndroidManifest.xml" is newer than output file "obj/Debug/android/AndroidManifest.xml". Fortunately, I think we just need to change the test. The test itself alters `AndroidManifest.xml` when the activity's name is changed: -<activity android:name=".MainActivity"> +<activity android:name=".MainActivity2"> I added a new test that specifically times a `AndroidManifest.xml` change vs a `Java.Lang.Object` subclass change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3996
Commit 008ba98 did not go far enough. Both
ValidateJavaVersionandResolveSdksalso needed the sameContinueOnErrorsetting. While the commit did allow users to install components which were missing, it did NOT allow users to install the entire SDK. This is because even when calling's theInstallAndroidDependenciestarget the build would still fail withWhat we need to do in this case was include the
ContinueOnErrorproperty onValidateJavaVersionandResolveSdks. This allows the build to continue and call the targets to install the required sdk. This is very handy for CI environments as it means we can install the Android SDK from scratch on a clean machine.