chore: Merge dev to main (#1544)

This commit is contained in:
Ushie 2023-12-02 03:46:17 +03:00 committed by GitHub
commit a9878dbbdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View File

@ -99,7 +99,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// ReVanced // ReVanced
implementation "app.revanced:revanced-patcher:19.0.0" implementation "app.revanced:revanced-patcher:19.1.0"
// Signing & aligning // Signing & aligning
implementation("org.bouncycastle:bcpkix-jdk15on:1.70") implementation("org.bouncycastle:bcpkix-jdk15on:1.70")

View File

@ -237,9 +237,10 @@ void exportPatchedFile(String appName, String version) {
if (outFile != null) { if (outFile != null) {
final String newName = _getFileName(appName, version); final String newName = _getFileName(appName, version);
FlutterFileDialog.saveFile( FlutterFileDialog.saveFile(
params: SaveFileDialogParams( params: SaveFileDialogParams(
sourceFilePath: outFile!.path, sourceFilePath: outFile!.path,
fileName: newName, fileName: newName,
mimeTypesFilter: ['application/vnd.android.package-archive'],
), ),
); );
} }
@ -287,7 +288,7 @@ Future<void> exportPatcherLog(String logs) async {
final File log = File('${logDir.path}/$fileName'); final File log = File('${logDir.path}/$fileName');
log.writeAsStringSync(logs); log.writeAsStringSync(logs);
FlutterFileDialog.saveFile( FlutterFileDialog.saveFile(
params: SaveFileDialogParams( params:SaveFileDialogParams(
sourceFilePath: log.path, sourceFilePath: log.path,
fileName: fileName, fileName: fileName,
), ),

View File

@ -210,7 +210,7 @@ class SettingsViewModel extends BaseViewModel {
final String dateTime = final String dateTime =
DateTime.now().toString().replaceAll(' ', '_').split('.').first; DateTime.now().toString().replaceAll(' ', '_').split('.').first;
await FlutterFileDialog.saveFile( await FlutterFileDialog.saveFile(
params: SaveFileDialogParams( params: SaveFileDialogParams(
sourceFilePath: outFile.path, sourceFilePath: outFile.path,
fileName: 'selected_patches_$dateTime.json', fileName: 'selected_patches_$dateTime.json',
), ),
@ -261,7 +261,7 @@ class SettingsViewModel extends BaseViewModel {
final String dateTime = final String dateTime =
DateTime.now().toString().replaceAll(' ', '_').split('.').first; DateTime.now().toString().replaceAll(' ', '_').split('.').first;
await FlutterFileDialog.saveFile( await FlutterFileDialog.saveFile(
params: SaveFileDialogParams( params: SaveFileDialogParams(
sourceFilePath: outFile.path, sourceFilePath: outFile.path,
fileName: 'keystore_$dateTime.keystore', fileName: 'keystore_$dateTime.keystore',
), ),

View File

@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
publish_to: 'none' publish_to: 'none'
version: 1.17.0+101700000 version: 1.17.1+101700100
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'