mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 09:37:38 +00:00
Switch to R8 friendly room-runtime
This commit is contained in:
parent
f417389a7a
commit
caa9df86bc
@ -90,6 +90,14 @@ dependencies {
|
|||||||
implementation "se.ansman.kotshi:api:${vKotshi}"
|
implementation "se.ansman.kotshi:api:${vKotshi}"
|
||||||
kapt "se.ansman.kotshi:compiler:${vKotshi}"
|
kapt "se.ansman.kotshi:compiler:${vKotshi}"
|
||||||
|
|
||||||
|
modules {
|
||||||
|
module('androidx.room:room-runtime') {
|
||||||
|
replacedBy('com.github.topjohnwu:room-runtime')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
def vRoom = "2.1.0-rc01"
|
||||||
|
implementation "com.github.topjohnwu:room-runtime:${vRoom}"
|
||||||
|
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||||
implementation 'androidx.browser:browser:1.0.0'
|
implementation 'androidx.browser:browser:1.0.0'
|
||||||
implementation 'androidx.preference:preference:1.0.0'
|
implementation 'androidx.preference:preference:1.0.0'
|
||||||
|
@ -10,6 +10,9 @@ import android.os.Build
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.appcompat.app.AppCompatDelegate
|
import androidx.appcompat.app.AppCompatDelegate
|
||||||
import androidx.multidex.MultiDex
|
import androidx.multidex.MultiDex
|
||||||
|
import androidx.room.Room
|
||||||
|
import androidx.work.impl.WorkDatabase
|
||||||
|
import androidx.work.impl.WorkDatabase_Impl
|
||||||
import com.topjohnwu.magisk.di.koinModules
|
import com.topjohnwu.magisk.di.koinModules
|
||||||
import com.topjohnwu.magisk.utils.LocaleManager
|
import com.topjohnwu.magisk.utils.LocaleManager
|
||||||
import com.topjohnwu.magisk.utils.RootUtils
|
import com.topjohnwu.magisk.utils.RootUtils
|
||||||
@ -107,6 +110,12 @@ open class App : Application(), Application.ActivityLifecycleCallbacks {
|
|||||||
Shell.Config.addInitializers(RootUtils::class.java)
|
Shell.Config.addInitializers(RootUtils::class.java)
|
||||||
Shell.Config.setTimeout(2)
|
Shell.Config.setTimeout(2)
|
||||||
THREAD_POOL = AsyncTask.THREAD_POOL_EXECUTOR as ThreadPoolExecutor
|
THREAD_POOL = AsyncTask.THREAD_POOL_EXECUTOR as ThreadPoolExecutor
|
||||||
|
Room.setFactory {
|
||||||
|
when (it) {
|
||||||
|
WorkDatabase::class.java -> WorkDatabase_Impl()
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated("")
|
@Deprecated("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user