Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix build issues

AmanRajSinghMourya435ed212c6cf
diff --git a/mobile/apps/auth/android/app/build.gradle b/mobile/apps/auth/android/app/build.gradle
index 4633c502f3..15d144c0c4 100644
--- a/mobile/apps/auth/android/app/build.gradle
+++ b/mobile/apps/auth/android/app/build.gradle
@@ -59,7 +59,7 @@ android {
applicationId "io.ente.auth"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
- minSdkVersion 21
+ minSdkVersion 22
targetSdkVersion 35
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
diff --git a/mobile/apps/auth/lib/ui/scanner_gauth_page.dart b/mobile/apps/auth/lib/ui/scanner_gauth_page.dart
index 58e6da3b41..41d0a762dd 100644
--- a/mobile/apps/auth/lib/ui/scanner_gauth_page.dart
+++ b/mobile/apps/auth/lib/ui/scanner_gauth_page.dart
@@ -6,7 +6,7 @@ import 'package:ente_auth/theme/ente_theme.dart';
import 'package:ente_auth/ui/settings/data/import/google_auth_import.dart';
import 'package:ente_auth/utils/toast_util.dart';
import 'package:flutter/material.dart';
-import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart';
+import 'package:qr_code_scanner/qr_code_scanner.dart';
class ScannerGoogleAuthPage extends StatefulWidget {
const ScannerGoogleAuthPage({super.key});
diff --git a/mobile/apps/auth/lib/ui/scanner_page.dart b/mobile/apps/auth/lib/ui/scanner_page.dart
index 65eabf6d3a..877920390e 100644
--- a/mobile/apps/auth/lib/ui/scanner_page.dart
+++ b/mobile/apps/auth/lib/ui/scanner_page.dart
@@ -4,7 +4,7 @@ import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/models/code.dart';
import 'package:ente_auth/utils/toast_util.dart';
import 'package:flutter/material.dart';
-import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart';
+import 'package:qr_code_scanner/qr_code_scanner.dart';
class ScannerPage extends StatefulWidget {
const ScannerPage({super.key});
diff --git a/mobile/apps/auth/pubspec.lock b/mobile/apps/auth/pubspec.lock
index 3c4373c96e..8a8b4fd6b1 100644
--- a/mobile/apps/auth/pubspec.lock
+++ b/mobile/apps/auth/pubspec.lock
@@ -1391,7 +1391,7 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.2"
- qr_code_scanner_plus:
+ qr_code_scanner:
dependency: "direct main"
description:
path: "."
diff --git a/mobile/packages/utils/lib/platform_util.dart b/mobile/packages/utils/lib/platform_util.dart
index e84349c301..6ad91b0d88 100644
--- a/mobile/packages/utils/lib/platform_util.dart
+++ b/mobile/packages/utils/lib/platform_util.dart
@@ -43,14 +43,14 @@ class PlatformUtil {
if (Platform.isAndroid || Platform.isIOS) {
await FileSaver.instance.saveAs(
name: fileName,
- ext: extension,
+ fileExtension: extension,
bytes: bytes,
mimeType: type,
);
} else {
await FileSaver.instance.saveFile(
name: fileName,
- ext: extension,
+ fileExtension: extension,
bytes: bytes,
mimeType: type,
);
diff --git a/mobile/packages/utils/pubspec.lock b/mobile/packages/utils/pubspec.lock
index c5ec3f8a8a..154ea69750 100644
--- a/mobile/packages/utils/pubspec.lock
+++ b/mobile/packages/utils/pubspec.lock
@@ -232,10 +232,10 @@ packages:
dependency: "direct main"
description:
name: file_saver
- sha256: "448b1e30142cffe52f37ee085ea9ca50670d5425bb09b649d193549b2dcf6e26"
+ sha256: "9d93db09bd4da9e43238f9dd485360fc51a5c138eea5ef5f407ec56e58079ac0"
url: "https://pub.dev"
source: hosted
- version: "0.3.0"
+ version: "0.3.1"
fixnum:
dependency: transitive
description:
diff --git a/mobile/packages/utils/pubspec.yaml b/mobile/packages/utils/pubspec.yaml
index 42af64e151..e208662108 100644
--- a/mobile/packages/utils/pubspec.yaml
+++ b/mobile/packages/utils/pubspec.yaml
@@ -18,7 +18,7 @@ dependencies:
path: ../../packages/strings
ente_ui:
path: ../../packages/ui
- file_saver: 0.3.0
+ file_saver: ^0.3.1
flutter:
sdk: flutter
flutter_email_sender: ^7.0.0