-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
#!/bin/sh | ||
|
||
# search for the first line that starts with "version" in cartera/ build.gradle | ||
# get the value in the quotes | ||
VERSION=$(grep "^ version" cartera/build.gradle | sed -n 's/ version "\(.*\)"/\1/p') | ||
|
||
|
||
echo "Current version is $VERSION. Enter new version (or press enter to skip):" | ||
read NEW_VERSION | ||
|
||
#if NEW_VERSION is not empty, replace the version in build.gradle | ||
if [ ! -z "$NEW_VERSION" ]; then | ||
echo "Updating version to $NEW_VERSION" | ||
sed -i '' "s/version \"$VERSION\"/version \"$NEW_VERSION\"/" cartera/build.gradle | ||
fi | ||
|
||
./gradlew clean assembleRelease | ||
./gradlew publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# search for the first line that starts with "version" in cartera/ build.gradle | ||
# get the value in the quotes | ||
VERSION=$(grep "^ version" cartera/build.gradle | sed -n 's/ version "\(.*\)"/\1/p') | ||
|
||
|
||
echo "Current version is $VERSION. Enter new version (or press enter to skip):" | ||
read NEW_VERSION | ||
|
||
#if NEW_VERSION is not empty, replace the version in build.gradle | ||
if [ ! -z "$NEW_VERSION" ]; then | ||
echo "Updating version to $NEW_VERSION" | ||
sed -i '' "s/version \"$VERSION\"/version \"$NEW_VERSION\"/" cartera/build.gradle | ||
fi | ||
|