-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rewrite whole application in jetpack compose (1/2) (#82)
- Loading branch information
Showing
133 changed files
with
1,510 additions
and
2,643 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 |
---|---|---|
@@ -1,31 +1,86 @@ | ||
name: Android CI | ||
name: Android CI (PR) | ||
|
||
on: push | ||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.sha }} | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
file-changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
any: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v34.5.3 | ||
with: | ||
files: | | ||
.github/workflows/pr_ci.yml | ||
gradle/libs.versions.toml | ||
**/*.kt | ||
**/*.kts | ||
**/*.xml | ||
check-codestyle: | ||
needs: [ file-changes ] | ||
runs-on: ubuntu-latest | ||
if: needs.file-changes.outputs.any == 'true' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3.1.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Make gradlew executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3.6.0 | ||
uses: actions/setup-java@v3.8.0 | ||
with: | ||
distribution: "zulu" | ||
java-version: "11" | ||
cache: "gradle" | ||
|
||
- name: Check codestyle | ||
uses: gradle/gradle-build-action@v2.3.2 | ||
uses: gradle/gradle-build-action@v2.3.3 | ||
with: | ||
arguments: spotlessCheck | ||
gradle-home-cache-cleanup: true | ||
|
||
build-apks: | ||
needs: [ check-codestyle ] | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
runs-on: ${{ matrix.os }} | ||
if: needs.file-changes.outputs.any == 'true' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3.1.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3.8.0 | ||
with: | ||
distribution: "zulu" | ||
java-version: "11" | ||
cache: "gradle" | ||
|
||
- name: Build debug APKs | ||
uses: gradle/gradle-build-action@v2.3.3 | ||
with: | ||
arguments: assembleDebug | ||
gradle-home-cache-cleanup: true | ||
env: | ||
GITHUB_CI: true | ||
CLIENT_ID: ${{ secrets.CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | ||
|
||
- name: Upload debug APKs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Debug APKs | ||
path: app/build/outputs/apk/debug/*.apk |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/* | ||
/.idea/ | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
.envrc |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/build | ||
/release | ||
*.properties | ||
*.jks | ||
*.apk | ||
release/ | ||
key.properties |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.