Skip to content

Commit d117e79

Browse files
author
Thanyaluk Jirapech-umpai
committed
update to SNAPSHOT version
1 parent cf570a1 commit d117e79

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

README-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ allprojects {
4343
```
4444
在你APP的构建脚本
4545
```groovy
46-
compile 'com.deltadna.android:deltadna-sdk:4.13.0'
46+
compile 'com.deltadna.android:deltadna-sdk:4.13.0-SNAPSHOT'
4747
```
4848

4949
## 初始化

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ allprojects {
4747
In your app's build script:
4848
```groovy
4949
dependencies {
50-
implementation 'com.deltadna.android:deltadna-sdk:4.13.0'
50+
implementation 'com.deltadna.android:deltadna-sdk:4.13.0-SNAPSHOT'
5151
}
5252
```
5353
The Java source and target compatibility needs to be set to 1.8 in you app's build script:

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.deltadna.android
2-
VERSION_NAME=4.13.0
2+
VERSION_NAME=4.13.0-SNAPSHOT
33

44
POM_DESCRIPTION=deltaDNA SDK for Android
55
POM_URL=https://github.com/deltaDNA/android-sdk
@@ -19,4 +19,4 @@ org.gradle.configureondemand=true
1919

2020
kotlin.coroutines=enable
2121
android.useAndroidX = true
22-
android.enableJetifier = true
22+
android.enableJetifier = true

gradle/mvn-push.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ apply plugin: 'maven'
1818
apply plugin: 'signing'
1919

2020
def isReleaseBuild() {
21-
return VERSION_NAME.contains("SNAPSHOT") == false
21+
return !VERSION_NAME.contains("SNAPSHOT")
2222
}
2323

2424
def getReleaseRepositoryUrl() {

library-notifications/README-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ allprojects {
4141
```
4242
在你APP的构建脚本
4343
```groovy
44-
compile 'com.deltadna.android:deltadna-sdk:4.13.0'
45-
compile 'com.deltadna.android:deltadna-sdk-notifications:4.13.0'
44+
compile 'com.deltadna.android:deltadna-sdk:4.13.0-SNAPSHOT'
45+
compile 'com.deltadna.android:deltadna-sdk-notifications:4.13.0-SNAPSHOT'
4646
```
4747

4848
## 整合

library-notifications/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ allprojects {
4141
In your app's build script:
4242
```groovy
4343
dependencies {
44-
implementation 'com.deltadna.android:deltadna-sdk:4.13.0'
45-
implementation 'com.deltadna.android:deltadna-sdk-notifications:4.13.0'
44+
implementation 'com.deltadna.android:deltadna-sdk:4.13.0-SNAPSHOT'
45+
implementation 'com.deltadna.android:deltadna-sdk-notifications:4.13.0-SNAPSHOT'
4646
}
4747
```
4848

scripts/update-version

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
echo "Update Android SDK version from v$1 to v$2 in gradle.properties and README files"
4+
35
if [ -z "$1" ]; then
46
echo "Old version not supplied as the first argument"
57
exit 1
@@ -8,6 +10,8 @@ elif [ -z "$2" ]; then
810
exit 1
911
fi
1012

11-
sed -i "s/$1/$2/g" gradle.properties README.md README-CN.md library-notifications/README.md library-notifications/README-CN.md
13+
sed -i '' "s/$1/$2/g" gradle.properties README.md README-CN.md library-notifications/README.md library-notifications/README-CN.md
1214

13-
echo "Have you updated the changelog?"
15+
echo "---------------------------------------------------------------------"
16+
echo "Have you updated the CHANGELOG.md with changes in v$2 ?"
17+
echo "---------------------------------------------------------------------"

0 commit comments

Comments
 (0)