Skip to content

Commit

Permalink
Release 1.0.0 (#56) (#57)
Browse files Browse the repository at this point in the history
* Updating all build.gradle files to use version catalog

* init plugin

* plugin almost there

* plugin MUAHAHA

* init new sample

* organizing gradle versions

* breaking everything, but it still do not working =(

* breaking everything, but it still do not working =(

* breaking everything, but it still do not working =(

* breaking everything, but it still do not working =(

* tests almost running?

* dataResult object test (almost)

* dataResult object test (almost)

* dataResult object test (almost)

* observeWrapper javadoc

* observeWrapper javadoc

* observeWrapper javadoc

* observeWrapper javadoc

* observeWrapper javadoc

* observeWrapper javadoc

* observeWrapper empty notEmpty none

* more tests

* more tests

* more tests

* more tests

* lint part 1

* lint part 1

* lint part 1

* lint part 1

* lint part 1

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival

* Ci revival
  • Loading branch information
matheus-corregiari authored Nov 8, 2023
1 parent 75c719b commit ab8c7df
Show file tree
Hide file tree
Showing 219 changed files with 22,133 additions and 5,742 deletions.
177 changes: 0 additions & 177 deletions .circleci/config.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*.{kt,kts}]
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
insert_final_newline = true
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
ktlint_code_style = android
ktlint_standard_no-wildcard-imports = enabled
ktlint_standard_import-ordering = enabled
ktlint_standard_filename = disabled
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
rebase-strategy: "disabled"
30 changes: 30 additions & 0 deletions .github/scripts/tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -eu

output="../git-tag"
message=$(git show -s --format=%B)
parents=$(git show -s --format=%P | wc -w)

# Verify if the commit is a merge
if [ "$parents" -ne 2 ]; then
echo -e "Not a merge"
git show --summary HEAD
exit 1
fi

# Verify if the commit is a merge following the pattern release/0.0.0 or hotfix/0.0.0
matched_message=$(grep -Eo 'from (release|hotfix)/(\d+.\d+.\d+) to master' <<< "$message" || true)
if [ -z "$matched_message" ]; then
echo -e "Are you sure that you created a proper branch name to merge with master?"
exit 1
fi

# Get version in message
version=$(awk '{ print $2 }' <<< "$matched_message" | cut -d/ -f2 | tee "$output/version")
echo -e "Release $version\n" > "$output/message"
echo "Tag: $version"

# Create and push tag
git tag -a "$version" -m "$version"
git push -u origin "$version"
17 changes: 17 additions & 0 deletions .github/workflows/generate-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Generate Release Tag

on:
push:
branches:
- master

jobs:
generate-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Generate next tag
run: |
chmod +x .github/scripts/tag.sh
./.github/scripts/tag.sh
44 changes: 44 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Toolkit

on:
push:
branches:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
publish:
runs-on: ubuntu-latest
env:
# Sonatype Credentials
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# Sign Credentials
SIGN_FILENAME: ${{ secrets.SIGN_FILENAME }}
SIGN_KEYID: ${{ secrets.SIGN_KEYID }}
SIGN_PASSWORD: ${{ secrets.SIGN_PASSWORD }}
steps:
- uses: actions/checkout@v4

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: gradle

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Inject sign into local.properties
run: |
echo "signing.keyId=$SIGN_KEYID" >> gradle.properties
echo "signing.password=$SIGN_PASSWORD" >> gradle.properties
echo "signing.secretKeyRingFile=$PWD/$SIGN_FILENAME" >> gradle.properties
- name: Build
run: ./gradlew :toolkit:assembleRelease

- name: Publish
run: ./gradlew :toolkit:publishToolkitPublicationToSonatypeRepository
Loading

0 comments on commit ab8c7df

Please sign in to comment.