diff --git a/engine/src/flutter/testing/scenario_app/.gitignore b/engine/src/flutter/testing/scenario_app/.gitignore
new file mode 100644
index 0000000000..6dc8f6e23d
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/.gitignore
@@ -0,0 +1,7 @@
+.packages
+pubspec.lock # This only has local dependencies in it.
+build/
+
+ios/Scenarios/*.framework/
+android/app/libs/flutter.jar
+android/app/src/main/jniLibs/arm64-v8a/libapp.so
diff --git a/engine/src/flutter/testing/scenario_app/README.md b/engine/src/flutter/testing/scenario_app/README.md
new file mode 100644
index 0000000000..2bf5448798
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/README.md
@@ -0,0 +1,47 @@
+# Scenario App
+
+This folder contains a dart:ui application and scripts to compile it to AOT
+for exercising embedders.
+
+It intentionally has no dependencies on the Flutter framework or tooling, such
+that it should be buildable as a presubmit or postsubmit to the engine even in
+the face of changes to Dart or dart:ui that require upstream changes in the
+Flutter tooling.
+
+To add a new scenario, create a new subclass of `Scenario` and add it to the
+map in `main.dart`. For an example, see animated_color_square.dart, which draws
+a continuously animating colored square that bounces off the sides of the
+viewport.
+
+## Building for iOS
+
+In this folder, after building the `ios_host` and `ios_profile` engine targets,
+run:
+
+```bash
+./compile_ios_aot.sh ../../../out/host_profile ../../../out/ios_profile/clang_x64/
+```
+
+This will create an `App.framework` copy it as well as the correct
+`Flutter.framework` to where the Xcode project expects to find them.
+
+You can then use `xcodebuild` to build the `ios/Scenarios/Scenarios.xcodeproj`,
+or open that in Xcode and build it that way.
+
+Currently, only AOT modes are supported.
+
+## Building for Android
+
+In this folder, after building the `host_profile` and `android_profile_arm64`
+engine targets, run:
+
+```bash
+./compile_android_aot.sh ../../../out/host_profile ../../../out/android_profile_arm64/clang_x64/
+```
+
+This will produce a suitable `libapp.so` for building with an Android app and
+copy it (along with flutter.jar) to where Gradle will expect to find it to build
+the app in the `android/` folder. The app can be run by opening it in Android
+Studio and running it, or by running `./gradlew assemble` in the `android/`
+folder and installing the APK from the correct folder in
+`android/app/build/outputs/apk`.
diff --git a/engine/src/flutter/testing/scenario_app/android/.gitignore b/engine/src/flutter/testing/scenario_app/android/.gitignore
new file mode 100644
index 0000000000..b32f6f298e
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/.gitignore
@@ -0,0 +1,14 @@
+*.iml
+.gradle
+/local.properties
+.settings
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/engine/src/flutter/testing/scenario_app/android/app/.gitignore b/engine/src/flutter/testing/scenario_app/android/app/.gitignore
new file mode 100644
index 0000000000..796b96d1c4
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/engine/src/flutter/testing/scenario_app/android/app/build.gradle b/engine/src/flutter/testing/scenario_app/android/app/build.gradle
new file mode 100644
index 0000000000..8dee894a27
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/build.gradle
@@ -0,0 +1,33 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 28
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+ defaultConfig {
+ applicationId "dev.flutter.scenarios"
+ minSdkVersion 16
+ targetSdkVersion 28
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'com.android.support:appcompat-v7:28.0.0'
+ implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+ implementation 'com.android.support:design:28.0.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+}
diff --git a/engine/src/flutter/testing/scenario_app/android/app/proguard-rules.pro b/engine/src/flutter/testing/scenario_app/android/app/proguard-rules.pro
new file mode 100644
index 0000000000..f1b424510d
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenarios/ExampleInstrumentedTest.java b/engine/src/flutter/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenarios/ExampleInstrumentedTest.java
new file mode 100644
index 0000000000..edcfc22fee
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenarios/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package dev.flutter.scenarios;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("dev.flutter.scenarios", appContext.getPackageName());
+ }
+}
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/AndroidManifest.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..87eef225a8
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/MainActivity.java b/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/MainActivity.java
new file mode 100644
index 0000000000..c288494438
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/MainActivity.java
@@ -0,0 +1,12 @@
+package dev.flutter.scenarios;
+
+import android.os.Bundle;
+
+import io.flutter.app.FlutterActivity;
+
+public class MainActivity extends FlutterActivity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+}
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000000..1f6bb29060
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable/ic_launcher_background.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000000..0d025f9bf6
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000000..eca70cfe52
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000000..eca70cfe52
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000000..898f3ed59a
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..dffca3601e
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000000..64ba76f75e
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..dae5e08234
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000000..e5ed46597e
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..14ed0af350
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..b0907cac3b
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..d8ae031549
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..2c18de9e66
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..beed3cdd2c
Binary files /dev/null and b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/colors.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000000..69b22338c6
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #008577
+ #00574B
+ #D81B60
+
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/dimens.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000000..59a0b0c4f5
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/strings.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000000..1cc6e997d7
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ Scenarios
+ MainActivity
+
diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/styles.xml b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000000..545b9c6d2c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/android/build.gradle b/engine/src/flutter/testing/scenario_app/android/build.gradle
new file mode 100644
index 0000000000..e11a5b354c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ google()
+ jcenter()
+
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.3.2'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/engine/src/flutter/testing/scenario_app/android/gradle.properties b/engine/src/flutter/testing/scenario_app/android/gradle.properties
new file mode 100644
index 0000000000..82618cecb4
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/gradle.properties
@@ -0,0 +1,15 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+
diff --git a/engine/src/flutter/testing/scenario_app/android/gradle/wrapper/gradle-wrapper.properties b/engine/src/flutter/testing/scenario_app/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000..57e33e9fe7
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Jul 22 20:16:02 PDT 2019
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
diff --git a/engine/src/flutter/testing/scenario_app/android/gradlew b/engine/src/flutter/testing/scenario_app/android/gradlew
new file mode 100755
index 0000000000..cccdd3d517
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/engine/src/flutter/testing/scenario_app/android/gradlew.bat b/engine/src/flutter/testing/scenario_app/android/gradlew.bat
new file mode 100644
index 0000000000..e95643d6a2
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/engine/src/flutter/testing/scenario_app/android/settings.gradle b/engine/src/flutter/testing/scenario_app/android/settings.gradle
new file mode 100644
index 0000000000..e7b4def49c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/android/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/engine/src/flutter/testing/scenario_app/compile_android_aot.sh b/engine/src/flutter/testing/scenario_app/compile_android_aot.sh
new file mode 100755
index 0000000000..f8d1f06a24
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/compile_android_aot.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+# Copyright 2013 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+#TODO(dnfield): Get rid of this script and instead use proper build rules
+
+set -e
+
+HOST_TOOLS=$1
+DEVICE_TOOLS=$2
+
+if [[ ! -d "$HOST_TOOLS" ]]; then
+ echo "Must specify the host out directory containing dart."
+ exit 1
+fi
+
+if [[ ! -d "$DEVICE_TOOLS" ]]; then
+ echo "Must specify the device out directory containing gen_snapshot."
+ exit 1
+fi
+
+echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
+
+OUTDIR="build/android"
+
+echo "Creating $OUTDIR..."
+
+mkdir -p $OUTDIR
+
+echo "Compiling kernel..."
+
+"$HOST_TOOLS/dart" \
+ "$HOST_TOOLS/gen/frontend_server.dart.snapshot" \
+ --sdk-root "$HOST_TOOLS/flutter_patched_sdk" \
+ --aot --tfa --target=flutter \
+ --output-dill "$OUTDIR/app.dill" \
+ lib/main.dart
+
+echo "Compiling ELF Shared Library..."
+
+"$DEVICE_TOOLS/gen_snapshot" --deterministic --snapshot_kind=app-aot-elf --elf="$OUTDIR/libapp.so" --strip "$OUTDIR/app.dill"
+
+mkdir -p "android/app/src/main/jniLibs/arm64-v8a"
+cp "$OUTDIR/libapp.so" "android/app/src/main/jniLibs/arm64-v8a/"
+cp "$DEVICE_TOOLS/../flutter.jar" "android/app/libs/"
+
+echo "Created $OUTDIR/libapp.so."
diff --git a/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh b/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh
new file mode 100755
index 0000000000..2b348248e0
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh
@@ -0,0 +1,76 @@
+#!/bin/bash
+# Copyright 2013 The Flutter Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+#TODO(dnfield): Get rid of this script and instead use proper build rules
+
+set -e
+
+HOST_TOOLS=$1
+DEVICE_TOOLS=$2
+
+if [[ ! -d "$HOST_TOOLS" ]]; then
+ echo "Must specify the host out directory containing dart."
+ exit 1
+fi
+
+if [[ ! -d "$DEVICE_TOOLS" ]]; then
+ echo "Must specify the device out directory containing gen_snapshot."
+ exit 1
+fi
+
+echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
+
+OUTDIR="build/ios"
+
+echo "Creating $OUTDIR..."
+
+mkdir -p $OUTDIR
+mkdir -p "$OUTDIR/App.framework"
+
+echo "Compiling kernel..."
+
+"$HOST_TOOLS/dart" \
+ "$HOST_TOOLS/gen/frontend_server.dart.snapshot" \
+ --sdk-root "$HOST_TOOLS/flutter_patched_sdk" \
+ --aot --tfa --target=flutter \
+ --output-dill "$OUTDIR/app.dill" \
+ lib/main.dart
+
+echo "Compiling AOT Assembly..."
+
+"$DEVICE_TOOLS/gen_snapshot" --deterministic --snapshot_kind=app-aot-assembly --assembly=$OUTDIR/snapshot_assembly.S $OUTDIR/app.dill
+
+SYSROOT=$(xcrun --sdk iphoneos --show-sdk-path)
+echo "Using $SYSROOT as sysroot."
+echo "Compiling Assembly..."
+
+cc -arch arm64 \
+ -isysroot "$SYSROOT" \
+ -miphoneos-version-min=8.0 \
+ -c "$OUTDIR/snapshot_assembly.S" \
+ -o "$OUTDIR/snapshot_assembly.o"
+
+echo "Linking App using $SYSROOT..."
+
+clang -arch arm64 \
+ -isysroot "$SYSROOT" \
+ -miphoneos-version-min=8.0 \
+ -dynamiclib -Xlinker -rpath -Xlinker @executable_path/Frameworks \
+ -Xlinker -rpath -Xlinker @loader_path/Frameworks \
+ -install_name @rpath/App.framework/App \
+ -o "$OUTDIR/App.framework/App" \
+ "$OUTDIR/snapshot_assembly.o"
+
+strip "$OUTDIR/App.framework/App"
+
+cp ios/AppFrameworkInfo.plist "$OUTDIR/App.framework/Info.plist"
+
+echo "Created $OUTDIR/App.framework/App."
+
+rm -rf ios/Scenarios/App.framework
+rm -rf ios/Scenarios/Flutter.framework
+cp -R "$OUTDIR/App.framework" ios/Scenarios
+cp -R "$DEVICE_TOOLS/../Flutter.framework" ios/Scenarios
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/AppFrameworkInfo.plist b/engine/src/flutter/testing/scenario_app/ios/AppFrameworkInfo.plist
new file mode 100644
index 0000000000..6b4c0f78a7
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 8.0
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.pbxproj b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.pbxproj
new file mode 100644
index 0000000000..01e0615a15
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.pbxproj
@@ -0,0 +1,601 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 242F37A222E636DE001E83D4 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 246B4E4522E3B61000073EBF /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 242F37A322E636DE001E83D4 /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 246B4E4122E3B5F700073EBF /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 246B4E4222E3B5F700073EBF /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 246B4E4122E3B5F700073EBF /* App.framework */; };
+ 246B4E4622E3B61000073EBF /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 246B4E4522E3B61000073EBF /* Flutter.framework */; };
+ 248D76CC22E388370012F0C1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 248D76CB22E388370012F0C1 /* AppDelegate.m */; };
+ 248D76D422E388380012F0C1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 248D76D322E388380012F0C1 /* Assets.xcassets */; };
+ 248D76DA22E388380012F0C1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 248D76D922E388380012F0C1 /* main.m */; };
+ 248D76E422E388380012F0C1 /* ScenariosTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 248D76E322E388380012F0C1 /* ScenariosTests.m */; };
+ 248D76EF22E388380012F0C1 /* ScenariosUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 248D76EE22E388380012F0C1 /* ScenariosUITests.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 248D76E022E388380012F0C1 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 248D76BF22E388370012F0C1 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 248D76C622E388370012F0C1;
+ remoteInfo = Scenarios;
+ };
+ 248D76EB22E388380012F0C1 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 248D76BF22E388370012F0C1 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 248D76C622E388370012F0C1;
+ remoteInfo = Scenarios;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 246B4E4422E3B5F700073EBF /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 12;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ 242F37A222E636DE001E83D4 /* Flutter.framework in Embed Frameworks */,
+ 242F37A322E636DE001E83D4 /* App.framework in Embed Frameworks */,
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 246B4E4122E3B5F700073EBF /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = App.framework; sourceTree = ""; };
+ 246B4E4522E3B61000073EBF /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Flutter.framework; sourceTree = ""; };
+ 248D76C722E388370012F0C1 /* Scenarios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Scenarios.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 248D76CA22E388370012F0C1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
+ 248D76CB22E388370012F0C1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
+ 248D76D322E388380012F0C1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 248D76D822E388380012F0C1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 248D76D922E388380012F0C1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
+ 248D76DF22E388380012F0C1 /* ScenariosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ScenariosTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 248D76E322E388380012F0C1 /* ScenariosTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ScenariosTests.m; sourceTree = ""; };
+ 248D76E522E388380012F0C1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 248D76EA22E388380012F0C1 /* ScenariosUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ScenariosUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 248D76EE22E388380012F0C1 /* ScenariosUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ScenariosUITests.m; sourceTree = ""; };
+ 248D76F022E388380012F0C1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 248D76C422E388370012F0C1 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 246B4E4222E3B5F700073EBF /* App.framework in Frameworks */,
+ 246B4E4622E3B61000073EBF /* Flutter.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76DC22E388380012F0C1 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76E722E388380012F0C1 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 248D76BE22E388370012F0C1 = {
+ isa = PBXGroup;
+ children = (
+ 248D76C922E388370012F0C1 /* Scenarios */,
+ 248D76E222E388380012F0C1 /* ScenariosTests */,
+ 248D76ED22E388380012F0C1 /* ScenariosUITests */,
+ 248D76C822E388370012F0C1 /* Products */,
+ 248D76FC22E388900012F0C1 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 248D76C822E388370012F0C1 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 248D76C722E388370012F0C1 /* Scenarios.app */,
+ 248D76DF22E388380012F0C1 /* ScenariosTests.xctest */,
+ 248D76EA22E388380012F0C1 /* ScenariosUITests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 248D76C922E388370012F0C1 /* Scenarios */ = {
+ isa = PBXGroup;
+ children = (
+ 248D76CA22E388370012F0C1 /* AppDelegate.h */,
+ 248D76CB22E388370012F0C1 /* AppDelegate.m */,
+ 248D76D322E388380012F0C1 /* Assets.xcassets */,
+ 248D76D822E388380012F0C1 /* Info.plist */,
+ 248D76D922E388380012F0C1 /* main.m */,
+ );
+ path = Scenarios;
+ sourceTree = "";
+ };
+ 248D76E222E388380012F0C1 /* ScenariosTests */ = {
+ isa = PBXGroup;
+ children = (
+ 248D76E322E388380012F0C1 /* ScenariosTests.m */,
+ 248D76E522E388380012F0C1 /* Info.plist */,
+ );
+ path = ScenariosTests;
+ sourceTree = "";
+ };
+ 248D76ED22E388380012F0C1 /* ScenariosUITests */ = {
+ isa = PBXGroup;
+ children = (
+ 248D76EE22E388380012F0C1 /* ScenariosUITests.m */,
+ 248D76F022E388380012F0C1 /* Info.plist */,
+ );
+ path = ScenariosUITests;
+ sourceTree = "";
+ };
+ 248D76FC22E388900012F0C1 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 246B4E4522E3B61000073EBF /* Flutter.framework */,
+ 246B4E4122E3B5F700073EBF /* App.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 248D76C622E388370012F0C1 /* Scenarios */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 248D76F322E388380012F0C1 /* Build configuration list for PBXNativeTarget "Scenarios" */;
+ buildPhases = (
+ 248D76C322E388370012F0C1 /* Sources */,
+ 248D76C422E388370012F0C1 /* Frameworks */,
+ 248D76C522E388370012F0C1 /* Resources */,
+ 246B4E4422E3B5F700073EBF /* Embed Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Scenarios;
+ productName = Scenarios;
+ productReference = 248D76C722E388370012F0C1 /* Scenarios.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 248D76DE22E388380012F0C1 /* ScenariosTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 248D76F622E388380012F0C1 /* Build configuration list for PBXNativeTarget "ScenariosTests" */;
+ buildPhases = (
+ 248D76DB22E388380012F0C1 /* Sources */,
+ 248D76DC22E388380012F0C1 /* Frameworks */,
+ 248D76DD22E388380012F0C1 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 248D76E122E388380012F0C1 /* PBXTargetDependency */,
+ );
+ name = ScenariosTests;
+ productName = ScenariosTests;
+ productReference = 248D76DF22E388380012F0C1 /* ScenariosTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 248D76E922E388380012F0C1 /* ScenariosUITests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 248D76F922E388380012F0C1 /* Build configuration list for PBXNativeTarget "ScenariosUITests" */;
+ buildPhases = (
+ 248D76E622E388380012F0C1 /* Sources */,
+ 248D76E722E388380012F0C1 /* Frameworks */,
+ 248D76E822E388380012F0C1 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 248D76EC22E388380012F0C1 /* PBXTargetDependency */,
+ );
+ name = ScenariosUITests;
+ productName = ScenariosUITests;
+ productReference = 248D76EA22E388380012F0C1 /* ScenariosUITests.xctest */;
+ productType = "com.apple.product-type.bundle.ui-testing";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 248D76BF22E388370012F0C1 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1020;
+ ORGANIZATIONNAME = flutter;
+ TargetAttributes = {
+ 248D76C622E388370012F0C1 = {
+ CreatedOnToolsVersion = 10.2.1;
+ };
+ 248D76DE22E388380012F0C1 = {
+ CreatedOnToolsVersion = 10.2.1;
+ TestTargetID = 248D76C622E388370012F0C1;
+ };
+ 248D76E922E388380012F0C1 = {
+ CreatedOnToolsVersion = 10.2.1;
+ TestTargetID = 248D76C622E388370012F0C1;
+ };
+ };
+ };
+ buildConfigurationList = 248D76C222E388370012F0C1 /* Build configuration list for PBXProject "Scenarios" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 248D76BE22E388370012F0C1;
+ productRefGroup = 248D76C822E388370012F0C1 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 248D76C622E388370012F0C1 /* Scenarios */,
+ 248D76DE22E388380012F0C1 /* ScenariosTests */,
+ 248D76E922E388380012F0C1 /* ScenariosUITests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 248D76C522E388370012F0C1 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 248D76D422E388380012F0C1 /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76DD22E388380012F0C1 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76E822E388380012F0C1 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 248D76C322E388370012F0C1 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 248D76DA22E388380012F0C1 /* main.m in Sources */,
+ 248D76CC22E388370012F0C1 /* AppDelegate.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76DB22E388380012F0C1 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 248D76E422E388380012F0C1 /* ScenariosTests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 248D76E622E388380012F0C1 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 248D76EF22E388380012F0C1 /* ScenariosUITests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 248D76E122E388380012F0C1 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 248D76C622E388370012F0C1 /* Scenarios */;
+ targetProxy = 248D76E022E388380012F0C1 /* PBXContainerItemProxy */;
+ };
+ 248D76EC22E388380012F0C1 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 248D76C622E388370012F0C1 /* Scenarios */;
+ targetProxy = 248D76EB22E388380012F0C1 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+ 248D76F122E388380012F0C1 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_BITCODE = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 248D76F222E388380012F0C1 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_BITCODE = NO;
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.2;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 248D76F422E388380012F0C1 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ ENABLE_BITCODE = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)",
+ );
+ INFOPLIST_FILE = Scenarios/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.Scenarios;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 248D76F522E388380012F0C1 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ ENABLE_BITCODE = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)",
+ );
+ INFOPLIST_FILE = Scenarios/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.Scenarios;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+ 248D76F722E388380012F0C1 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ INFOPLIST_FILE = ScenariosTests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.ScenariosTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Scenarios.app/Scenarios";
+ };
+ name = Debug;
+ };
+ 248D76F822E388380012F0C1 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ INFOPLIST_FILE = ScenariosTests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.ScenariosTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Scenarios.app/Scenarios";
+ };
+ name = Release;
+ };
+ 248D76FA22E388380012F0C1 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ INFOPLIST_FILE = ScenariosUITests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.ScenariosUITests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = Scenarios;
+ };
+ name = Debug;
+ };
+ 248D76FB22E388380012F0C1 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = S8QB4VV633;
+ INFOPLIST_FILE = ScenariosUITests/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ "@loader_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.ScenariosUITests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = Scenarios;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 248D76C222E388370012F0C1 /* Build configuration list for PBXProject "Scenarios" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 248D76F122E388380012F0C1 /* Debug */,
+ 248D76F222E388380012F0C1 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 248D76F322E388380012F0C1 /* Build configuration list for PBXNativeTarget "Scenarios" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 248D76F422E388380012F0C1 /* Debug */,
+ 248D76F522E388380012F0C1 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 248D76F622E388380012F0C1 /* Build configuration list for PBXNativeTarget "ScenariosTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 248D76F722E388380012F0C1 /* Debug */,
+ 248D76F822E388380012F0C1 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 248D76F922E388380012F0C1 /* Build configuration list for PBXNativeTarget "ScenariosUITests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 248D76FA22E388380012F0C1 /* Debug */,
+ 248D76FB22E388380012F0C1 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 248D76BF22E388370012F0C1 /* Project object */;
+}
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000000..4579fcd91e
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000000..18d981003d
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.h b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.h
new file mode 100644
index 0000000000..36e21bbf9c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.h
@@ -0,0 +1,6 @@
+#import
+#import
+
+@interface AppDelegate : FlutterAppDelegate
+
+@end
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.m
new file mode 100644
index 0000000000..6263b34fd9
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/AppDelegate.m
@@ -0,0 +1,13 @@
+#include "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication*)application
+ didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ self.window.rootViewController = [[FlutterViewController alloc] init];
+ [self.window makeKeyAndVisible];
+ return [super application:application didFinishLaunchingWithOptions:launchOptions];
+}
+
+@end
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/AppIcon.appiconset/Contents.json b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000000..d8db8d65fd
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,98 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "20x20",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "20x20",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "29x29",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "40x40",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "76x76",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "76x76",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "83.5x83.5",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "ios-marketing",
+ "size" : "1024x1024",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/Contents.json b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/Contents.json
new file mode 100644
index 0000000000..2d92bd53fd
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Info.plist b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Info.plist
new file mode 100644
index 0000000000..ce0bb08859
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/Info.plist
@@ -0,0 +1,41 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+ LSRequiresIPhoneOS
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/main.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/main.m
new file mode 100644
index 0000000000..dff6597e45
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/Scenarios/main.m
@@ -0,0 +1,9 @@
+#import
+#import
+#import "AppDelegate.h"
+
+int main(int argc, char* argv[]) {
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/Info.plist b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/Info.plist
new file mode 100644
index 0000000000..6c40a6cd0c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/Info.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ BNDL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/ScenariosTests.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/ScenariosTests.m
new file mode 100644
index 0000000000..310f43fae4
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosTests/ScenariosTests.m
@@ -0,0 +1,39 @@
+//
+// ScenariosTests.m
+// ScenariosTests
+//
+// Created by Dan Field on 7/20/19.
+// Copyright © 2019 flutter. All rights reserved.
+//
+
+#import
+
+@interface ScenariosTests : XCTestCase
+
+@end
+
+@implementation ScenariosTests
+
+- (void)setUp {
+ // Put setup code here. This method is called before the invocation of each test method in the
+ // class.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the
+ // class.
+}
+
+- (void)testExample {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testPerformanceExample {
+ // This is an example of a performance test case.
+ [self measureBlock:^{
+ // Put the code you want to measure the time of here.
+ }];
+}
+
+@end
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/Info.plist b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/Info.plist
new file mode 100644
index 0000000000..6c40a6cd0c
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/Info.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ BNDL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+
+
diff --git a/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/ScenariosUITests.m b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/ScenariosUITests.m
new file mode 100644
index 0000000000..fc47337b58
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/ios/Scenarios/ScenariosUITests/ScenariosUITests.m
@@ -0,0 +1,42 @@
+//
+// ScenariosUITests.m
+// ScenariosUITests
+//
+// Created by Dan Field on 7/20/19.
+// Copyright © 2019 flutter. All rights reserved.
+//
+
+#import
+
+@interface ScenariosUITests : XCTestCase
+
+@end
+
+@implementation ScenariosUITests
+
+- (void)setUp {
+ // Put setup code here. This method is called before the invocation of each test method in the
+ // class.
+
+ // In UI tests it is usually best to stop immediately when a failure occurs.
+ self.continueAfterFailure = NO;
+
+ // UI tests must launch the application that they test. Doing this in setup will make sure it
+ // happens for each test method.
+ [[[XCUIApplication alloc] init] launch];
+
+ // In UI tests it’s important to set the initial state - such as interface orientation - required
+ // for your tests before they run. The setUp method is a good place to do this.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the
+ // class.
+}
+
+- (void)testExample {
+ // Use recording to get started writing UI tests.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+@end
diff --git a/engine/src/flutter/testing/scenario_app/lib/main.dart b/engine/src/flutter/testing/scenario_app/lib/main.dart
new file mode 100644
index 0000000000..05dbf3ccb4
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/lib/main.dart
@@ -0,0 +1,56 @@
+// Copyright 2013 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:convert';
+import 'dart:typed_data';
+import 'dart:ui';
+
+import 'src/animated_color_square.dart';
+import 'src/scenario.dart';
+
+Map _scenarios = {
+ 'animated_color_square': AnimatedColorSquareScenario(window),
+};
+
+Scenario _currentScenario = _scenarios['animated_color_square'];
+
+void main() {
+ window
+ ..onPlatformMessage = _handlePlatformMessage
+ ..onBeginFrame = _onBeginFrame
+ ..onDrawFrame = _onDrawFrame
+ ..onMetricsChanged = _onMetricsChanged
+ ..scheduleFrame();
+ final ByteData data = ByteData(1);
+ data.setUint8(0, 1);
+ window.sendPlatformMessage('scenario_status', data, null);
+}
+
+void _handlePlatformMessage(String name, ByteData data, PlatformMessageResponseCallback callback) {
+ if (name == 'set_scenario' && data != null) {
+ final String scenarioName = utf8.decode(data.buffer.asUint8List());
+ final Scenario candidateScenario = _scenarios[scenarioName];
+ if (candidateScenario != null) {
+ _currentScenario = candidateScenario;
+ window.scheduleFrame();
+ }
+ if (callback != null) {
+ final ByteData data = ByteData(1);
+ data.setUint8(0, candidateScenario == null ? 0 : 1);
+ callback(data);
+ }
+ }
+}
+
+void _onBeginFrame(Duration duration) {
+ _currentScenario.onBeginFrame(duration);
+}
+
+void _onDrawFrame() {
+ _currentScenario.onDrawFrame();
+}
+
+void _onMetricsChanged() {
+ _currentScenario.onMetricsChanged();
+}
diff --git a/engine/src/flutter/testing/scenario_app/lib/src/animated_color_square.dart b/engine/src/flutter/testing/scenario_app/lib/src/animated_color_square.dart
new file mode 100644
index 0000000000..29f77fda9d
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/lib/src/animated_color_square.dart
@@ -0,0 +1,104 @@
+// Copyright 2013 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:math' as math;
+import 'dart:ui';
+
+import 'scenario.dart';
+
+/// A square that animates it color and bounces off the sides of the
+/// device.
+///
+/// This scenario drives animation as quickly as possible, requesting new frames
+/// that are constantly changing.
+class AnimatedColorSquareScenario extends Scenario {
+ /// Creates the AnimatedColorSquare scenario.
+ ///
+ /// The [window] parameter must not be null.
+ AnimatedColorSquareScenario(Window window)
+ : assert(window != null),
+ super(window);
+
+ static const double _squareSize = 200;
+ /// Used to animate the red value in the color of the square.
+ final _NumberSwinger _r = _NumberSwinger(0, 255);
+ _NumberSwinger _top = _NumberSwinger(
+ 0,
+ window.physicalSize.height - _squareSize,
+ );
+ _NumberSwinger _left = _NumberSwinger(
+ 0,
+ window.physicalSize.width - _squareSize,
+ );
+
+ @override
+ void onBeginFrame(Duration duration) {
+ final SceneBuilder builder = SceneBuilder();
+ final PictureRecorder recorder = PictureRecorder();
+ final Canvas canvas = Canvas(recorder);
+
+ canvas.drawRect(
+ const Rect.fromLTWH(0, 0, _squareSize, _squareSize),
+ Paint()..color = Color.fromARGB(255, _r.swing(), 50, 50),
+ );
+ final Picture picture = recorder.endRecording();
+
+ builder.pushOffset(_left.swing(), _top.swing());
+ builder.addPicture(
+ Offset.zero,
+ picture,
+ willChangeHint: true,
+ );
+ final Scene scene = builder.build();
+ window.render(scene);
+ scene.dispose();
+ }
+
+ @override
+ void onDrawFrame() {
+ window.scheduleFrame();
+ }
+
+ @override
+ void onMetricsChanged() {
+ _top = _NumberSwinger(
+ 0,
+ window.physicalSize.height - _squareSize,
+ math.min(_top.current, window.physicalSize.height - _squareSize),
+ );
+ _left = _NumberSwinger(
+ 0,
+ window.physicalSize.width - _squareSize,
+ math.min(_left.current, window.physicalSize.width - _squareSize),
+ );
+ }
+}
+
+class _NumberSwinger {
+ _NumberSwinger(this._begin, this._end, [this._current])
+ : assert(_begin != null),
+ assert(_end != null),
+ _up = _begin < _end {
+ _current ??= _begin;
+ }
+
+ final T _begin;
+ final T _end;
+
+ /// The current value of the swinger.
+ T get current => _current;
+ T _current;
+
+ bool _up;
+
+ T swing() {
+ if (_current >= _end) {
+ _up = false;
+ } else if (_current <= _begin) {
+ _up = true;
+ }
+ _current = _up ? _current + 1 : _current - 1;
+ return _current;
+ }
+}
diff --git a/engine/src/flutter/testing/scenario_app/lib/src/scenario.dart b/engine/src/flutter/testing/scenario_app/lib/src/scenario.dart
new file mode 100644
index 0000000000..348e204d6e
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/lib/src/scenario.dart
@@ -0,0 +1,30 @@
+// Copyright 2013 The Flutter Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:ui';
+
+/// A scenario to run for testing.
+abstract class Scenario {
+ /// Creates a new scenario using a specific Window instance.
+ const Scenario(this.window);
+
+ /// The window used by this scenario. May be mocked.
+ final Window window;
+
+ /// Called by the program when a frame is ready to be drawn.
+ ///
+ /// See [Window.onBeginFrame] for more details.
+ void onBeginFrame(Duration duration);
+
+ /// Called by the program when the microtasks from [onBeginFrame] have been
+ /// flushed.
+ ///
+ /// See [Window.onDrawFrame] for more details.
+ void onDrawFrame();
+
+ /// Called by the program when the window metrics have changed.
+ ///
+ /// See [Window.onMetricsChanged].
+ void onMetricsChanged();
+}
diff --git a/engine/src/flutter/testing/scenario_app/pubspec.yaml b/engine/src/flutter/testing/scenario_app/pubspec.yaml
new file mode 100644
index 0000000000..8748b51653
--- /dev/null
+++ b/engine/src/flutter/testing/scenario_app/pubspec.yaml
@@ -0,0 +1,10 @@
+name: scenario_app
+publish_to: none
+
+# These are for convenience during local development. Changing them will not
+# impact the build.
+dependencies:
+ sky_engine:
+ path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_engine
+ sky_services:
+ path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_services