flutter/dev/integration_tests/ios_host_app
2021-09-16 20:02:02 -07:00
..
flutterapp/lib Enable null safety by default in templates (#78619) 2021-03-30 10:16:05 +02:00
FlutterUITests try tap app before apping the element (#90149) 2021-09-16 20:02:02 -07:00
Host Fixed large amount of spelling errors (#83744) 2021-06-02 10:14:06 -07:00
Host.xcodeproj Support iOS arm64 simulator (#85642) 2021-06-30 14:31:04 -07:00
Host.xcworkspace Fixes to support add2app on iOS (#22277) 2018-09-26 01:57:05 -04:00
Podfile ios_host_app Podfile search paths (#71525) 2020-12-01 21:24:21 -08:00
README.md ✒ Spell Check All .md Files Related to Flutter 💙 (#61564) 2020-07-22 18:23:47 -07:00

iOS host app

Used by the module_test_ios.dart device lab test.

iOS host app for a Flutter module created using

$ flutter create -t module hello

and placed in a sibling folder to (a clone of) the host app. flutterapp/lib/marquee.dart and flutterapp/lib/main.dart must be copied into the new module lib for platform unit tests to pass.

This application demonstrates some basic functionality for Add2App, along with a native iOS ViewController as a baseline and to demonstrate interaction.

  1. A regular iOS view controller (UIViewController), similar to the default flutter create template (NativeViewController.m).
  2. A FlutterViewController subclass that takes over the full screen. Demos showing this both from a cold/fresh engine state and a warm engine state (FullScreenViewController.m).
  3. A demo of pushing a FlutterViewController on as a child view.
  4. A demo of showing both the native and the Flutter views using a platform channel to interact with each other (HybridViewController.m).
  5. A demo of showing two FlutterViewControllers simultaneously (DualViewController.m).

A few key things are tested here (FlutterUITests.m):

  1. The ability to pre-warm the engine and attach/detach a ViewController from it.
  2. The ability to use platform channels to communicate between views.
  3. The ability to simultaneously run two instances of the engine.