Skip to content

Commit

Permalink
Merge pull request #15 from pablobaxter/develop
Browse files Browse the repository at this point in the history
v1.1.0 Release
  • Loading branch information
pablobaxter committed Oct 3, 2023
2 parents e535758 + c19f52f commit 08cc6f8
Show file tree
Hide file tree
Showing 25 changed files with 401 additions and 488 deletions.
225 changes: 109 additions & 116 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ orbs:
android: circleci/android@2.2.0

jobs:
Check-Core-Health:
Core-Lint:
executor:
name: android/android-machine
resource-class: medium
Expand All @@ -16,29 +16,13 @@ jobs:
- android/restore-build-cache:
cache-prefix: core-v1
- run:
name: Check Core build health
command: |
./gradlew -p core projectHealth
name: Ktlint
command: ./gradlew :core:ktlintCheck
- android/save-gradle-cache:
cache-prefix: core-v1
- android/save-build-cache:
cache-prefix: core-v1

Core-Lint:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: core-v1
- android/restore-build-cache:
cache-prefix: core-v1
- run:
name: Ktlint
command: ./gradlew :core:ktlintCheck

Core-Test:
executor:
name: android/android-machine
Expand All @@ -62,6 +46,10 @@ jobs:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
- android/save-gradle-cache:
cache-prefix: core-v1
- android/save-build-cache:
cache-prefix: core-v1

Core-Build:
executor:
Expand All @@ -78,28 +66,12 @@ jobs:
name: Assemble Core Library
command: |
./gradlew :core:assembleRelease
echo $SIGNING_SECRET | base64 -d > ~/secret.gpg
./gradlew :core:publishToMavenLocal
Check-Rx2-Health:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: rx2-v1
- android/restore-build-cache:
cache-prefix: rx2-v1
- run:
name: Check Rx2 build health
command: |
./gradlew -p rx2 projectHealth
- android/save-gradle-cache:
cache-prefix: rx2-v1
cache-prefix: core-v1
- android/save-build-cache:
cache-prefix: rx2-v1
cache-prefix: core-v1


Rx2-Lint:
executor:
Expand All @@ -115,6 +87,10 @@ jobs:
- run:
name: Ktlint
command: ./gradlew :rx2:ktlintCheck
- android/save-gradle-cache:
cache-prefix: rx2-v1
- android/save-build-cache:
cache-prefix: rx2-v1

Rx2-Test:
executor:
Expand All @@ -139,6 +115,10 @@ jobs:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
- android/save-gradle-cache:
cache-prefix: rx2-v1
- android/save-build-cache:
cache-prefix: rx2-v1

Rx2-Build:
executor:
Expand All @@ -155,28 +135,11 @@ jobs:
name: Assemble Rx2 Library
command: |
./gradlew :rx2:assembleRelease
echo $SIGNING_SECRET | base64 -d > ~/secret.gpg
./gradlew :rx2:publishToMavenLocal
Check-Rx3-Health:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: rx3-v1
- android/restore-build-cache:
cache-prefix: rx3-v1
- run:
name: Check Rx3 build health
command: |
./gradlew -p rx3 projectHealth
- android/save-gradle-cache:
cache-prefix: rx3-v1
cache-prefix: rx2-v1
- android/save-build-cache:
cache-prefix: rx3-v1
cache-prefix: rx2-v1

Rx3-Lint:
executor:
Expand All @@ -192,6 +155,10 @@ jobs:
- run:
name: Ktlint
command: ./gradlew :rx3:ktlintCheck
- android/save-gradle-cache:
cache-prefix: rx3-v1
- android/save-build-cache:
cache-prefix: rx3-v1

Rx3-Test:
executor:
Expand All @@ -216,6 +183,10 @@ jobs:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
- android/save-gradle-cache:
cache-prefix: rx3-v1
- android/save-build-cache:
cache-prefix: rx3-v1

Rx3-Build:
executor:
Expand All @@ -232,28 +203,11 @@ jobs:
name: Assemble Rx3 Library
command: |
./gradlew :rx3:assembleRelease
echo $SIGNING_SECRET | base64 -d > ~/secret.gpg
./gradlew :rx3:publishToMavenLocal
Check-Coroutines-Health:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: coroutines-v1
- android/restore-build-cache:
cache-prefix: coroutines-v1
- run:
name: Check Coroutines build health
command: |
./gradlew -p coroutines projectHealth
- android/save-gradle-cache:
cache-prefix: coroutines-v1
cache-prefix: rx3-v1
- android/save-build-cache:
cache-prefix: coroutines-v1
cache-prefix: rx3-v1

Coroutines-Lint:
executor:
Expand All @@ -269,6 +223,10 @@ jobs:
- run:
name: Ktlint
command: ./gradlew :coroutines:ktlintCheck
- android/save-gradle-cache:
cache-prefix: coroutines-v1
- android/save-build-cache:
cache-prefix: coroutines-v1

Coroutines-Test:
executor:
Expand All @@ -293,6 +251,10 @@ jobs:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
- android/save-gradle-cache:
cache-prefix: coroutines-v1
- android/save-build-cache:
cache-prefix: coroutines-v1

Coroutines-Build:
executor:
Expand All @@ -309,28 +271,11 @@ jobs:
name: Assemble Coroutines Library
command: |
./gradlew :coroutines:assembleRelease
echo $SIGNING_SECRET | base64 -d > ~/secret.gpg
./gradlew :coroutines:publishToMavenLocal
Check-Livedata-Health:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: livedata-v1
- android/restore-build-cache:
cache-prefix: livedata-v1
- run:
name: Check Livedata build health
command: |
./gradlew -p livedata projectHealth
- android/save-gradle-cache:
cache-prefix: livedata-v1
cache-prefix: coroutines-v1
- android/save-build-cache:
cache-prefix: livedata-v1
cache-prefix: coroutines-v1

Livedata-Lint:
executor:
Expand All @@ -346,6 +291,10 @@ jobs:
- run:
name: Ktlint
command: ./gradlew :livedata:ktlintCheck
- android/save-gradle-cache:
cache-prefix: livedata-v1
- android/save-build-cache:
cache-prefix: livedata-v1

Livedata-Test:
executor:
Expand All @@ -370,6 +319,10 @@ jobs:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
- android/save-gradle-cache:
cache-prefix: livedata-v1
- android/save-build-cache:
cache-prefix: livedata-v1

Livedata-Build:
executor:
Expand All @@ -386,60 +339,100 @@ jobs:
name: Assemble Livedata Library
command: |
./gradlew :livedata:assembleRelease
echo $SIGNING_SECRET | base64 -d > ~/secret.gpg
./gradlew :livedata:publishToMavenLocal
- android/save-gradle-cache:
cache-prefix: livedata-v1
- android/save-build-cache:
cache-prefix: livedata-v1

Rx-Preferences-Upload:
executor:
name: android/android-machine
resource-class: medium
tag: 2023.03.1
steps:
- checkout
- android/restore-gradle-cache:
cache-prefix: core-v1
- android/restore-build-cache:
cache-prefix: core-v1
- android/restore-gradle-cache:
cache-prefix: rx2-v1
- android/restore-build-cache:
cache-prefix: rx2-v1
- android/restore-gradle-cache:
cache-prefix: rx3-v1
- android/restore-build-cache:
cache-prefix: rx3-v1
- android/restore-gradle-cache:
cache-prefix: coroutines-v1
- android/restore-build-cache:
cache-prefix: coroutines-v1
- android/restore-gradle-cache:
cache-prefix: livedata-v1
- android/restore-build-cache:
cache-prefix: livedata-v1
- run:
name: Upload RxPreferences Libraries
command: |
./gradlew publishAllPublicationsToMavenCentralRepository --no-parallel --no-configuration-cache --stacktrace
workflows:
version: 2
Test-And-Build:
jobs:
- Check-Core-Health
- Core-Lint:
requires:
- Check-Core-Health
- Core-Lint
- Core-Test:
requires:
- Core-Lint
- Core-Build:
requires:
- Core-Test
- Check-Rx2-Health
- Rx2-Lint:
requires:
- Check-Rx2-Health
- Rx2-Lint
- Rx2-Test:
requires:
- Rx2-Lint
- Rx2-Build:
requires:
- Rx2-Test
- Check-Rx3-Health
- Rx3-Lint:
requires:
- Check-Rx3-Health
- Rx3-Lint
- Rx3-Test:
requires:
- Rx3-Lint
- Rx3-Build:
requires:
- Rx3-Test
- Check-Coroutines-Health
- Coroutines-Lint:
requires:
- Check-Coroutines-Health
- Coroutines-Lint
- Coroutines-Test:
requires:
- Coroutines-Lint
- Coroutines-Build:
requires:
- Coroutines-Test
- Check-Livedata-Health
- Livedata-Lint:
requires:
- Check-Livedata-Health
- Livedata-Lint
- Livedata-Test:
requires:
- Livedata-Lint
- Livedata-Build:
requires:
- Livedata-Test
- Rx-Preferences-Upload-Approval:
type: approval
requires:
- Core-Build
- Rx2-Build
- Rx3-Build
- Coroutines-Build
- Livedata-Build
filters:
branches:
only:
- master
- Rx-Preferences-Upload:
requires:
- Rx-Preferences-Upload-Approval
filters:
branches:
only:
- master
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

### Version 1.1.0 / 2023-10-03
* Update dependencies
* Move to compile sdk 34
* Use vanniktech for maven publishing
* Update CI script so that publishing occurs via CI now
* Remove build health checks from CI (for now)

### Version 1.0.0 - ALL / 2023-03-27
* Fork of [f2prateek/rx-preferences](https://github.com/f2prateek/rx-preferences)
* Due to group ID change and package change, this project will start the versioning at `1.0.0` for all libraries.
Expand Down
Loading

0 comments on commit 08cc6f8

Please sign in to comment.