mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-28 12:30:12 +02:00
refactor(lspatch): move package
This commit is contained in:
parent
2fcc16b77a
commit
8aa2e57227
@ -10,7 +10,7 @@
|
||||
<application
|
||||
android:label="SE Manager"
|
||||
android:icon="@android:drawable/ic_input_add">
|
||||
<activity android:name=".MainActivity" android:exported="true">
|
||||
<activity android:name=".ui.MainActivity" android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
@ -111,7 +111,6 @@ class LSPatch(
|
||||
dstZFile.add("assets/lspatch/so/$native/liblspatch.so", context.assets.open("lspatch/so/$native/liblspatch.so"), false)
|
||||
}
|
||||
|
||||
|
||||
//embed modules
|
||||
printLog("embedding modules")
|
||||
modules.forEach { (packageName, module) ->
|
||||
|
@ -1,4 +1,4 @@
|
||||
package me.rhunk.snapenhance.manager
|
||||
package me.rhunk.snapenhance.manager.ui
|
||||
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
@ -30,6 +30,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.unit.dp
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import me.rhunk.snapenhance.manager.BuildConfig
|
||||
import me.rhunk.snapenhance.manager.lspatch.LSPatch
|
||||
import java.io.File
|
||||
import java.io.PrintWriter
|
||||
@ -76,7 +77,8 @@ class MainActivity : ComponentActivity() {
|
||||
val lspatch = LSPatch(
|
||||
context,
|
||||
mapOf(
|
||||
BuildConfig.APPLICATION_ID to File(context.packageManager.getPackageInfo(BuildConfig.APPLICATION_ID, 0).applicationInfo.sourceDir)
|
||||
BuildConfig.APPLICATION_ID to File(context.packageManager.getPackageInfo(
|
||||
BuildConfig.APPLICATION_ID, 0).applicationInfo.sourceDir)
|
||||
)
|
||||
) { printLog(it) }
|
||||
lspatch.patch(
|
Loading…
x
Reference in New Issue
Block a user