π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat: Remove background_fetch dependency and update workmanager to use git source
Prateek Sunal939b30c1b22e
diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lockindex 0fae20f353..490ecaba7d 100644--- a/mobile/ios/Podfile.lock+++ b/mobile/ios/Podfile.lock@@ -1,6 +1,4 @@PODS:- - background_fetch (1.3.7):- - Flutter- battery_info (0.0.1):- Flutter- connectivity_plus (0.0.1):@@ -249,7 +247,6 @@ PODS:- FlutterDEPENDENCIES:- - background_fetch (from `.symlinks/plugins/background_fetch/ios`)- battery_info (from `.symlinks/plugins/battery_info/ios`)- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)- cupertino_http (from `.symlinks/plugins/cupertino_http/darwin`)@@ -332,8 +329,6 @@ SPEC REPOS:- sqlite3EXTERNAL SOURCES:- background_fetch:- :path: ".symlinks/plugins/background_fetch/ios"battery_info::path: ".symlinks/plugins/battery_info/ios"connectivity_plus:@@ -452,7 +447,6 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/workmanager/ios"SPEC CHECKSUMS:- background_fetch: 94b36ee293e82972852dba8ede1fbcd3bd3d9d57battery_info: 83f3aae7be2fccefab1d2bf06b8aa96f11c8bcddconnectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7ddcupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c@@ -529,6 +523,7 @@ SPEC CHECKSUMS:video_thumbnail: 584ccfa55d8fd2f3d5507218b0a18d84c839c620volume_controller: 3657a1f65bedb98fa41ff7dc5793537919f31b12wakelock_plus: 04623e3f525556020ebd4034310f20fe7fda8b49+ workmanager: 01be2de7f184bd15de93a1812936a2b7f42ef07ePODFILE CHECKSUM: 20e086e6008977d43a3d40260f3f9bffcac748dddiff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxprojindex 31f4f02ac8..cf6ad4a1d0 100644--- a/mobile/ios/Runner.xcodeproj/project.pbxproj+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj@@ -19,7 +19,7 @@CEE6BE702D7AE7FD00E4048B /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DACD83C2B755B0600BA9516 /* WidgetKit.framework */; };CEE6BE712D7AE7FD00E4048B /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DACD83E2B755B0600BA9516 /* SwiftUI.framework */; };CEE6BE7C2D7AE7FE00E4048B /* EnteMemoryWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = CEE6BE6F2D7AE7FD00E4048B /* EnteMemoryWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };- DA6BE5E826B3BC8600656280 /* (null) in Resources */ = {isa = PBXBuildFile; };+ DA6BE5E826B3BC8600656280 /* BuildFile in Resources */ = {isa = PBXBuildFile; };/* End PBXBuildFile section *//* Begin PBXContainerItemProxy section */@@ -86,7 +86,7 @@/* End PBXFileReference section *//* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */- CEE6BE802D7AE7FE00E4048B /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {+ CEE6BE802D7AE7FE00E4048B /* Exceptions for "EnteMemoryWidget" folder in "EnteMemoryWidgetExtension" target */ = {isa = PBXFileSystemSynchronizedBuildFileExceptionSet;membershipExceptions = (Info.plist,@@ -96,7 +96,18 @@/* End PBXFileSystemSynchronizedBuildFileExceptionSet section *//* Begin PBXFileSystemSynchronizedRootGroup section */- CEE6BE722D7AE7FD00E4048B /* EnteMemoryWidget */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (CEE6BE802D7AE7FE00E4048B /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = EnteMemoryWidget; sourceTree = "<group>"; };+ CEE6BE722D7AE7FD00E4048B /* EnteMemoryWidget */ = {+ isa = PBXFileSystemSynchronizedRootGroup;+ exceptions = (+ CEE6BE802D7AE7FE00E4048B /* Exceptions for "EnteMemoryWidget" folder in "EnteMemoryWidgetExtension" target */,+ );+ explicitFileTypes = {+ };+ explicitFolders = (+ );+ path = EnteMemoryWidget;+ sourceTree = "<group>";+ };/* End PBXFileSystemSynchronizedRootGroup section *//* Begin PBXFrameworksBuildPhase section */@@ -246,8 +257,6 @@CEE6BE722D7AE7FD00E4048B /* EnteMemoryWidget */,);name = EnteMemoryWidgetExtension;- packageProductDependencies = (- );productName = EnteMemoryWidgetExtension;productReference = CEE6BE6F2D7AE7FD00E4048B /* EnteMemoryWidgetExtension.appex */;productType = "com.apple.product-type.app-extension";@@ -300,7 +309,7 @@3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,- DA6BE5E826B3BC8600656280 /* (null) in Resources */,+ DA6BE5E826B3BC8600656280 /* BuildFile in Resources */,277218A0270F596900FFE3CC /* GoogleService-Info.plist in Resources */,);runOnlyForDeploymentPostprocessing = 0;@@ -365,7 +374,6 @@"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework","${BUILT_PRODUCTS_DIR}/SDWebImageWebPCoder/SDWebImageWebPCoder.framework","${BUILT_PRODUCTS_DIR}/Sentry/Sentry.framework",- "${BUILT_PRODUCTS_DIR}/background_fetch/background_fetch.framework","${BUILT_PRODUCTS_DIR}/battery_info/battery_info.framework","${BUILT_PRODUCTS_DIR}/connectivity_plus/connectivity_plus.framework","${BUILT_PRODUCTS_DIR}/cupertino_http/cupertino_http.framework",@@ -420,6 +428,7 @@"${BUILT_PRODUCTS_DIR}/video_thumbnail/video_thumbnail.framework","${BUILT_PRODUCTS_DIR}/volume_controller/volume_controller.framework","${BUILT_PRODUCTS_DIR}/wakelock_plus/wakelock_plus.framework",+ "${BUILT_PRODUCTS_DIR}/workmanager/workmanager.framework","${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-full-gpl/ffmpegkit.framework/ffmpegkit","${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-full-gpl/libavcodec.framework/libavcodec","${PODS_XCFRAMEWORKS_BUILD_DIR}/ffmpeg-kit-ios-full-gpl/libavdevice.framework/libavdevice",@@ -461,7 +470,6 @@"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImageWebPCoder.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Sentry.framework",- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/background_fetch.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/battery_info.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity_plus.framework","${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cupertino_http.framework",diff --git a/mobile/ios/Runner/AppDelegate.swift b/mobile/ios/Runner/AppDelegate.swiftindex 3f14877d91..0659f708b5 100644--- a/mobile/ios/Runner/AppDelegate.swift+++ b/mobile/ios/Runner/AppDelegate.swift@@ -1,6 +1,7 @@+import AVFoundationimport Flutterimport UIKit-import AVFoundation+import workmanager@main@objc class AppDelegate: FlutterAppDelegate {@@ -13,10 +14,11 @@ import AVFoundationUNUserNotificationCenter.current().delegate = self as UNUserNotificationCenterDelegate}- let controller : FlutterViewController = window?.rootViewController as! FlutterViewController- let audioSessionChannel = FlutterMethodChannel(name: "io.ente.frame/audio_session",- binaryMessenger: controller.binaryMessenger)-+ let controller: FlutterViewController = window?.rootViewController as! FlutterViewController+ let audioSessionChannel = FlutterMethodChannel(+ name: "io.ente.frame/audio_session",+ binaryMessenger: controller.binaryMessenger)+audioSessionChannel.setMethodCallHandler({(call: FlutterMethodCall, result: @escaping FlutterResult) -> Void inif call.method == "setAudioSessionCategory" {@@ -27,19 +29,25 @@ import AVFoundation})GeneratedPluginRegistrant.register(with: self)+ WorkmanagerPlugin.setPluginRegistrantCallback { registry in+ GeneratedPluginRegistrant.register(with: registry)+ }return super.application(application, didFinishLaunchingWithOptions: launchOptions)}private func setAudioSessionCategory(result: @escaping FlutterResult) {do {- try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers, .defaultToSpeaker])+ try AVAudioSession.sharedInstance().setCategory(+ .playback, mode: .default, options: [.mixWithOthers, .defaultToSpeaker])try AVAudioSession.sharedInstance().setActive(true)result(nil)} catch {- result(FlutterError(code: "AUDIO_SESSION_ERROR",- message: "Failed to set audio session category",- details: error.localizedDescription))+ result(+ FlutterError(+ code: "AUDIO_SESSION_ERROR",+ message: "Failed to set audio session category",+ details: error.localizedDescription))}}diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plistindex 6443cc98c8..5e9b8a7005 100644--- a/mobile/ios/Runner/Info.plist+++ b/mobile/ios/Runner/Info.plist@@ -4,7 +4,7 @@<dict><key>BGTaskSchedulerPermittedIdentifiers</key><array>- <string>com.transistorsoft.fetch</string>+ <string>io.ente.frame.iOSBackgroundAppRefresh</string></array><key>CFBundleDevelopmentRegion</key><string>$(DEVELOPMENT_LANGUAGE)</string>diff --git a/mobile/lib/app.dart b/mobile/lib/app.dartindex 5b922486e1..99dab6c9ac 100644--- a/mobile/lib/app.dart+++ b/mobile/lib/app.dart@@ -2,7 +2,7 @@ import "dart:async";import 'dart:io';import 'package:adaptive_theme/adaptive_theme.dart';-import "package:background_fetch/background_fetch.dart";+// import "package:backgrounds_fetch/background_fetch.dart";import 'package:flutter/foundation.dart';import 'package:flutter/material.dart';import 'package:flutter_easyloading/flutter_easyloading.dart';@@ -10,6 +10,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';import 'package:home_widget/home_widget.dart' as hw;import 'package:logging/logging.dart';import 'package:media_extension/media_extension_action_types.dart';+import "package:permission_handler/permission_handler.dart";import "package:photos/core/event_bus.dart";import 'package:photos/ente_theme_data.dart';import "package:photos/events/memories_changed_event.dart";@@ -55,7 +56,9 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {_logger.info('init App');super.initState();locale = widget.locale;- setupIntentAction();+ Future.delayed(const Duration(seconds: 2), () {+ setupIntentAction();+ });WidgetsBinding.instance.addObserver(this);setupSubscription();}@@ -96,11 +99,11 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {: MediaExtentionAction(action: IntentAction.main);AppLifecycleService.instance.setMediaExtensionAction(mediaExtentionAction);if (mediaExtentionAction.action == IntentAction.main) {- if (!enableWorkManager) {- _configureBackgroundFetch();- } else {- _configureWorkManager();- }+ // if (!enableWorkManager) {+ // _configureBackgroundFetch();+ // } else {+ await _configureWorkManager();+ // }}}@@ -188,54 +191,69 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {final _logger = Logger("BackgroundInitializer");-void _configureWorkManager() {- workmanager.Workmanager().initialize(- callbackDispatcher,- isInDebugMode: kDebugMode,- );- workmanager.Workmanager().registerPeriodicTask(- 'backgroundFetchTask',- 'syncThings',- frequency: const Duration(minutes: 15),- initialDelay: const Duration(minutes: 1),- constraints: workmanager.Constraints(- networkType: workmanager.NetworkType.connected,- requiresBatteryNotLow: true,- requiresCharging: false,- requiresStorageNotLow: false,- requiresDeviceIdle: false,- ),- existingWorkPolicy: workmanager.ExistingWorkPolicy.keep,- backoffPolicy: workmanager.BackoffPolicy.linear,- backoffPolicyDelay: const Duration(minutes: 15),- );-}--void _configureBackgroundFetch() {- BackgroundFetch.configure(- BackgroundFetchConfig(- minimumFetchInterval: 15,- forceAlarmManager: false,- stopOnTerminate: false,- startOnBoot: true,- enableHeadless: true,- requiresBatteryNotLow: true,+Future _configureWorkManager() async {+ if (Platform.isIOS) {+ final status = await Permission.backgroundRefresh.status;+ if (status != PermissionStatus.granted) {+ _logger.warning(+ "Background refresh permission is not granted. Please grant it to start the background service.",+ );+ return;+ }+ }+ _logger.warning("Configuring Work Manager for background tasks");+ const iOSBackgroundAppRefresh = "io.ente.frame.iOSBackgroundAppRefresh";+ try {+ await workmanager.Workmanager().initialize(+ callbackDispatcher,+ isInDebugMode: kDebugMode,+ );+ await workmanager.Workmanager().registerPeriodicTask(+ iOSBackgroundAppRefresh,+ iOSBackgroundAppRefresh,+ frequency: const Duration(minutes: 15),+ initialDelay: const Duration(minutes: 1),+ constraints: workmanager.Constraints(+ networkType: workmanager.NetworkType.connected,requiresCharging: false,requiresStorageNotLow: false,requiresDeviceIdle: false,- requiredNetworkType: NetworkType.ANY,- ), (String taskId) async {- await runBackgroundTask(taskId);- }, (taskId) {- _logger.info("BG task timeout taskID: $taskId");- killBGTask(taskId);- }).then((int status) {- _logger.info('[BackgroundFetch] configure success: $status');- }).catchError((e) {- _logger.info('[BackgroundFetch] configure ERROR: $e');- });+ ),+ existingWorkPolicy: workmanager.ExistingWorkPolicy.keep,+ backoffPolicy: workmanager.BackoffPolicy.linear,+ backoffPolicyDelay: const Duration(minutes: 15),+ );+ } catch (e) {+ _logger.warning("Failed to configure WorkManager: $e");+ }+ _logger.info("WorkManager configured");}+// void _configureBackgroundFetch() {+// BackgroundFetch.configure(+// BackgroundFetchConfig(+// minimumFetchInterval: 15,+// forceAlarmManager: false,+// stopOnTerminate: false,+// startOnBoot: true,+// enableHeadless: true,+// requiresBatteryNotLow: true,+// requiresCharging: false,+// requiresStorageNotLow: false,+// requiresDeviceIdle: false,+// requiredNetworkType: NetworkType.ANY,+// ), (String taskId) async {+// await runBackgroundTask(taskId);+// }, (taskId) {+// _logger.info("BG task timeout taskID: $taskId");+// killBGTask(taskId);+// }).then((int status) {+// _logger.info('[BackgroundFetch] configure success: $status');+// }).catchError((e) {+// _logger.info('[BackgroundFetch] configure ERROR: $e');+// });+// }+@pragma('vm:entry-point')void callbackDispatcher() {workmanager.Workmanager().executeTask((taskName, inputData) async {diff --git a/mobile/lib/main.dart b/mobile/lib/main.dartindex cc2203c821..c49e688bbc 100644--- a/mobile/lib/main.dart+++ b/mobile/lib/main.dart@@ -2,7 +2,6 @@ import 'dart:async';import 'dart:io';import "package:adaptive_theme/adaptive_theme.dart";-import "package:background_fetch/background_fetch.dart";import "package:computer/computer.dart";import 'package:ente_crypto/ente_crypto.dart';import 'package:firebase_messaging/firebase_messaging.dart';@@ -53,8 +52,6 @@ import "package:photos/utils/lock_screen_settings.dart";import 'package:shared_preferences/shared_preferences.dart';import "package:workmanager/workmanager.dart";-bool enableWorkManager = Platform.isAndroid;-final _logger = Logger("main");bool _isProcessRunning = false;@@ -79,9 +76,9 @@ void main() async {final savedThemeMode = await AdaptiveTheme.getThemeMode();await _runInForeground(savedThemeMode);- if (!enableWorkManager) {- unawaited(BackgroundFetch.registerHeadlessTask(_headlessTaskHandler));- }+ // if (!enableWorkManager) {+ // unawaited(BackgroundFetch.registerHeadlessTask(_headlessTaskHandler));+ // }if (Platform.isAndroid) FlutterDisplayMode.setHighRefreshRate().ignore();SystemChrome.setSystemUIOverlayStyle(@@ -137,7 +134,7 @@ Future<void> runBackgroundTask(String taskId, {String mode = 'normal'}) async {if (_isProcessRunning) {_logger.info("Background task triggered when process was already running");await _sync('bgTaskActiveProcess');- if (!enableWorkManager) await BackgroundFetch.finish(taskId);+ // if (!enableWorkManager) await BackgroundFetch.finish(taskId);} else {_runWithLogs(() async {@@ -153,7 +150,7 @@ Future<void> _runInBackground(String taskId) async {await Future.delayed(const Duration(seconds: 3));if (await _isRunningInForeground()) {_logger.info("FG task running, skipping BG taskID: $taskId");- if (!enableWorkManager) await BackgroundFetch.finish(taskId);+ // if (!enableWorkManager) await BackgroundFetch.finish(taskId);return;} else {_logger.info("FG task is not running");@@ -161,9 +158,9 @@ Future<void> _runInBackground(String taskId) async {_logger.info("[BackgroundFetch] Event received: $taskId");_scheduleBGTaskKill(taskId);- if (!enableWorkManager && Platform.isIOS) {- _scheduleSuicide(kBGTaskTimeout, taskId); // To prevent OS from punishing us- }+ // if (!enableWorkManager && Platform.isIOS) {+ // _scheduleSuicide(kBGTaskTimeout, taskId); // To prevent OS from punishing us+ // }await _init(true, via: 'runViaBackgroundTask');await Future.wait(@@ -175,22 +172,28 @@ Future<void> _runInBackground(String taskId) async {}(),],);- if (!enableWorkManager) await BackgroundFetch.finish(taskId);+ // if (!enableWorkManager) await BackgroundFetch.finish(taskId);}// https://stackoverflow.com/a/73796478/546896-@pragma('vm:entry-point')-void _headlessTaskHandler(HeadlessTask task) {- debugPrint("_headlessTaskHandler");- if (task.timeout) {- BackgroundFetch.finish(task.taskId);- } else {- runBackgroundTask(task.taskId, mode: "headless");- }-}+// @pragma('vm:entry-point')+// void _headlessTaskHandler(HeadlessTask task) {+// debugPrint("_headlessTaskHandler");+// if (task.timeout) {+// BackgroundFetch.finish(task.taskId);+// } else {+// runBackgroundTask(task.taskId, mode: "headless");+// }+// }Future<void> _init(bool isBackground, {String via = ''}) async {try {+ // if (isBackground) {+ // for (int i = 0; i < 60 * 10; i++) {+ // await Future.delayed(const Duration(seconds: 1));+ // _logger.info("Waiting for 10 minutes for foreground to start $i");+ // }+ // }bool initComplete = false;final TimeLogger tlog = TimeLogger();Future.delayed(const Duration(seconds: 15), () {@@ -397,11 +400,11 @@ Future<void> killBGTask([String? taskId]) async {final prefs = await SharedPreferences.getInstance();await prefs.remove(kLastBGTaskHeartBeatTime);if (taskId != null) {- if (!enableWorkManager) {- await BackgroundFetch.finish(taskId);- } else {- await Workmanager().cancelByUniqueName(taskId);- }+ // if (!enableWorkManager) {+ // await BackgroundFetch.finish(taskId);+ // } else {+ await Workmanager().cancelByUniqueName(taskId);+ // }}}@@ -421,9 +424,9 @@ Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {_runWithLogs(() async {_logger.info("Background push received");- if (Platform.isIOS) {- _scheduleSuicide(kBGPushTimeout); // To prevent OS from punishing us- }+ // if (Platform.isIOS) {+ // _scheduleSuicide(kBGPushTimeout); // To prevent OS from punishing us+ // }await _init(true, via: 'firebasePush');if (PushService.shouldSync(message)) {await _sync('firebaseBgSyncNoActiveProcess');diff --git a/mobile/pubspec.lock b/mobile/pubspec.lockindex f5a785569c..dfd0dd00e3 100644--- a/mobile/pubspec.lock+++ b/mobile/pubspec.lock@@ -110,14 +110,6 @@ packages:url: "https://pub.dev"source: hostedversion: "2.11.0"- background_fetch:- dependency: "direct main"- description:- name: background_fetch- sha256: e9f26ae54d88310b7ac2a68f2f9fcee0081a4d5f11100f233a70702021e7ac4f- url: "https://pub.dev"- source: hosted- version: "1.3.7"battery_info:dependency: "direct main"description:@@ -3027,7 +3019,7 @@ packages:source: hostedversion: "0.0.3"win32:- dependency: "direct main"+ dependency: "direct overridden"description:name: win32sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e@@ -3053,10 +3045,11 @@ packages:workmanager:dependency: "direct main"description:- name: workmanager- sha256: ed13530cccd28c5c9959ad42d657cd0666274ca74c56dea0ca183ddd527d3a00- url: "https://pub.dev"- source: hosted+ path: workmanager+ ref: "4ce0651"+ resolved-ref: "4ce065135dc1b91fee918f81596b42a56850391d"+ url: "https://github.com/fluttercommunity/flutter_workmanager"+ source: gitversion: "0.5.2"xdg_directories:dependency: transitivediff --git a/mobile/pubspec.yaml b/mobile/pubspec.yamlindex 110584f2a6..ec14a87621 100644--- a/mobile/pubspec.yaml+++ b/mobile/pubspec.yaml@@ -24,7 +24,6 @@ dependencies:animate_do: ^2.0.0animated_list_plus: ^0.5.2archive: ^3.6.1- background_fetch: ^1.2.1battery_info: # update source if there is any updategit:url: https://github.com/ente-io/battery_info@@ -215,7 +214,11 @@ dependencies:url: https://github.com/ente-io/wallpaper_manager_fork.gitwechat_assets_picker: ^8.6.3widgets_to_image: ^0.0.2- workmanager: ^0.5.2+ workmanager: # pub.dev is behind+ git:+ url: https://github.com/fluttercommunity/flutter_workmanager+ ref: 4ce0651+ path: workmanagerxml: ^6.3.0xmp: ^1.0.3