Skip to content

Commit

Permalink
chore: 1.2.20-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-elimu committed Nov 13, 2023
1 parent dda5c7b commit d4e14cc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,26 @@ After that, connect your Android device to the same Wi-Fi network as your comput

## Release 📦

See [.github/workflows/gradle-release.yml](.github/workflows/gradle-release.yml)
To perform a release, follow these steps:

1. Create a new branch for the release
1. Remove `-SNAPSHOT`
- from the `versionName` in `app/build.gradle`
- from the `versionName` in `utils/build.gradle`
- from the `version` in `utils/build.gradle`
1. Click "Draft a new release" at https://github.com/elimu-ai/content-provider/releases
1. Pick the new branch you created as the target branch
1. Create a new tag (e.g. `1.2.19`)
1. Choose a release title, and click "Publish release"
1. Ensure that the release appears at https://jitpack.io/#elimu-ai/content-provider with "Status: ok"
1. Prepare for next development iteration by bumping the version and adding `-SNAPSHOT`
- in the `versionCode` in `app/build.gradle`
- in the `versionName` in `app/build.gradle`
- in the `versionCode` in `utils/build.gradle`
- in the `versionName` in `utils/build.gradle`
- in the `version` under `publishing` in `utils/build.gradle`
1. Commit the changes
1. Create a pull request for merging your branch into `main`

---

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "ai.elimu.content_provider"
minSdkVersion 24
targetSdkVersion 33
versionCode 1002019
versionName "1.2.19"
versionCode 1002020
versionName "1.2.20-SNAPSHOT"
setProperty("archivesBaseName", "${applicationId}-${versionCode}")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
Expand Down
6 changes: 3 additions & 3 deletions utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 24
targetSdkVersion 33
versionCode 1002019
versionName "1.2.19"
versionCode 1002020
versionName "1.2.20-SNAPSHOT"
setProperty("archivesBaseName", "utils-${versionName}")
}

Expand All @@ -37,7 +37,7 @@ publishing {
utils(MavenPublication) {
groupId 'ai.elimu.content_provider'
artifactId 'utils'
version '1.2.19'
version '1.2.20-SNAPSHOT'
artifact("${buildDir}/outputs/aar/utils-${version}-release.aar")
}
}
Expand Down

0 comments on commit d4e14cc

Please sign in to comment.