Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed May 12, 2020
2 parents 5dc0104 + 89918fc commit 8036171
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ platforms
plugins
www
*.keystore
releases
releases/*
!releases/.gitkeep
20 changes: 20 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Building Release

```
ionic cordova build android --prod --release
```

This will generate a release apk in `platforms\android\app\build\outputs\apk\release`

```
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore covid-tips.keystore platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk idems
```

Note, this assumes that you have jarsigner configured in Path (google if not) and app keystore file in root folder (request access from devs) with password knowledge

```
zipalign -v 4 platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk releases/covid-tips.apk
```

Assumes zipalign in path (if not google). Recommended to rename corresponding apk to match version number
(TODO - automate name from package.json or config.xml)
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="international.idems.apps.cortest3" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyApp</name>
<name>Demo-1 Tips</name>
<description>Demo-1 Tips</description>
<author email="[email protected]" href="https://idems.international">IDEMS international</author>
<content src="index.html" />
Expand Down
36 changes: 36 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {}
}
},
"platforms": [
"android"
]
}
}
}
Empty file added releases/.gitkeep
Empty file.

0 comments on commit 8036171

Please sign in to comment.