-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
75c719b
commit ab8c7df
Showing
219 changed files
with
22,133 additions
and
5,742 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.