refactor: change package name.

This commit is contained in:
Aunali321 2022-09-12 18:23:34 +05:30
parent fe13234faa
commit 1c75c81b90
15 changed files with 32 additions and 30 deletions

View File

@ -43,7 +43,7 @@ android {
}
defaultConfig {
applicationId "app.revanced.manager"
applicationId "app.revanced.manager.flutter"
minSdkVersion 21
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()

View File

@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.revanced.manager">
package="app.revanced.manager.flutter">
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.revanced.manager">
package="app.revanced.manager.flutter">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

View File

@ -1,13 +1,13 @@
package app.revanced.manager
package app.revanced.manager.flutter
import android.os.Handler
import android.os.Looper
import androidx.annotation.NonNull
import app.revanced.manager.utils.Aapt
import app.revanced.manager.utils.aligning.ZipAligner
import app.revanced.manager.utils.signing.Signer
import app.revanced.manager.utils.zip.ZipFile
import app.revanced.manager.utils.zip.structures.ZipEntry
import app.revanced.manager.flutter.utils.Aapt
import app.revanced.manager.flutter.utils.aligning.ZipAligner
import app.revanced.manager.flutter.utils.signing.Signer
import app.revanced.manager.flutter.utils.zip.ZipFile
import app.revanced.manager.flutter.utils.zip.structures.ZipEntry
import app.revanced.patcher.Patcher
import app.revanced.patcher.PatcherOptions
import app.revanced.patcher.extensions.PatchExtensions.patchName
@ -22,8 +22,8 @@ import java.nio.file.Files
import java.nio.file.StandardCopyOption
class MainActivity : FlutterActivity() {
private val PATCHER_CHANNEL = "app.revanced.manager/patcher"
private val INSTALLER_CHANNEL = "app.revanced.manager/installer"
private val PATCHER_CHANNEL = "app.revanced.manager.flutter/patcher"
private val INSTALLER_CHANNEL = "app.revanced.manager.flutter/installer"
private val handler = Handler(Looper.getMainLooper())
private lateinit var installerChannel: MethodChannel

View File

@ -1,4 +1,4 @@
package app.revanced.manager.utils
package app.revanced.manager.flutter.utils
import android.content.Context
import java.io.File

View File

@ -1,6 +1,6 @@
package app.revanced.manager.utils.aligning
package app.revanced.manager.flutter.utils.aligning
import app.revanced.manager.utils.zip.structures.ZipEntry
import app.revanced.manager.flutter.utils.zip.structures.ZipEntry
internal object ZipAligner {
private const val DEFAULT_ALIGNMENT = 4

View File

@ -1,4 +1,4 @@
package app.revanced.manager.utils.signing
package app.revanced.manager.flutter.utils.signing
import com.android.apksig.ApkSigner
import org.bouncycastle.asn1.x500.X500Name

View File

@ -1,4 +1,4 @@
package app.revanced.manager.utils.zip
package app.revanced.manager.flutter.utils.zip
import java.io.DataInput
import java.io.DataOutput

View File

@ -1,7 +1,7 @@
package app.revanced.manager.utils.zip
package app.revanced.manager.flutter.utils.zip
import app.revanced.manager.utils.zip.structures.ZipEndRecord
import app.revanced.manager.utils.zip.structures.ZipEntry
import app.revanced.manager.flutter.utils.zip.structures.ZipEndRecord
import app.revanced.manager.flutter.utils.zip.structures.ZipEntry
import java.io.Closeable
import java.io.File
import java.io.RandomAccessFile

View File

@ -1,9 +1,9 @@
package app.revanced.manager.utils.zip.structures
package app.revanced.manager.flutter.utils.zip.structures
import app.revanced.manager.utils.zip.putUInt
import app.revanced.manager.utils.zip.putUShort
import app.revanced.manager.utils.zip.readUIntLE
import app.revanced.manager.utils.zip.readUShortLE
import app.revanced.manager.flutter.utils.zip.putUInt
import app.revanced.manager.flutter.utils.zip.putUShort
import app.revanced.manager.flutter.utils.zip.readUIntLE
import app.revanced.manager.flutter.utils.zip.readUShortLE
import java.io.DataInput
import java.nio.ByteBuffer
import java.nio.ByteOrder

View File

@ -1,6 +1,6 @@
package app.revanced.manager.utils.zip.structures
package app.revanced.manager.flutter.utils.zip.structures
import app.revanced.manager.utils.zip.*
import app.revanced.manager.flutter.utils.zip.*
import java.io.DataInput
import java.nio.ByteBuffer
import java.nio.ByteOrder

View File

@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.revanced.manager">
package="app.revanced.manager.flutter">
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -14,7 +14,8 @@ import 'package:share_extend/share_extend.dart';
@lazySingleton
class PatcherAPI {
static const patcherChannel = MethodChannel('app.revanced.manager/patcher');
static const patcherChannel =
MethodChannel('app.revanced.manager.flutter/patcher');
final ManagerAPI _managerAPI = locator<ManagerAPI>();
final RootAPI _rootAPI = RootAPI();
late Directory _tmpDir;

View File

@ -34,7 +34,8 @@ class HomeViewModel extends BaseViewModel {
const InitializationSettings(
android: AndroidInitializationSettings('ic_notification'),
),
onSelectNotification: (p) => DeviceApps.openApp('app.revanced.manager'),
onSelectNotification: (p) =>
DeviceApps.openApp('app.revanced.manager.flutter'),
);
_getPatchedApps();
_managerAPI.reAssessSavedApps().then((_) => _getPatchedApps());

View File

@ -17,7 +17,7 @@ class InstallerViewModel extends BaseViewModel {
final PatchedApplication _app = locator<PatcherViewModel>().selectedApp!;
final List<Patch> _patches = locator<PatcherViewModel>().selectedPatches;
static const _installerChannel = MethodChannel(
'app.revanced.manager/installer',
'app.revanced.manager.flutter/installer',
);
final ScrollController scrollController = ScrollController();
double? progress = 0.0;