-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finally?
- Loading branch information
Showing
485 changed files
with
7,273 additions
and
4,821 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,58 +1,78 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
pull_request: | ||
branches: | ||
- '**' | ||
- 'master' | ||
|
||
env: | ||
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | ||
ALIAS: ${{ secrets.ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
|
||
jobs: | ||
build: | ||
name: Build, sign and deploy APK | ||
runs-on: ubuntu-latest | ||
name: Build APK | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
cache: 'gradle' | ||
|
||
- name: Checkout keystore repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.KEYSTORE_GIT_REPOSITORY }} | ||
token: ${{ secrets.KEYSTORE_ACCESS_TOKEN }} | ||
path: app/keystore | ||
|
||
- name: Build APK | ||
run: bash ./gradlew assembleRelease --stacktrace --no-daemon | ||
|
||
- name: Sign APK | ||
id: sign_apk | ||
uses: noriban/sign-android-release@v3 | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: logfox-release | ||
compression-level: 0 | ||
path: app/build/outputs/apk/release/app-release.apk | ||
|
||
send: | ||
name: Send APK | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/release | ||
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | ||
alias: ${{ secrets.ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
env: | ||
BUILD_TOOLS_VERSION: "34.0.0" | ||
|
||
- name: Upload signed APK | ||
uses: actions/upload-artifact@v3 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Get the last commit message | ||
id: get_commit_msg | ||
run: | | ||
commit_message=$(git log -1 --pretty=format:'%s') | ||
echo "::set-output name=message::$commit_message" | ||
- name: Download APK | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Signed APK | ||
path: ${{steps.sign_apk.outputs.signedReleaseFile}} | ||
name: logfox-release | ||
|
||
- name: Send signed APK to my Telegram channel | ||
- name: Send APK to Telegram | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: markdown | ||
document: ${{steps.sign_apk.outputs.signedReleaseFile}} | ||
document: app-release.apk | ||
disable_web_page_preview: true | ||
message: | | ||
*${{ github.actor }}* committed to *${{ github.repository }}* | ||
Branch: *${{ github.ref_name }}* | ||
Commit message: `${{ github.event.commits[0].message }}` | ||
[Changes](https://github.com/${{ github.repository }}/commit/${{github.sha}}) | ||
Branch: *${{ github.head_ref }}* | ||
Commit message: `${{ steps.get_commit_msg.outputs.message }}` |
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,24 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
name: Run unit tests | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
cache: 'gradle' | ||
|
||
- name: Run tests | ||
run: bash ./gradlew verifyRoborazziDebug |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
/captures | ||
/local.properties | ||
local.properties | ||
*.jks |
This file was deleted.
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,45 @@ | ||
plugins { | ||
id("logfox.android.application") | ||
} | ||
|
||
android { | ||
val logFoxPackageName = "com.f0x1d.logfox" | ||
|
||
namespace = logFoxPackageName | ||
defaultConfig { | ||
applicationId = logFoxPackageName | ||
|
||
versionCode = 60 | ||
versionName = "2.0.0" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":feature:feature-crashes")) | ||
implementation(project(":feature:feature-crashes-core")) | ||
implementation(project(":feature:feature-filters")) | ||
implementation(project(":feature:feature-filters-core")) | ||
implementation(project(":feature:feature-logging")) | ||
implementation(project(":feature:feature-logging-core")) | ||
implementation(project(":feature:feature-recordings")) | ||
implementation(project(":feature:feature-recordings-core")) | ||
implementation(project(":feature:feature-settings")) | ||
implementation(project(":feature:feature-setup")) | ||
|
||
implementation(libs.insetter) | ||
implementation(libs.bundles.shizuku) | ||
implementation(libs.viewpump) | ||
implementation(libs.gson) | ||
|
||
implementation(libs.glide) | ||
ksp(libs.glide.compiler) | ||
|
||
implementation(libs.androidx.room) | ||
implementation(libs.androidx.room.runtime) | ||
ksp(libs.androidx.room.compiler) | ||
|
||
implementation(libs.bundles.androidx) | ||
implementation(libs.material) | ||
|
||
implementation(libs.bundles.androidx.navigation) | ||
} |
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
24 changes: 0 additions & 24 deletions
24
app/src/androidTest/java/com/f0x1d/logfox/ExampleInstrumentedTest.kt
This file was deleted.
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
Oops, something went wrong.