-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-android.yml
86 lines (74 loc) · 2.38 KB
/
azure-pipelines-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Xamarin.Android
# Build a Xamarin.Android project.
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
trigger:
- main
- app
pool:
vmImage: 'windows-latest'
variables:
group: android-build-development
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: XamarinAndroid@1
displayName: Building android projects for $(buildConfiguration)
inputs:
projectFile: '**/*Droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Run unit tests
inputs:
command: test
projects: '**/*Tests.csproj'
arguments: "--configuration $(buildConfiguration)"
- task: AndroidSigning@3
displayName: Signing android apk
inputs:
apkFiles: '**/*.apk'
apksign: true
apksignerKeystoreFile: 'ebd-development.jks'
apksignerKeyPassword: 'GodIsG00dEv3r'
apksignerKeystoreAlias: 'EbdDev'
apksignerKeystorePassword: 'GodIsG00dEv3r'
apksignerArguments: --out $(outputDirectory)/ebd.release.apk
zipalign: true
- task: CopyFiles@2
inputs:
sourceFolder: '$(outputDirectory)'
contents: '**/*.release.apk'
targetFolder: '$(Build.ArtifactStagingDirectory)/build/'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
# - task: AndroidSigning@2
# displayName: Signing android apk
# inputs:
# apkFiles: '**/*.apk'
# #apkFiles: '**/*.aab'
# jarsign: true
# jarsignerKeystoreFile: 'ebd-development.jks'
# jarsignerKeyPassword: 'GodIsG00dEv3r'
# jarsignerKeystoreAlias: 'EbdDev'
# jarsignerKeystorePassword: 'GodIsG00dEv3r'
# jarsignerArguments: -sigalg SHA256withRSA -digestalg SHA-256
# #jarsignerArguments: --out $(outputDirectory)/ebd.release.apk
# zipalign: true
#- task: AppCenterDistribute@3
#displayName: Sending apk to AppCenter
#uts:
#serverEndpoint: 'VSAC'
#appSlug: '$(appSlug)'
#appFile: '$(outputDirectory)/ebd.release.apk'
#symbolsOption: 'Android'
#releaseNotesOption: 'input'
#releaseNotesInput: 'New version'
#destinationType: 'groups'
#distributionGroupId: '$(distributionGroupId)'