Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge remote-tracking branch 'origin/main' into improve-bg-processing

Prateek Sunalaaca6d62f3ff
diff --cc mobile/ios/Podfile.lock
index 490ecaba7d,31a927ebca..18d6efad86
--- a/mobile/ios/Podfile.lock
+++ b/mobile/ios/Podfile.lock
@@@ -243,10 -241,10 +241,12 @@@ PODS
- Flutter
- wakelock_plus (0.0.1):
- Flutter
+ - workmanager (0.0.1):
+ - Flutter
DEPENDENCIES:
+ - app_links (from `.symlinks/plugins/app_links/ios`)
+ - 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`)
@@@ -443,10 -435,10 +438,12 @@@ EXTERNAL SOURCES
:path: ".symlinks/plugins/volume_controller/ios"
wakelock_plus:
:path: ".symlinks/plugins/wakelock_plus/ios"
+ workmanager:
+ :path: ".symlinks/plugins/workmanager/ios"
SPEC CHECKSUMS:
+ app_links: 76b66b60cc809390ca1ad69bfd66b998d2387ac7
+ background_fetch: 94b36ee293e82972852dba8ede1fbcd3bd3d9d57
battery_info: 83f3aae7be2fccefab1d2bf06b8aa96f11c8bcdd
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c
diff --cc mobile/ios/Runner/AppDelegate.swift
index 7dbb6b3808,728fbf48f9..0a038e5f71
--- a/mobile/ios/Runner/AppDelegate.swift
+++ b/mobile/ios/Runner/AppDelegate.swift
@@@ -1,7 -1,7 +1,8 @@@
import AVFoundation
import Flutter
import UIKit
+ import app_links
+import workmanager
@main
@objc class AppDelegate: FlutterAppDelegate {
@@@ -29,14 -29,14 +30,21 @@@
})
GeneratedPluginRegistrant.register(with: self)
+ WorkmanagerPlugin.setPluginRegistrantCallback { registry in
+ GeneratedPluginRegistrant.register(with: registry)
+ }
+ // Register a periodic task in iOS 13+
+ WorkmanagerPlugin.registerPeriodicTask(
+ withIdentifier: "io.ente.frame.iOSBackgroundAppRefresh",
+ frequency: NSNumber(value: 20 * 60))
+ // Retrieve the link from parameters
+ if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {
+ // We have a link, propagate it to your Flutter app or not
+ AppLinks.shared.handleLink(url: url)
+ return true // Returning true will stop the propagation to other packages
+ }
+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
diff --cc mobile/pubspec.yaml
index 17939d245b,c90caff003..b7d047385b
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@@ -21,12 -21,14 +21,13 @@@ environment
dependencies:
adaptive_theme: ^3.1.0
android_intent_plus: ^5.2.0
- animate_do: ^2.0.0
animated_list_plus: ^0.5.2
+ app_links: ^6.4.0
archive: ^3.6.1
- battery_info: # update source if there is any update
- background_fetch: ^1.2.1
+ battery_info: # replace with battery_plus
git:
url: https://github.com/ente-io/battery_info
+ ref: 95c7a9f
bip39: ^1.0.6
cached_network_image: ^3.0.0
chewie:
@@@ -214,18 -202,9 +201,14 @@@
video_thumbnail:
visibility_detector: ^0.3.3
wakelock_plus: ^1.1.1
- wallpaper_manager_flutter: # update source if there is any update
- git:
- url: https://github.com/ente-io/wallpaper_manager_fork.git
wechat_assets_picker: ^8.6.3
widgets_to_image: ^0.0.2
+ workmanager: # pub.dev is behind
+ git:
+ url: https://github.com/fluttercommunity/flutter_workmanager
+ ref: 4ce0651
+ path: workmanager
xml: ^6.3.0
- xmp: ^1.0.3
dependency_overrides:
# Remove this after removing dependency from flutter_sodium.