Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 8d91ace

Browse files
committed
Publish extension as preview on ADO
1 parent 886f17f commit 8d91ace

File tree

6 files changed

+64
-8
lines changed

6 files changed

+64
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ These are the minimal checks we run on our own PRs for [SwiftKey](https://play.g
99
- In a Azure DevOps Pipeline
1010

1111
```yml
12-
- task: android-app-size-diff@0
12+
- task: android-app-size-diff@1
1313
inputs:
1414
baseAppPath: test/assets/test.apk
1515
targetAppPath: test/assets/test.apk
@@ -20,7 +20,7 @@ These are the minimal checks we run on our own PRs for [SwiftKey](https://play.g
2020
- In a GitHub Workflow
2121
2222
```yml
23-
- uses: microsoft/android-app-size-diff@v0.27
23+
- uses: microsoft/android-app-size-diff@v1
2424
name: Run APK size comparision
2525
with:
2626
baseAppPath: test/assets/test.apk

ado-extension.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,39 @@
22
"manifestVersion": 1,
33
"id": "android-app-size-diff-utils",
44
"name": "Android app size changes",
5-
"version": "0.0.31",
6-
"publisher": "PraveenPendyala",
5+
"version": "1.0.5",
6+
"publisher": "MSSwiftKey",
77
"targets": [
88
{
99
"id": "Microsoft.VisualStudio.Services"
1010
}
1111
],
1212
"description": "Tools for Android app size changes",
13+
"tags": [
14+
"Android",
15+
"App size",
16+
"Developer tools"
17+
],
1318
"categories": [
1419
"Azure Pipelines"
1520
],
1621
"icons": {
17-
"default": "dist/src/assets/appSizeChangesIcon.png"
22+
"default": "src/assets/appSizeChangesIcon.png"
1823
},
1924
"files": [
2025
{
2126
"path": "dist/src"
2227
}
2328
],
29+
"repository": {
30+
"type": "git",
31+
"uri": "https://github.com/microsoft/android-app-size-diff"
32+
},
33+
"content": {
34+
"details": {
35+
"path": "src/assets/overview.md"
36+
}
37+
},
2438
"contributions": [
2539
{
2640
"id": "android-app-size-diff",
@@ -32,5 +46,8 @@
3246
"name": "dist/src"
3347
}
3448
}
49+
],
50+
"galleryFlags": [
51+
"Public"
3552
]
3653
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "android-app-size-diff",
3-
"version": "0.0.32",
3+
"version": "1.0.5",
44
"description": "Azure DevOps task to measure the size in Android app size by looking at 2 given APKs and AABs",
55
"main": "index.js",
66
"scripts": {

src/assets/appSizeChangesIcon.png

-6.09 KB
Loading

src/assets/overview.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Usage examples
2+
3+
- In a Azure DevOps Pipeline
4+
5+
```yml
6+
- task: android-app-size-diff@1
7+
inputs:
8+
baseAppPath: test/assets/test.apk
9+
targetAppPath: test/assets/test.apk
10+
summaryOutputPath: summary.md
11+
displayName: Run APK size comparision
12+
```
13+
14+
## Inputs
15+
16+
- `baseAppPath`: Path to base apk. This is the app before changes
17+
- required: true
18+
- default: 'base.apk'
19+
- `baseAppLabel`: Label to use for the base app in the report
20+
- required: false
21+
- default: 'Base APK'
22+
- `targetAppPath`: Path to target apk. This is the app after changes
23+
- required: true
24+
- default: 'target.apk'
25+
- `targetAppLabel`: Label to use for the base app in the report
26+
- required: false
27+
- default: 'Target APK'
28+
- `summaryOutputPath`: Output file where comparision summary should be written to
29+
- required: true
30+
- default: 'summary.md'
31+
- `metrics`: A comma seperated list of size metrics to include in the summary. Possible values are `apkSize`, `installSize`, `dexFiles`, `arscFile`, `nativeLibs`
32+
- required: false
33+
- default: 'apkSize, installSize, dexFiles, arscFile, nativeLibs'
34+
- `thresholds`: A comma seperated list of thresholds for each of the metrics in bytes. If this is empty, no thresholding will apply. When this is not empty, the task will fail when any of the given thresholds are crossed
35+
- required: false
36+
- default: ''
37+
- `telemetryEnabled`: Set to `false` to disable telemetry
38+
- required: false
39+
- default: 'true'

src/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"category": "Utility",
99
"author": "Microsoft",
1010
"version": {
11-
"Major": 0,
11+
"Major": 1,
1212
"Minor": 0,
13-
"Patch": 31
13+
"Patch": 5
1414
},
1515
"instanceNameFormat": "Android App size change - $(baseAppPath) vs $(targetAppPath)",
1616
"inputs": [

0 commit comments

Comments
 (0)