-
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.
* add some documentation * fix cicd * add template for issue * add template for issue * add PR template * fix junit and add more documentation
- Loading branch information
Showing
9 changed files
with
89 additions
and
20 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,22 @@ | ||
name: Pull Request | ||
description: Requesting for a Pull | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Contribution guidelines | ||
description: Please read the contribution guidelines before proceeding. | ||
options: | ||
- label: I've read the [contribution guidelines](https://github.com/jimlyas/okdynamic/blob/master/CONTRIBUTING.md) and wholeheartedly agree | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: Please provide a brief description about your Pull Request | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to produce | ||
description: Please describe how to test your Pull Request | ||
validations: | ||
required: true |
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
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,50 @@ | ||
name: Build and Release The library | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionName: | ||
description: "Version Name" | ||
required: true | ||
jobs: | ||
tag: | ||
name: Create a new tag | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Grant Permission to Execute Gradle | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
- name: Publish the library | ||
run: | | ||
./gradlew publish | ||
env: | ||
username_github: ${{ secrets.username_github }} | ||
key_github: ${{ secrets.key_github }} | ||
- name: Create a tag and push it | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "jimlyas" | ||
git tag -a $TAG -m "Release v$TAG" | ||
git push origin $TAG | ||
env: | ||
TAG: ${{ github.event.inputs.versionName }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: "11" | ||
distribution: "adopt" | ||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: ${{ github.event.inputs.versionName }} | ||
artifacts: "okdynamic/build/outputs/aar/okdynamic-debug.aar" | ||
bodyFile: "README.md" | ||
token: ${{ secrets.KEY_GITHUB }} |
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
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,8 @@ | ||
|
||
## Adding the Interceptor | ||
|
||
In your `okhttp` builder, add the interceptor: | ||
|
||
```kotlin | ||
|
||
``` |
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
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
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
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