diff --git a/README.md b/README.md index 0a9fc6c6..ea1316ed 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ Then add the dependency to your module's build.gradle: /app/build.gradle ```groovy -implementation 'com.github.felHR85:UsbSerial:6.0.3' +implementation 'com.github.felHR85:UsbSerial:6.0.4' ``` TO-DO diff --git a/gradle.properties b/gradle.properties index 62e1973d..4a85b3ed 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=6.0.3 +VERSION_NAME=6.0.4 VERSION_CODE=1 ANDROID_BUILD_MIN_SDK_VERSION=12 ANDROID_BUILD_TARGET_SDK_VERSION=27 diff --git a/release.sh b/release.sh index 2afc4abc..ae15125e 100644 --- a/release.sh +++ b/release.sh @@ -14,14 +14,14 @@ esac done # Show error message if no version was provided -if [ -z ${VERSION} ]; +if [[ -z ${VERSION} ]]; then echo "UsbSerial: Error!! No version was provided" exit 0 fi # Show error message if no message was provided -if [ -z ${MESSAGE} ]; +if [[ -z ${MESSAGE} ]]; then echo "UsbSerial: Error!! No message was provided" exit 0 @@ -45,8 +45,9 @@ ex -sc "${LINE}i|$GRADLE_LINE" -cx README.md ./gradlew clean build # Git stuff -git commit -m $MESSAGE -git tag $VERSION +git add . +git commit -m "${MESSAGE}" +git tag ${VERSION} git push origin master git push --tags