Skip to content

Commit

Permalink
Update docs. Add preversion build
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham committed May 7, 2018
1 parent e0d9214 commit 16df202
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
/**
* versionName should be updated and inline with version in package.json for every npm release.
*/
versionName "1.8.1"
versionName "1.9.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
4 changes: 3 additions & 1 deletion doc/release.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
**Publishing:**

Publishing is a matter of running the [npm version command](https://docs.npmjs.com/cli/version):
* Before publishing, update the release version in build.gradle to be the same as in package.json

* Publishing is a matter of running the [npm version command](https://docs.npmjs.com/cli/version):
```shell
npm version major|minor|patch
```
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"homepage": "https://github.com/appium/appium-uiautomator2-server",
"scripts": {
"preversion": "npm run build",
"bump-gradle-version": "node update-gradle-version.js --package-version=${npm_package_version} && git add app/build.gradle",
"build": "./gradlew clean assembleServerDebug assembleServerDebugAndroidTest && npm run move-apks",
"move-server": "cp app/build/outputs/apk/server/debug/appium-uiautomator2-server-v${npm_package_version}.apk ./apks",
Expand Down

0 comments on commit 16df202

Please sign in to comment.