diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 52a632b..ccf33f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: - run: flutter build macos --release - run: | cd build/macos/Build/Products/Release - zip -r macos-build.zip pica_comic.app + zip -r macos-build.zip pixes.app - uses: actions/upload-artifact@v4 with: name: macos-build.zip diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index e90b632..81c3805 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -7,6 +7,7 @@ import Flutter _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { + let controller: FlutterViewController = window?.rootViewController as! FlutterViewController let methodChannel = FlutterMethodChannel(name: "pixes/proxy", binaryMessenger: controller.binaryMessenger) methodChannel.setMethodCallHandler { [weak self] (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in if let proxySettings = CFNetworkCopySystemProxySettings()?.takeUnretainedValue() as NSDictionary?,