You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,33 @@
1
+
# Introduction
2
+
3
+
This repository contains an [Azure DevOps Task](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml) and a [GitHub Workflow Action](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idsteps). See below usage examples to start using this in your CI.
4
+
5
+
This is currently in very early stages so, features offered are very limited. See [contributing section](#contributing) below if you would like to chip in some features. At this stage, this repo is more of a skeleton upon which we hope to add more functionality. Once this is in a good state, we can be on top of our app size changes and very likely make this repo public.
6
+
7
+
## Usage examples
8
+
9
+
- In a Azure DevOps Pipeline
10
+
11
+
```yml
12
+
- task: android-app-size-diff-task@0
13
+
inputs:
14
+
baseAppPath: test/assets/test.apk
15
+
targetAppPath: test/assets/test.apk
16
+
summaryOutputPath: summary.md
17
+
displayName: Run APK size comparision
18
+
```
19
+
20
+
- In a GitHub Workflow (only after this repo becomes public)
21
+
22
+
```yml
23
+
- uses: microsoft/android-app-size-ci@v1
24
+
name: Run APK size comparision
25
+
with:
26
+
baseAppPath: test/assets/test.apk
27
+
targetAppPath: test/assets/test.apk
28
+
summaryOutputPath: summary.md
29
+
```
30
+
1
31
2
32
# Contributing
3
33
@@ -12,3 +42,37 @@ provided by the bot. You will only need to do this once across all repos using o
12
42
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
13
43
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
Starting by cloning the repository. If your changes are small, feel free to open a PR with changes and the CI will take care of testing that everything still works with your changes. For something more long term or local testing, read on.
49
+
50
+
When contributing, please be aware that **this repo will go public eventually**
51
+
52
+
### Installations
53
+
- Install all global dependencies
54
+
```shell
55
+
npm install -g typescript
56
+
npm install -g ts-node
57
+
npm install -g mocha
58
+
59
+
# Only if you are compiling the GitHub plugin
60
+
npm install -g @zeit/ncc
61
+
62
+
# Only if you are publishing to ADO. Not required for most scenarios
63
+
npm install -g tfx-cli
64
+
```
65
+
- Install all project dependencies
66
+
`npm install`
67
+
68
+
### Running
69
+
70
+
See `package.json` for full list of npm tasks. The below should be sufficient to get you started
71
+
72
+
- Build code `npm run build`
73
+
- Run ADO plugin locally `npm run adoTask`
74
+
- See [ADO Custom Task docs](https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#run-the-task) to understand what variables to set - basically all task inputs
0 commit comments