Skip to content

Commit 5338804

Browse files
Refactor all (#33)
* fix(deps): update all dependencies | datasource | package | from | to | | ---------- | ----------------------------------------- | ------ | ------ | | maven | androidx.fragment:fragment-ktx | 1.5.2 | 1.5.3 | | maven | androidx.core:core-ktx | 1.8.0 | 1.9.0 | | maven | androidx.appcompat:appcompat | 1.5.0 | 1.5.1 | | maven | com.android.tools.build:gradle | 7.2.2 | 7.3.0 | | maven | org.jetbrains.kotlin:kotlin-stdlib-jdk8 | 1.7.10 | 1.7.20 | | maven | org.jetbrains.kotlin:kotlin-gradle-plugin | 1.7.10 | 1.7.20 | * refactor: all * ktlint * ci * chore: bump * chore: bump Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ebc803c commit 5338804

File tree

28 files changed

+557
-259
lines changed

28 files changed

+557
-259
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
[*]
3+
indent_size=2
4+
end_of_line=lf
5+
charset=utf-8
6+
trim_trailing_whitespace=true
7+
insert_final_newline=true
8+
[*.{kt, kts}]
9+
ij_kotlin_imports_layout=*
10+
ktlint_disabled_rules=filename,no-wildcard-imports
11+
[*.xml]
12+
indent_size=4

.github/workflows/build.yml

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
1-
name: Build CI
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
paths-ignore: [ '**.md', '**.MD' ]
7-
8-
pull_request:
9-
branches: [ master ]
10-
paths-ignore: [ '**.md', '**.MD' ]
11-
12-
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
18-
- name: Set up JDK
19-
uses: actions/setup-java@v3
20-
with:
21-
distribution: 'zulu'
22-
java-version: '11'
23-
24-
- name: Make gradlew executable
25-
run: chmod +x ./gradlew
26-
27-
# - name: Spotless check
28-
# uses: gradle/gradle-build-action@v2
29-
# with:
30-
# arguments: spotlessCheck
31-
32-
- name: Build debug APK
33-
uses: gradle/gradle-build-action@v2
34-
with:
35-
arguments: assembleDebug --warning-mode all --stacktrace
36-
37-
- name: Upload APK
38-
uses: actions/upload-artifact@v3
39-
with:
40-
name: app-debug
41-
path: app/build/outputs/apk/debug/app-debug.apk
1+
name: Build CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore: [ '**.md', '**.MD' ]
7+
8+
pull_request:
9+
branches: [ master ]
10+
paths-ignore: [ '**.md', '**.MD' ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v3
20+
with:
21+
distribution: 'zulu'
22+
java-version: '11'
23+
24+
- name: Make gradlew executable
25+
run: chmod +x ./gradlew
26+
27+
- name: Build debug APK
28+
uses: gradle/gradle-build-action@v2
29+
with:
30+
arguments: assembleDebug --warning-mode all --stacktrace
31+
32+
- name: Upload APK
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: app-debug
36+
path: app/build/outputs/apk/debug/app-debug.apk

.github/workflows/ktlint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Ktlint CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore: [ '**.md', '**.MD' ]
7+
8+
pull_request:
9+
branches: [ master ]
10+
paths-ignore: [ '**.md', '**.MD' ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v3
20+
with:
21+
distribution: 'zulu'
22+
java-version: '11'
23+
24+
- name: Make gradlew executable
25+
run: chmod +x ./gradlew
26+
27+
- name: Check code style
28+
uses: gradle/gradle-build-action@v2
29+
with:
30+
arguments: lintKotlin --warning-mode all --stacktrace
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: Remove old artifacts
2-
3-
on:
4-
# push:
5-
# branches: [ master ]
6-
7-
schedule:
8-
# Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month.
9-
- cron: '0 1 */7 * *'
10-
11-
jobs:
12-
remove-old-artifacts:
13-
runs-on: ubuntu-latest
14-
timeout-minutes: 10
15-
16-
steps:
17-
- name: Remove old artifacts
18-
uses: c-hive/gha-remove-artifacts@v1
19-
with:
20-
age: '1 month'
21-
skip-tags: true
22-
skip-recent: 5
1+
name: Remove old artifacts
2+
3+
on:
4+
# push:
5+
# branches: [ master ]
6+
7+
schedule:
8+
# Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month.
9+
- cron: '0 1 */7 * *'
10+
11+
jobs:
12+
remove-old-artifacts:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
16+
steps:
17+
- name: Remove old artifacts
18+
uses: c-hive/gha-remove-artifacts@v1
19+
with:
20+
age: '7 days'
21+
skip-tags: true
22+
skip-recent: 5

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)