mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-20 09:43:58 +00:00
feat: "New dashboard UI". (#3)
* feat: "New dashboard UI". * fix: some improvenents * fix: fix inconsistencies and light theme. * fix: save patched and installed apps on prefs, improve installer log, improve dashboard with real data (wip) Co-authored-by: Aunali321 <aunvakil.aa@gmail.com> * feat: move chips to a separate widget. Co-authored-by: Alberto Ponces <ponces26@gmail.com>
This commit is contained in:
@@ -179,10 +179,41 @@ class MainActivity : FlutterActivity() {
|
||||
return true
|
||||
}
|
||||
|
||||
fun createPatcher(inputFilePath: String, cacheDirPath: String, resourcePatching: Boolean): Boolean {
|
||||
fun createPatcher(
|
||||
inputFilePath: String,
|
||||
cacheDirPath: String,
|
||||
resourcePatching: Boolean
|
||||
): Boolean {
|
||||
val inputFile = File(inputFilePath)
|
||||
val aaptPath = Aapt.binary(applicationContext).absolutePath
|
||||
patcher = Patcher(PatcherOptions(inputFile, cacheDirPath, resourcePatching, aaptPath, cacheDirPath))
|
||||
patcher =
|
||||
Patcher(
|
||||
PatcherOptions(
|
||||
inputFile,
|
||||
cacheDirPath,
|
||||
resourcePatching,
|
||||
aaptPath,
|
||||
cacheDirPath,
|
||||
logger =
|
||||
object : app.revanced.patcher.logging.Logger {
|
||||
override fun error(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun warn(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun info(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun trace(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
33
android/app/src/main/res/drawable/ic_notification.xml
Normal file
33
android/app/src/main/res/drawable/ic_notification.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="500dp"
|
||||
android:height="500dp"
|
||||
android:viewportWidth="500"
|
||||
android:viewportHeight="500">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M-178.57,-178.57l857.14,0l0,857.14l-857.14,0z"/>
|
||||
<path
|
||||
android:pathData="m168.25,119.79c24.4,-19.54 54.46,-32.33 87.3,-35.59l0,0 0,0.33 0,33.21c-21.87,2.69 -41.82,10.53 -58.8,22.17zM170.8,381.13c23.72,18.25 52.71,30.31 84.75,33.51l0,-33.21c-20.61,-2.43 -39.71,-9.62 -56.24,-20.42zM288.76,84.7l0,33.21c23.75,3.32 46.16,12.95 64.76,27.9l23.75,-24.57c-25.24,-20.92 -56.13,-33.38 -88.51,-36.53zM353.52,355.53c-18.76,14.61 -41.18,24.08 -64.76,27.06l0,33.21c32.55,-3.49 63.43,-16.61 88.51,-37.53zM384.16,324.48 L458.88,249.75L400.76,249.75L400.76,183.33l-33.21,0l0,66.42L309.44,249.75Z"
|
||||
android:fillColor="#000"
|
||||
android:fillType="evenOdd"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="m168.25,119.79c24.4,-19.54 54.46,-32.33 87.3,-35.59l0,0 0,0.33 0,33.21c-21.87,2.69 -41.82,10.53 -58.8,22.17zM170.8,381.13c23.72,18.25 52.71,30.31 84.75,33.51l0,-33.21c-20.61,-2.43 -39.71,-9.62 -56.24,-20.42zM288.76,84.7l0,33.21c23.75,3.32 46.16,12.95 64.76,27.9l23.75,-24.57c-25.24,-20.92 -56.13,-33.38 -88.51,-36.53zM353.52,355.53c-18.76,14.61 -41.18,24.08 -64.76,27.06l0,33.21c32.55,-3.49 63.43,-16.61 88.51,-37.53zM384.16,324.48 L458.88,249.75L400.76,249.75L400.76,183.33l-33.21,0l0,66.42L309.44,249.75Z"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M500,500L0,500L0,0l500,0z"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M500,500L0,500L0,0l500,0z"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M500,500L0,500L0,0l500,0z"/>
|
||||
</group>
|
||||
</group>
|
||||
<path
|
||||
android:pathData="m72.7,408.42 l179.8,-126.92c23.56,-16.64 23.56,-43.64 0,-60.28L72.7,94.31c-23.56,-16.63 -42.7,-6.72 -42.7,22.12l0,269.86c0,28.84 19.13,38.76 42.7,22.12z"
|
||||
android:fillColor="#000"/>
|
||||
</group>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user