Skip to content

[Xamarin.Android.Build.Tasks] Correctly set build tools version in CheckSignApk test #966

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

Merged

Conversation

akoeplinger
Copy link
Member

The test failed locally for me with:

/Users/alexander/dev/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: 
error : '/Users/alexander/Library/Developer/Xamarin/android-sdk-macosx/build-tools/23.0.0/apksigner' does not exist.
You need to install android-sdk build-tools 26.0.1 or above.

which is weird since it's looking into the 23.0.0 build tools which doesn't have apksigner even though the test specifies build tools 26.0.1.

Turns out the test had a typo, it used AndroidBuildToolsVersion instead of AndroidSdkBuildToolsVersion so it fell back to 23.0.0 :)

…eckSignApk test

The test failed locally for me with:

```
/Users/alexander/dev/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : '/Users/alexander/Library/Developer/Xamarin/android-sdk-macosx/build-tools/23.0.0/apksigner' does not exist. You need to install android-sdk build-tools 26.0.1 or above.
```

which is weird since it's looking into the 23.0.0 build tools which
doesn't have apksigner even though the test specifies build tools 26.0.1.

Turns out the test had a typo, it used AndroidBuildToolsVersion
instead of AndroidSdkBuildToolsVersion so it fell back to 23.0.0 :)
@jonpryor jonpryor merged commit a08f885 into dotnet:master Oct 24, 2017
@akoeplinger akoeplinger deleted the fix-buildtoolsversion-apksigner-test branch October 24, 2017 15:08
Redth pushed a commit to Redth/xamarin-android that referenced this pull request Oct 30, 2017
…eckSignApk test (dotnet#966)

The test failed locally for me with:

```
…/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:
error : '…/android-sdk-macosx/build-tools/23.0.0/apksigner' does not exist.
You need to install android-sdk build-tools 26.0.1 or above.
```

which is weird since it's looking into the 23.0.0 build tools which
doesn't have apksigner even though the test specifies build tools 26.0.1.

Turns out the test had a typo, it used `AndroidBuildToolsVersion`
instead of `AndroidSdkBuildToolsVersion` so it fell back to 23.0.0 :)
dellis1972 added a commit to dellis1972/xamarin-android that referenced this pull request Apr 16, 2019
As part of a move to unify our unit tests into the
main repo this PR brings in all the InstantRun tests.
They are protected bbehind a `CommercialBuildAvailable`
check which will only be `true` if the commercial parts
are available. The commercial tests are also flagged with
a nunit category attribute of `Commercial` just in case we
decide to filter in the future.

This PR also makes some changes to the folder structure.
ALL `Task` based tests (i.e ones that test just a Task using
the MockBbuildEngine) have been moved into the `Tasks` folder.
We already have a few tests in that folder, this make sure
they are all in one place.

the `*.OSS.cs` partial class files have been renamed to
`*.TestCaseSource.cs`. They also handle the tests for BOTH
open source and commercial builds. As a result they will
not longer be needed in the commercial repo. They were also
moved into the shared project. This change will probably cause
commercial build failures until PR dotnet#966 is merged on the
commercial side.
dellis1972 added a commit to dellis1972/xamarin-android that referenced this pull request Apr 16, 2019
As part of a move to unify our unit tests into the
main repo this PR brings in all the InstantRun tests.
They are protected bbehind a `CommercialBuildAvailable`
check which will only be `true` if the commercial parts
are available. The commercial tests are also flagged with
a nunit category attribute of `Commercial` just in case we
decide to filter in the future.

This PR also makes some changes to the folder structure.
ALL `Task` based tests (i.e ones that test just a Task using
the MockBbuildEngine) have been moved into the `Tasks` folder.
We already have a few tests in that folder, this make sure
they are all in one place.

the `*.OSS.cs` partial class files have been renamed to
`*.TestCaseSource.cs`. They also handle the tests for BOTH
open source and commercial builds. As a result they will
not longer be needed in the commercial repo. They were also
moved into the shared project. This change will probably cause
commercial build failures until PR dotnet#966 is merged on the
commercial side.
jonpryor pushed a commit that referenced this pull request Apr 16, 2019
As part of a move to unify our unit tests into the main repo this PR
brings in all the InstantRun tests.  They are protected behind a
`CommercialBuildAvailable` check which will only be `true` if the
commercial parts are available. The commercial tests are also flagged
with a nunit `[Category("Commercial")]` just in case we decide to
filter in the future.

This PR also makes some changes to the folder structure.  ALL `Task`
based tests (i.e ones that test just a `Task` using the
`MockBbuildEngine`) have been moved into the `Tasks` folder.
We already have a few tests in that folder, this make sure they are
all in one place.

The `*.OSS.cs` partial class files have been renamed to
`*.TestCaseSource.cs`.  They also handle the tests for BOTH open
source and commercial builds.  As a result they will not longer be
needed in the commercial repo.  They were also moved into the shared
project.  This change will probably cause commercial build failures
until PR #966 is merged on the commercial side.
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Apr 19, 2022
Fixes: dotnet/java-interop#967

Changes: dotnet/java-interop@05bfece...05eddd9

  * dotnet/java-interop@05eddd9a: [generator] Add string cast to prevent CS1503 (dotnet#970)
  * dotnet/java-interop@37cff251: [Java.Base, generator] Bind all of package java.io (dotnet#968)
  * dotnet/java-interop@a65d6fb4: [Java.Base, generator] Bind all of package java.lang (dotnet#966)
  * dotnet/java-interop@ed9c2abf: [Java.Interop-MonoAndroid] Set Version after Directory.Build.props (dotnet#965)
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Apr 19, 2022
Fixes: dotnet/java-interop#967

Changes: dotnet/java-interop@05bfece...05eddd9

  * dotnet/java-interop@05eddd9a: [generator] Add string cast to prevent CS1503 (dotnet#970)
  * dotnet/java-interop@37cff251: [Java.Base, generator] Bind all of package java.io (dotnet#968)
  * dotnet/java-interop@a65d6fb4: [Java.Base, generator] Bind all of package java.lang (dotnet#966)
  * dotnet/java-interop@ed9c2abf: [Java.Interop-MonoAndroid] Set Version after Directory.Build.props (dotnet#965)
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Apr 21, 2022
Fixes: dotnet/java-interop#967

Changes: dotnet/java-interop@05bfece...2a882d2

  * dotnet/java-interop@2a882d2d: [generator] Fix xamarin-android/src/Mono.Android build (dotnet#972)
  * dotnet/java-interop@968e0f5f: [Directory.Build.props] Set dummy $(PackageVersion) to appease NuGet (dotnet#971)
  * dotnet/java-interop@05eddd9a: [generator] Add string cast to prevent CS1503 (dotnet#970)
  * dotnet/java-interop@37cff251: [Java.Base, generator] Bind all of package java.io (dotnet#968)
  * dotnet/java-interop@a65d6fb4: [Java.Base, generator] Bind all of package java.lang (dotnet#966)
  * dotnet/java-interop@ed9c2abf: [Java.Interop-MonoAndroid] Set Version after Directory.Build.props (dotnet#965)
jonpryor added a commit that referenced this pull request Apr 21, 2022
Fixes: dotnet/java-interop#967

Changes: dotnet/java-interop@05bfece...2a882d2

  * dotnet/java-interop@2a882d2d: [generator] Fix xamarin-android/src/Mono.Android build (#972)
  * dotnet/java-interop@968e0f5f: [Directory.Build.props] Set dummy $(PackageVersion) to appease NuGet (#971)
  * dotnet/java-interop@05eddd9a: [generator] Add string cast to prevent CS1503 (#970)
  * dotnet/java-interop@37cff251: [Java.Base, generator] Bind all of package java.io (#968)
  * dotnet/java-interop@a65d6fb4: [Java.Base, generator] Bind all of package java.lang (#966)
  * dotnet/java-interop@ed9c2abf: [Java.Interop-MonoAndroid] Set Version after Directory.Build.props (#965)
jonathanpeppers pushed a commit that referenced this pull request Apr 25, 2022
Fixes: dotnet/java-interop#967

Changes: dotnet/java-interop@05bfece...2a882d2

  * dotnet/java-interop@2a882d2d: [generator] Fix xamarin-android/src/Mono.Android build (#972)
  * dotnet/java-interop@968e0f5f: [Directory.Build.props] Set dummy $(PackageVersion) to appease NuGet (#971)
  * dotnet/java-interop@05eddd9a: [generator] Add string cast to prevent CS1503 (#970)
  * dotnet/java-interop@37cff251: [Java.Base, generator] Bind all of package java.io (#968)
  * dotnet/java-interop@a65d6fb4: [Java.Base, generator] Bind all of package java.lang (#966)
  * dotnet/java-interop@ed9c2abf: [Java.Interop-MonoAndroid] Set Version after Directory.Build.props (#965)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants