Skip to content

Commit 50d1940

Browse files
committed
Initial commit
1 parent bc4b6d6 commit 50d1940

File tree

89 files changed

+3715
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+3715
-2
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
[*]
3+
# Most of the standard properties are supported
4+
indent_size=2
5+
max_line_length=100

.github/CODEOWNERS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# More details are here: https://help.github.com/articles/about-codeowners/
5+
6+
# The '*' pattern is global owners.
7+
# Not adding in this PR, but I'd like to try adding a global owner set with the entire team.
8+
# One interpretation of their docs is that global owners are added only if not removed
9+
# by a more local rule.
10+
11+
# Order is important. The last matching pattern has the most precedence.
12+
# The folders are ordered as follows:
13+
14+
# In each subsection folders are ordered first by depth, then alphabetically.
15+
# This should make it easy to add new rules without breaking existing ones.
16+
* @skydoves

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: skydoves
2+
custom: ["https://www.paypal.me/skydoves", "https://www.buymeacoffee.com/skydoves"]

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Bug report
3+
about: Something is crashing or not working as intended
4+
5+
---
6+
7+
**Please complete the following information:**
8+
- Library Version [e.g. v1.0.0]
9+
- Affected Device(s) [e.g. Samsung Galaxy s10 with Android 9.0]
10+
11+
**Describe the Bug:**
12+
13+
Add a clear description about the problem.
14+
15+
**Expected Behavior:**
16+
17+
A clear description of what you expected to happen.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem?**
8+
9+
A clear and concise description of what the problem is.
10+
11+
**Describe the solution you'd like:**
12+
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered:**
16+
17+
A clear description of any alternative solutions you've considered.

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Guidelines
2+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
3+
4+
### Types of changes
5+
What types of changes does your code introduce?
6+
7+
- [ ] Bugfix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10+
11+
### Preparing a pull request for review
12+
Ensure your change is properly formatted by running:
13+
14+
```gradle
15+
$ ./gradlew spotlessApply
16+
```
17+
18+
Please correct any failures before requesting a review.

.github/workflows/android.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
name: Spotless check
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v2
16+
- name: Set up JDK
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 11
20+
- name: spotless
21+
run: ./gradlew spotlessCheck
22+
23+
api_check:
24+
name: API check
25+
runs-on: ubuntu-18.04
26+
steps:
27+
- name: Check out code
28+
uses: actions/checkout@v2
29+
- name: Set up JDK
30+
uses: actions/setup-java@v1
31+
with:
32+
java-version: 11
33+
- name: API check
34+
run: ./gradlew apiCheck
35+
36+
build:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- name: set up JDK
42+
uses: actions/setup-java@v1
43+
with:
44+
java-version: 11
45+
46+
- name: Cache Gradle and wrapper
47+
uses: actions/cache@v2
48+
with:
49+
path: |
50+
~/.gradle/caches
51+
~/.gradle/wrapper
52+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
53+
restore-keys: |
54+
${{ runner.os }}-gradle-
55+
56+
- name: Make Gradle executable
57+
run: chmod +x ./gradlew
58+
59+
- name: Build with Gradle
60+
run: ./gradlew build
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Snapshot builds
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
name: Snapshot build and publish
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v2
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v2
18+
with:
19+
distribution: adopt
20+
java-version: 11
21+
- name: Release build
22+
run: ./gradlew assemble --scan
23+
- name: Source jar and dokka
24+
run: ./gradlew androidSourcesJar javadocJar --scan
25+
- name: Publish to MavenCentral
26+
run: ./gradlew publishReleasePublicationToSonatypeRepository --scan
27+
env:
28+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
29+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
30+
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
31+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
32+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
33+
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
34+
SNAPSHOT: true

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish:
9+
name: Release build and publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v2
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v2
16+
with:
17+
distribution: adopt
18+
java-version: 11
19+
- name: Release build
20+
run: ./gradlew assemble --scan
21+
- name: Source jar and dokka
22+
run: ./gradlew androidSourcesJar javadocJar --scan
23+
- name: Publish to MavenCentral
24+
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository --scan
25+
env:
26+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
27+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
28+
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
29+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
30+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
31+
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the ART/Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
/.idea
18+
.gradle/
19+
build/
20+
21+
# Local configuration file (sdk path, etc)
22+
local.properties
23+
24+
# Proguard folder generated by Eclipse
25+
proguard/
26+
27+
# Log Files
28+
*.log
29+
30+
# Android Studio Navigation editor temp files
31+
.navigation/
32+
33+
# Android Studio captures folder
34+
captures/
35+
36+
# Intellij
37+
*.iml
38+
.idea/workspace.xml
39+
.idea/tasks.xml
40+
.idea/gradle.xml
41+
.idea/dictionaries
42+
.idea/libraries
43+
app/.idea/
44+
45+
# Mac
46+
*.DS_Store
47+
48+
# Keystore files
49+
*.jks
50+
51+
# External native build folder generated in Android Studio 2.2 and later
52+
.externalNativeBuild
53+
54+
# Google Services (e.g. APIs or Firebase)
55+
google-services.json
56+
57+
# Freeline
58+
freeline.py
59+
freeline/
60+
freeline_project_description.json

0 commit comments

Comments
 (0)