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 Sunalc8e5246f4418
diff --cc mobile/ios/Podfile.lock
index 18d6efad86,d76dd0c63d..006c14bde2
--- a/mobile/ios/Podfile.lock
+++ b/mobile/ios/Podfile.lock
@@@ -301,11 -296,11 +298,12 @@@ DEPENDENCIES
- video_thumbnail (from `.symlinks/plugins/video_thumbnail/ios`)
- volume_controller (from `.symlinks/plugins/volume_controller/ios`)
- wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
+ - workmanager (from `.symlinks/plugins/workmanager/ios`)
SPEC REPOS:
+ https://github.com/ente-io/ffmpeg-kit-custom-repo-ios:
+ - ffmpeg_kit_custom
trunk:
- - ffmpeg-kit-ios-full-gpl
- Firebase
- FirebaseCore
- FirebaseCoreInternal
@@@ -517,8 -510,7 +515,8 @@@ SPEC CHECKSUMS
video_thumbnail: 584ccfa55d8fd2f3d5507218b0a18d84c839c620
volume_controller: 3657a1f65bedb98fa41ff7dc5793537919f31b12
wakelock_plus: 04623e3f525556020ebd4034310f20fe7fda8b49
+ workmanager: 01be2de7f184bd15de93a1812936a2b7f42ef07e
- PODFILE CHECKSUM: 20e086e6008977d43a3d40260f3f9bffcac748dd
+ PODFILE CHECKSUM: a8ef88ad74ba499756207e7592c6071a96756d18
COCOAPODS: 1.16.2
diff --cc mobile/ios/Runner/AppDelegate.swift
index 0a038e5f71,f1a6bbe1bf..632f259265
--- a/mobile/ios/Runner/AppDelegate.swift
+++ b/mobile/ios/Runner/AppDelegate.swift
@@@ -15,28 -14,7 +15,14 @@@ import workmanage
UNUserNotificationCenter.current().delegate = self as UNUserNotificationCenterDelegate
}
- 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 in
- if call.method == "setAudioSessionCategory" {
- self.setAudioSessionCategory(result: result)
- } else {
- result(FlutterMethodNotImplemented)
- }
- })
-
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) {