Add version bumping script for Android
Summary:
Adding binaries and source as build times can be a bit long.
```
$ ./bump.sh
Flipper Version Bumper
Usage: bump.lnx64 VERSION
Available options:
-h,--help Show this help text
VERSION Version to bump to, e.g. 1.0.2
```
```
$ ./bump.sh 1.0.2
Starting bump to Version "1.0.2".
Updating version in FilePath "/home/realpassy/local/fbsource/xplat/sonar/gradle.properties"
Updating version in FilePath "/home/realpassy/local/fbsource/xplat/sonar/docs/getting-started.md"
Done!
```
```
$ hg diff
diff --git a/xplat/sonar/docs/getting-started.md b/xplat/sonar/docs/getting-started.md
--- a/xplat/sonar/docs/getting-started.md
+++ b/xplat/sonar/docs/getting-started.md
@@ -44,7 +44,7 @@
}
dependencies {
- debugImplementation 'com.facebook.flipper:flipper:0.6.18'
+ debugImplementation 'com.facebook.flipper:flipper:1.0.2'
}
diff --git a/xplat/sonar/gradle.properties b/xplat/sonar/gradle.properties
--- a/xplat/sonar/gradle.properties
+++ b/xplat/sonar/gradle.properties
@@ -1,5 +1,5 @@
# POM publishing constants
-VERSION_NAME=0.6.19-SNAPSHOT
+VERSION_NAME=1.0.2
GROUP=com.facebook.flipper
POM_URL=https://github.com/facebook/flipper
POM_SCM_URL=https://github.com/facebook/flipper.git
```
Reviewed By: danielbuechele
Differential Revision: D9629787
fbshipit-source-id: b11870236809daa393dcef7eaf98ba9018ad7154
This commit is contained in:
committed by
Facebook Github Bot
parent
a26cc6db9b
commit
dc05fde28d
9
scripts/bump.sh
Executable file
9
scripts/bump.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
case $OSTYPE in
|
||||
darwin*) "$BASEDIR"/bump.mac "$@" ;;
|
||||
linux-gnu) "$BASEDIR"/bump.lnx64 "$@" ;;
|
||||
*) echo "Unknown OS. Using source version using https://haskellstack.org/" && "$BASEDIR"/bump.hs "$@" ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user