stable: finalized GIS aesthetics and Syria/Jordan routing synchronization
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
import MapLibre
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
// Increase Ambient Cache Size to 5GB (5 * 1024 * 1024 * 1024 bytes)
|
||||
// This allows the app to store more map tiles locally after the first fetch.
|
||||
Task {
|
||||
do {
|
||||
try await MLNOfflineStorage.shared.setMaximumAmbientCacheSize(5368709120)
|
||||
} catch {
|
||||
NSLog("Failed to set ambient cache size: %s", String(describing: error))
|
||||
}
|
||||
}
|
||||
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
|
||||
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
|
||||
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user