-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
4,229 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
/outputs |
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: 'Gradle Cache' | ||
description: 'Cache Gradle Build Cache to improve workflow execution time' | ||
inputs: | ||
key-prefix: | ||
description: 'A prefix on the key used to store/restore cache' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-${{ inputs.key-prefix }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/Libs.kt') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ inputs.key-prefix }}- |
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,27 @@ | ||
### Changes | ||
|
||
_Describe what was added, modified or removed and for what purpose | ||
|
||
### Testing | ||
|
||
_Explain how can this change be tested it it's not clear based on unit tests_ | ||
|
||
### Checklist | ||
|
||
#### General | ||
- [ ] PR targets the `develop` branch | ||
- [ ] PR is linked to the GitHub issue it resolves | ||
|
||
#### Source code and docs | ||
- [ ] Changelog is updated (fixes section for a bug, changes for anything that has been added / modified/ removed) | ||
- [ ] New code is covered by unit tests | ||
- [ ] Added ktdoc and updated README.md if API has changed | ||
- [ ] Made sure that unit tests pass | ||
- [ ] Made sure that `ktlintCheck` and `detekt` tasks produce no issues | ||
- [ ] Updated demo app if needed | ||
|
||
### Reviewer Checklist | ||
- [ ] Library builds | ||
- [ ] Demo app works | ||
- [ ] Changes work as expected | ||
- [ ] Changelog and documentation updates reflect the modification made in this PR |
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,38 @@ | ||
name: Publish Release | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish: | ||
name: Publish release build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
|
||
- name: Decrypt secrets | ||
run: scripts/decrypt-secrets.sh "${{ secrets.SECRETS_PASSPHRASE }}" | ||
|
||
- name: Build project | ||
run: ./gradlew assembleRelease | ||
|
||
- name: Create source jar | ||
run: ./gradlew androidSourcesJar | ||
|
||
- name: Publish to MavenCentral | ||
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository | ||
env: | ||
MAVEN_SNAPSHOT: false | ||
|
||
- name: Clean up secrets | ||
if: always() | ||
run: scripts/cleanup-secrets.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,39 @@ | ||
name: "Publish snapshot" | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
snapshot-build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
|
||
- name: Decrypt secrets | ||
run: scripts/decrypt-secrets.sh "${{ secrets.SECRETS_PASSPHRASE }}" | ||
|
||
- name: Build project | ||
run: ./gradlew clean assembleRelease | ||
|
||
- name: Create source jar | ||
run: ./gradlew androidSourcesJar | ||
|
||
- name: Publish to MavenCentral | ||
run: ./gradlew publishReleasePublicationToSonatypeRepository | ||
env: | ||
MAVEN_SNAPSHOT: true | ||
|
||
- name: Clean up secrets | ||
if: always() | ||
run: scripts/cleanup-secrets.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,53 @@ | ||
name: "Pull request build" | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
name: "Tests and code analysis" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
|
||
- name: Run tests | ||
run: ./gradlew testDebugUnitTest | ||
|
||
- name: Run static analysis | ||
run: ./gradlew ktlintCheck detekt | ||
|
||
danger: | ||
name: "Danger checks" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set Up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
|
||
- name: Danger Checks | ||
run: | | ||
./gradlew dependencyUpdates -DoutputDir=build/danger | ||
gem install bundler | ||
bundle install | ||
bundle exec danger | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
gradlewrapper: | ||
name: "Gradle Wrapper Check" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 |
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,33 @@ | ||
# Build cache and artifacts | ||
.gradle | ||
/build | ||
|
||
# Local gradle settings | ||
local.properties | ||
publishing.properties | ||
*.rev | ||
signing.gpg | ||
|
||
# IntelliJ | ||
.idea/workspace.xml | ||
.idea/misc.xml | ||
.idea/libraries | ||
.idea/caches | ||
.idea/navEditor.xml | ||
.idea/tasks.xml | ||
.idea/modules.xml | ||
.idea/compiler.xml | ||
.idea/jarRepositories.xml | ||
.idea/deploymentTargetDropDown.xml | ||
gradle.xml | ||
*.iml | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Layout inspector captures | ||
captures | ||
|
||
# JNI | ||
.externalNativeBuild | ||
.cxx |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 @@ | ||
# Unreleased changes | ||
|
||
### Fixes | ||
|
||
### Changes | ||
|
||
# 1.0.0 | ||
|
||
### Changes | ||
|
||
- Initial release |
Oops, something went wrong.