This repository was archived by the owner on Oct 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +25
-13
lines changed
Expand file tree Collapse file tree 6 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -108,19 +108,22 @@ This repo uses a single source of truth for the library version via a `VERSION`
108108Update 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
123125What 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
Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ Add to your module's `build.gradle.kts`:
4848
4949``` kotlin
5050dependencies {
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
5555Or ` build.gradle ` :
5656
5757``` groovy
5858dependencies {
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
Original file line number Diff line number Diff line change 1- 1.0.2
1+ 1.1.0
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ kotlin.code.style=official
1616android.nonTransitiveRClass =true
1717
1818# Version
19- OPENIAP_VERSION =1.0.2
19+ OPENIAP_VERSION =1.1.0
2020
2121# Library Info
2222OPENIAP_GROUP_ID =io.github.hyochan.openiap
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ update_gradle() {
6262update_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"
123123}
124124
125125main " $@ "
126-
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments