This repository was archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Use the new yaml for Android X #196
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
77f5aeb
Use the new yaml
mattleibow 9d4afe2
Mistakes right off the bad, does not bode well
mattleibow ce7706f
Yup, forgot this as well
mattleibow 0e408dd
Use the correct "master" branch
mattleibow 25a692e
dsafasdf
mattleibow 54e516f
sss
mattleibow 9c4f4de
Fix the build warnings and errors
mattleibow dc3f7e0
Use the correct build number
mattleibow b73ec9f
Update azure-pipelines.yml
mattleibow 7821186
Update
mattleibow 78a996c
Merge branch 'dev/new-yaml' of github.com:xamarin/AndroidSupportCompo…
mattleibow bcc9cfe
Updates
mattleibow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,102 +1,32 @@ | ||
|
|
||
| trigger: | ||
| - master | ||
| - AndroidX | ||
| - refs/tags/* | ||
|
|
||
| variables: | ||
| VERBOSITY: normal | ||
| BUILD_NUMBER: $[counter('$(Build.SourceBranchName)_counter', 1)] | ||
| MONO_VERSION: 5_18_1 | ||
| XCODE_VERSION: 10.2.1 | ||
| CAKE_VERSION: 0.34.1 | ||
| API_TOOLS_VERSION: 1.0.2-preview.13 | ||
| BINDERATOR_VERSION: 0.3.0 | ||
| ANDROIDX_TOOL_VERSION: 1.0.0-preview03 | ||
| DOTNET_CORE_VERSION: 2.2.x | ||
| # PACKAGE_VERSION_SUFFIX: <string> | ||
| # XAMARIN_ANDROID_PATH: <path to Xamarin.Android> | ||
| BUILD_NUMBER: $(Build.BuildNumber) | ||
| BUILD_COMMIT: $(Build.SourceVersion) | ||
| # XAMARIN_ANDROID_PATH: <path to Xamarin.Android> | ||
|
|
||
| resources: | ||
| repositories: | ||
| - repository: xamarin-templates | ||
| - repository: internal-templates | ||
| type: github | ||
| name: xamarin/yaml-templates | ||
| endpoint: xamarin | ||
| - repository: components | ||
| type: github | ||
| name: xamarin/XamarinComponents | ||
| endpoint: xamarin | ||
|
|
||
| jobs: | ||
|
|
||
| # run the build | ||
| - job: build | ||
| strategy: | ||
| matrix: | ||
| macos: | ||
| imageName: 'Hosted Mac Internal Mojave' | ||
| windows: | ||
| imageName: 'Hosted Windows 2019 with VS2019' | ||
| displayName: 'Build' | ||
| pool: | ||
| name: $(imageName) | ||
| steps: | ||
| # install xamarin | ||
| - bash: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(MONO_VERSION) | ||
| displayName: 'Switch to the latest Xamarin SDK' | ||
| condition: eq(variables['System.JobName'], 'macos') | ||
| - bash: echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(XCODE_VERSION).app;sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer | ||
| displayName: 'Switch to the latest Xcode' | ||
| condition: eq(variables['System.JobName'], 'macos') | ||
| # install dotnet and tools | ||
| - bash: echo '##vso[task.setvariable variable=PATH;]'$PATH:$HOME/.dotnet/tools | ||
| displayName: 'Add ~/.dotnet/tools to the PATH environment variable' | ||
| condition: eq(variables['System.JobName'], 'macos') | ||
| - task: UseDotNet@2 | ||
| displayName: 'Use the correct version of the .NET Core SDK' | ||
| inputs: | ||
| version: $(DOTNET_CORE_VERSION) | ||
| - powershell: | | ||
| dotnet tool install -g cake.tool --version $(CAKE_VERSION) | ||
| dotnet tool install -g api-tools --version $(API_TOOLS_VERSION) | ||
| dotnet tool install -g xamarin.androidbinderator.tool --version $(BINDERATOR_VERSION) | ||
| dotnet tool install -g xamarin.androidx.migration.tool --version $(ANDROIDX_TOOL_VERSION) | ||
| displayName: 'Install dotnet tools' | ||
| # run the main build | ||
| - powershell: dotnet cake --target=ci --verbosity=$(VERBOSITY) | ||
| displayName: 'Run build' | ||
| # publish the nugets | ||
| - task: PublishBuildArtifacts@1 | ||
| condition: eq(variables['System.JobName'], 'macos') | ||
| displayName: 'Publish artifacts' | ||
| inputs: | ||
| PathToPublish: output | ||
| ArtifactName: nuget | ||
| # publish the output with the os name | ||
| - task: PublishBuildArtifacts@1 | ||
| displayName: 'Publish artifacts' | ||
| inputs: | ||
| PathToPublish: output | ||
| ArtifactName: 'output-$(System.JobName)' | ||
|
|
||
| # only sign the packages when running on Windows, and using the private server which has the certificates | ||
| - template: .ci/build.yml@components | ||
| parameters: | ||
| masterBranchName: 'AndroidX' | ||
| tools: | ||
| - 'xamarin.androidbinderator.tool': '0.4.0' | ||
| - 'xamarin.androidx.migration.tool': '1.0.0-preview03' | ||
| - ${{ if eq(variables['System.TeamProject'], 'devdiv') }}: | ||
| - job: signing | ||
| displayName: Signing NuGets | ||
| variables: | ||
| skipComponentGovernanceDetection: true | ||
| dependsOn: build | ||
| pool: | ||
| name: VSEng-XamarinCustom | ||
| demands: | ||
| - corpnet | ||
| condition: and(succeeded(), or(eq(variables['CodeSign'], 'true'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/AndroidX'))) | ||
| steps: | ||
| # don't checkout code and sign the packages | ||
| - checkout: none | ||
| - template: sign-artifacts.yml@xamarin-templates | ||
| parameters: | ||
| targetFolder: '$(Build.ArtifactStagingDirectory)/signed' | ||
| # publish the signed packages | ||
| - task: PublishBuildArtifacts@1 | ||
| displayName: 'Publish Signed NuGets' | ||
| inputs: | ||
| artifactName: nuget-signed | ||
| pathToPublish: '$(Build.ArtifactStagingDirectory)/signed' | ||
| - template: sign-artifacts/jobs/v1.yml@internal-templates | ||
| parameters: | ||
| dependsOn: [ 'build' ] |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,5 @@ | |
| <attr path="/api/package[@name='androidx.slice.widget']/class[@name='LargeSliceAdapter']/method[@name='onCreateViewHolder' and count(parameter)=2 and parameter[1][@type='android.view.ViewGroup'] and parameter[2][@type='int']]" name="return">androidx.recyclerview.widget.RecyclerView.ViewHolder</attr> | ||
| <attr path="/api/package[@name='androidx.slice.widget']/class[@name='LargeSliceAdapter']/method[@name='onBindViewHolder' and count(parameter)=2 and parameter[1][@type='androidx.slice.widget.LargeSliceAdapter.SliceViewHolder'] and parameter[2][@type='int']]/parameter[1]" name="type">androidx.recyclerview.widget.RecyclerView.ViewHolder</attr> | ||
| <attr path="/api/package[@name='androidx.slice.widget']/class[@name='SliceView']/method[@name='onChanged' and count(parameter)=1 and parameter[1][@type='androidx.slice.Slice']]/parameter[1]" name="managedType">Java.Lang.Object</attr> | ||
| <attr path="/api/package[@name='androidx.slice.widget']/interface[@name='SliceActionView.SliceActionLoadingListener']" name="visibility">public</attr> | ||
| <remove-node path="/api/package[@name='androidx.slice.widget']/interface[@name='SliceActionView.SliceActionLoadingListener']" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just want to double check this change? |
||
| </metadata> | ||
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.
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 is to make sure that the .nupkg will correctly import the dependencies - such as Guava.