Skip to content

Commit

Permalink
[feat]: update v2.0.0
Browse files Browse the repository at this point in the history
finally?
  • Loading branch information
F0x1d authored Jul 8, 2024
1 parent 8a4ae5c commit 034cf37
Show file tree
Hide file tree
Showing 485 changed files with 7,273 additions and 4,821 deletions.
76 changes: 48 additions & 28 deletions .github/workflows/build.yml
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 }}`
24 changes: 24 additions & 0 deletions .github/workflows/unit_tests.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/captures
/local.properties
local.properties
*.jks
101 changes: 0 additions & 101 deletions app/build.gradle

This file was deleted.

45 changes: 45 additions & 0 deletions app/build.gradle.kts
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)
}
25 changes: 3 additions & 22 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
# -renamesourcefileattribute SourceFile

-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
Expand All @@ -40,4 +21,4 @@
-keepattributes Signature

-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken

This file was deleted.

19 changes: 1 addition & 18 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" tools:ignore="QueryAllPackagesPermission" />
<uses-permission android:name="android.permission.READ_LOGS" tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />

<application
android:name=".LogFoxApp"
Expand Down Expand Up @@ -55,18 +53,11 @@
</intent-filter>
</activity>

<service
android:name=".service.LoggingService"
android:foregroundServiceType="specialUse"
android:exported="false" />

<receiver android:name=".receiver.CopyReceiver" />
<receiver android:name=".receiver.BootReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:name=".receiver.RecordingReceiver" />

<provider
android:name="androidx.core.content.FileProvider"
Expand All @@ -78,14 +69,6 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>

<provider
android:name="rikka.shizuku.ShizukuProvider"
android:authorities="${applicationId}.shizuku"
android:multiprocess="false"
android:enabled="true"
android:exported="true"
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" />
</application>

</manifest>
</manifest>
Loading

0 comments on commit 034cf37

Please sign in to comment.