diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 0000000..3bcf033 --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,18 @@ +name: Unit Tests +on: + push: + branches: + - master + pull_request: + workflow_dispatch: +jobs: + run: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + - run: flutter pub get + - run: flutter test diff --git a/ios/Podfile b/ios/Podfile index 39e868a..16df2b6 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -platform :ios, '14.0' +platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index a851726..70693e4 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 { - return true -} + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } } diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 91f2847..287124f 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -57,31 +57,3 @@ Require acces to camera to support login via QR code -UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - CPTemplateApplicationSceneSessionRoleApplication - - - UISceneConfigurationName - CarPlay Configuration - UISceneDelegateClassName - flutter_carplay.FlutterCarPlaySceneDelegate - - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - \ No newline at end of file diff --git a/ios/Runner/SceneDelegate.swift b/ios/Runner/SceneDelegate.swift deleted file mode 100644 index 212cdc2..0000000 --- a/ios/Runner/SceneDelegate.swift +++ /dev/null @@ -1,17 +0,0 @@ -@available(iOS 13.0, *) -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - var window: UIWindow? - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - guard let windowScene = scene as? UIWindowScene else { return } - - window = UIWindow(windowScene: windowScene) - - let flutterEngine = FlutterEngine(name: "SceneDelegateEngine") - flutterEngine.run() - GeneratedPluginRegistrant.register(with: flutterEngine) - let controller = FlutterViewController.init(engine: flutterEngine, nibName: nil, bundle: nil) - window?.rootViewController = controller - window?.makeKeyAndVisible() - } -} \ No newline at end of file