Skip to content

Commit

Permalink
Add ReLinker
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharee committed Apr 16, 2024
1 parent 28d1eba commit 4588bf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ dependencies {
implementation(libs.gson)
implementation(libs.bugsnag.android)
implementation(libs.fastcsv)
implementation(libs.relinker)
}
4 changes: 4 additions & 0 deletions app/src/main/java/tk/zwander/wifilist/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ package tk.zwander.wifilist

import android.app.Application
import com.bugsnag.android.Bugsnag
import com.getkeepsafe.relinker.ReLinker
import org.lsposed.hiddenapibypass.HiddenApiBypass

class App : Application() {
override fun onCreate() {
super.onCreate()

ReLinker.loadLibrary(this, "bugsnag-ndk")
ReLinker.loadLibrary(this, "bugsnag-plugin-android-anr")

Bugsnag.start(this)

HiddenApiBypass.addHiddenApiExemptions("L")
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ lifecycleRuntimeKtx = "2.7.0"
material = "1.11.0"
material3 = "1.2.1"
patreonsupportersretrieval = "8436bbdbdc"
relinker = "1.4.5"

[libraries]
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
Expand All @@ -33,6 +34,7 @@ hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", vers
lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
material = { module = "com.google.android.material:material", version.ref = "material" }
patreonSupportersRetrieval = { module = "com.github.zacharee:PatreonSupportersRetrieval", version.ref = "patreonsupportersretrieval" }
relinker = { module = "com.getkeepsafe.relinker:relinker", version.ref = "relinker" }
shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku" }
shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" }

Expand Down

0 comments on commit 4588bf2

Please sign in to comment.