Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 5af27a3

Browse files
committed
1.1.0
1 parent 4d2f117 commit 5af27a3

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,22 @@ This repo uses a single source of truth for the library version via a `VERSION`
108108
Update the version using the provided script:
109109

110110
```bash
111-
# Bump by type
112-
scripts/bump-version patch # or: minor | major
111+
# Bump by type (three common modes)
112+
./scripts/bump-version.sh patch # for bug fixes
113+
./scripts/bump-version.sh minor # for new features
114+
./scripts/bump-version.sh major # for breaking
113115

114116
# Or set an explicit version
115-
scripts/bump-version 1.2.3
117+
./scripts/bump-version.sh 1.2.3
116118

117119
# Optional flags
118-
scripts/bump-version patch --no-readme # skip README sync
119-
scripts/bump-version patch --no-gradle # skip Gradle sync
120-
scripts/bump-version patch --commit # auto-commit the changes
120+
./scripts/bump-version.sh patch --no-readme # skip README sync
121+
./scripts/bump-version.sh patch --no-gradle # skip Gradle sync
122+
./scripts/bump-version.sh patch --commit # auto-commit the changes
121123
```
122124

123125
What the script does:
126+
124127
- Writes the new value to `VERSION`
125128
- Updates `OPENIAP_VERSION` in `gradle.properties` (if present)
126129
- Replaces version strings in `README.md` dependency snippets

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ Add to your module's `build.gradle.kts`:
4848

4949
```kotlin
5050
dependencies {
51-
implementation("io.github.hyochan.openiap:openiap-google:1.0.2")
51+
implementation("io.github.hyochan.openiap:openiap-google:1.1.0")
5252
}
5353
```
5454

5555
Or `build.gradle`:
5656

5757
```groovy
5858
dependencies {
59-
implementation 'io.github.hyochan.openiap:openiap-google:1.0.2'
59+
implementation 'io.github.hyochan.openiap:openiap-google:1.1.0'
6060
}
6161
```
6262

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.1.0

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ kotlin.code.style=official
1616
android.nonTransitiveRClass=true
1717

1818
# Version
19-
OPENIAP_VERSION=1.0.2
19+
OPENIAP_VERSION=1.1.0
2020

2121
# Library Info
2222
OPENIAP_GROUP_ID=io.github.hyochan.openiap

scripts/bump-version

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ update_gradle() {
6262
update_readme() {
6363
local newv=$1
6464
if [[ -f "$README" ]]; then
65-
# Replace any openiap-google:<x.y.z> occurrences
66-
perl -0777 -pi -e 's/(openiap-google:)\d+\.\d+\.\d+/$1'"$newv"'/g' "$README"
65+
# Replace any openiap-google:<x.y.z> occurrences (use ${1} to avoid $11 confusion)
66+
perl -0777 -pi -e 's/(openiap-google:)\d+\.\d+\.\d+/${1}'"$newv"'/g' "$README"
6767
msg "updated README.md to $newv"
6868
else
6969
msg "README.md not found; skipping"
@@ -123,4 +123,3 @@ EOF
123123
}
124124

125125
main "$@"
126-

scripts/bump-version.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Thin wrapper to allow using .sh suffix, e.g.:
5+
# ./scripts/bump-version.sh patch|minor|major
6+
# ./scripts/bump-version.sh 1.2.3
7+
8+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
9+
exec "$SCRIPT_DIR/bump-version" "$@"
10+

0 commit comments

Comments
 (0)