From dc8ffe04309b1472f32fe2250677e6dbf1a3287c Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Wed, 18 Mar 2020 11:16:38 -0700 Subject: [PATCH] Revert "Add benchmark for platform views (#52717)" (#52834) This reverts commit 1f1731842a4db8161a0582bcf9e38635f8671194. --- .../platform_views_layout/README.md | 26 - .../android/app/build.gradle | 54 --- .../android/app/src/main/AndroidManifest.xml | 23 - .../DummyPlatformView.java | 31 -- .../DummyPlatformViewActivity.java | 19 - .../DummyPlatformViewFactory.java | 42 -- .../android/build.gradle | 33 -- .../android/gradle.properties | 4 - .../gradle/wrapper/gradle-wrapper.properties | 6 - .../android/settings.gradle | 5 - .../ios/Flutter/AppFrameworkInfo.plist | 26 - .../ios/Flutter/Flutter.xcconfig | 1 - .../ios/Runner.xcodeproj/project.pbxproj | 448 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../ios/Runner/AppDelegate.h | 10 - .../ios/Runner/AppDelegate.m | 27 -- .../AppIcon.appiconset/Icon-App-76x76@3x.png | Bin 4867 -> 0 bytes .../Runner/Base.lproj/LaunchScreen.storyboard | 27 -- .../ios/Runner/Base.lproj/Main.storyboard | 26 - .../ios/Runner/DummyPlatformView.h | 23 - .../ios/Runner/DummyPlatformView.m | 57 --- .../ios/Runner/Info.plist | 47 -- .../platform_views_layout/ios/Runner/main.m | 14 - .../platform_views_layout/lib/main.dart | 129 ----- .../platform_views_layout/pubspec.yaml | 96 ---- .../test_driver/scroll_perf.dart | 11 - .../test_driver/scroll_perf_test.dart | 64 --- ...m_views_scroll_perf__timeline_summary.dart | 14 - ...ews_scroll_perf_ios__timeline_summary.dart | 14 - dev/devicelab/lib/tasks/perf_tests.dart | 8 - dev/devicelab/manifest.yaml | 12 - 32 files changed, 1312 deletions(-) delete mode 100644 dev/benchmarks/platform_views_layout/README.md delete mode 100644 dev/benchmarks/platform_views_layout/android/app/build.gradle delete mode 100644 dev/benchmarks/platform_views_layout/android/app/src/main/AndroidManifest.xml delete mode 100644 dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformView.java delete mode 100644 dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewActivity.java delete mode 100644 dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewFactory.java delete mode 100644 dev/benchmarks/platform_views_layout/android/build.gradle delete mode 100644 dev/benchmarks/platform_views_layout/android/gradle.properties delete mode 100644 dev/benchmarks/platform_views_layout/android/gradle/wrapper/gradle-wrapper.properties delete mode 100644 dev/benchmarks/platform_views_layout/android/settings.gradle delete mode 100644 dev/benchmarks/platform_views_layout/ios/Flutter/AppFrameworkInfo.plist delete mode 100644 dev/benchmarks/platform_views_layout/ios/Flutter/Flutter.xcconfig delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.h delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.m delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/LaunchScreen.storyboard delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/Main.storyboard delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.h delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.m delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/Info.plist delete mode 100644 dev/benchmarks/platform_views_layout/ios/Runner/main.m delete mode 100644 dev/benchmarks/platform_views_layout/lib/main.dart delete mode 100644 dev/benchmarks/platform_views_layout/pubspec.yaml delete mode 100644 dev/benchmarks/platform_views_layout/test_driver/scroll_perf.dart delete mode 100644 dev/benchmarks/platform_views_layout/test_driver/scroll_perf_test.dart delete mode 100644 dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart delete mode 100644 dev/devicelab/bin/tasks/platform_views_scroll_perf_ios__timeline_summary.dart diff --git a/dev/benchmarks/platform_views_layout/README.md b/dev/benchmarks/platform_views_layout/README.md deleted file mode 100644 index 629ba8019d..0000000000 --- a/dev/benchmarks/platform_views_layout/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# platform_views_layout - -## Scrolling benchmark - -To run the scrolling benchmark on a device: - -``` -flutter drive --profile test_driver/scroll_perf.dart -``` - -Results should be in the file `build/platform_views_scroll_perf.timeline_summary.json`. - -More detailed logs should be in `build/platform_views_scroll_perf.timeline.json`. - - -## Startup benchmark - -To measure startup time on a device: - -``` -flutter run --profile --trace-startup -``` - -Results should be in the logs. - -Additional results should be in the file `build/start_up_info.json`. diff --git a/dev/benchmarks/platform_views_layout/android/app/build.gradle b/dev/benchmarks/platform_views_layout/android/app/build.gradle deleted file mode 100644 index 4c64646593..0000000000 --- a/dev/benchmarks/platform_views_layout/android/app/build.gradle +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2014 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. - -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withInputStream { stream -> - localProperties.load(stream) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion 28 - - lintOptions { - disable 'InvalidPackage' - } - - defaultConfig { - minSdkVersion 16 - targetSdkVersion 28 - versionCode 1 - versionName "0.0.1" - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } - - aaptOptions { - // TODO(goderbauer): remove when https://github.com/flutter/flutter/issues/8986 is resolved. - if(System.getenv("FLUTTER_CI_WIN")) { - println "AAPT cruncher disabled when running on CI, see https://github.com/flutter/flutter/issues/8986" - cruncherEnabled false - } - } -} - -flutter { - source '../..' -} diff --git a/dev/benchmarks/platform_views_layout/android/app/src/main/AndroidManifest.xml b/dev/benchmarks/platform_views_layout/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index b947c94d96..0000000000 --- a/dev/benchmarks/platform_views_layout/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformView.java b/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformView.java deleted file mode 100644 index 23d755fa51..0000000000 --- a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformView.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2014 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. - -package dev.benchmarks.platform_views; - -import android.content.Context; -import android.graphics.Color; -import android.view.View; -import android.widget.TextView; -import io.flutter.plugin.platform.PlatformView; - -public class DummyPlatformView implements PlatformView { - private final TextView textView; - - @SuppressWarnings("unchecked") - DummyPlatformView(final Context context, int id) { - textView = new TextView(context); - textView.setTextSize(72); - textView.setBackgroundColor(Color.rgb(255, 255, 255)); - textView.setText("DummyPlatformView"); - } - - @Override - public View getView() { - return textView; - } - - @Override - public void dispose() {} -} diff --git a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewActivity.java b/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewActivity.java deleted file mode 100644 index 25965703eb..0000000000 --- a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewActivity.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2014 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. - -package dev.benchmarks.platform_views; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -public class DummyPlatformViewActivity extends FlutterActivity { - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - flutterEngine - .getPlatformViewsController() - .getRegistry() - .registerViewFactory("benchmarks/platform_views_layout/DummyPlatformView", new DummyPlatformViewFactory()); - } -} diff --git a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewFactory.java b/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewFactory.java deleted file mode 100644 index 08e78c72f7..0000000000 --- a/dev/benchmarks/platform_views_layout/android/app/src/main/java/dev/bechmarks/platform_views_layout/DummyPlatformViewFactory.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2014 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. - -package dev.benchmarks.platform_views; - -import android.content.Context; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StringCodec; -import io.flutter.plugin.platform.PlatformView; -import io.flutter.plugin.platform.PlatformViewFactory; -import java.nio.ByteBuffer; - -public final class DummyPlatformViewFactory extends PlatformViewFactory { - DummyPlatformViewFactory() { - super( - new MessageCodec() { - @Nullable - @Override - public ByteBuffer encodeMessage(@Nullable Object o) { - if (o instanceof String) { - return StringCodec.INSTANCE.encodeMessage((String) o); - } - return null; - } - - @Nullable - @Override - public Object decodeMessage(@Nullable ByteBuffer byteBuffer) { - return StringCodec.INSTANCE.decodeMessage(byteBuffer); - } - } - ); - } - - @SuppressWarnings("unchecked") - @Override - public PlatformView create(Context context, int id, Object args) { - return new DummyPlatformView(context, id); - } -} diff --git a/dev/benchmarks/platform_views_layout/android/build.gradle b/dev/benchmarks/platform_views_layout/android/build.gradle deleted file mode 100644 index 5df71fcf8b..0000000000 --- a/dev/benchmarks/platform_views_layout/android/build.gradle +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2014 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. - -buildscript { - repositories { - google() - jcenter() - } - - dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' - } -} - -allprojects { - repositories { - google() - jcenter() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/dev/benchmarks/platform_views_layout/android/gradle.properties b/dev/benchmarks/platform_views_layout/android/gradle.properties deleted file mode 100644 index a6738207fd..0000000000 --- a/dev/benchmarks/platform_views_layout/android/gradle.properties +++ /dev/null @@ -1,4 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true -android.enableR8=true diff --git a/dev/benchmarks/platform_views_layout/android/gradle/wrapper/gradle-wrapper.properties b/dev/benchmarks/platform_views_layout/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 296b146b73..0000000000 --- a/dev/benchmarks/platform_views_layout/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/dev/benchmarks/platform_views_layout/android/settings.gradle b/dev/benchmarks/platform_views_layout/android/settings.gradle deleted file mode 100644 index 663db3adba..0000000000 --- a/dev/benchmarks/platform_views_layout/android/settings.gradle +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright 2014 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. - -include ':app' diff --git a/dev/benchmarks/platform_views_layout/ios/Flutter/AppFrameworkInfo.plist b/dev/benchmarks/platform_views_layout/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 6b4c0f78a7..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - 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/dev/benchmarks/platform_views_layout/ios/Flutter/Flutter.xcconfig b/dev/benchmarks/platform_views_layout/ios/Flutter/Flutter.xcconfig deleted file mode 100644 index 592ceee85b..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Flutter/Flutter.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "Generated.xcconfig" diff --git a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj b/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 9488c8d44a..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,448 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 647B792C24207B8900ABA501 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 647B792B24207B8900ABA501 /* AppDelegate.m */; }; - 647B792F24207D1600ABA501 /* DummyPlatformView.m in Sources */ = {isa = PBXBuildFile; fileRef = 647B792E24207D1600ABA501 /* DummyPlatformView.m */; }; - 647B793224208A4200ABA501 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 647B793024208A4200ABA501 /* GeneratedPluginRegistrant.m */; }; - 746232561E83B9DF00CC1A5E /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 746232551E83B9DF00CC1A5E /* AppFrameworkInfo.plist */; }; - 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 647B792824207ADD00ABA501 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 647B792B24207B8900ABA501 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 647B792D24207CC400ABA501 /* DummyPlatformView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DummyPlatformView.h; sourceTree = ""; }; - 647B792E24207D1600ABA501 /* DummyPlatformView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DummyPlatformView.m; sourceTree = ""; }; - 647B793024208A4200ABA501 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 647B793124208A4200ABA501 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 746232551E83B9DF00CC1A5E /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Flutter.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Flutter.xcconfig; path = Flutter/Flutter.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 746232551E83B9DF00CC1A5E /* AppFrameworkInfo.plist */, - 9740EEB21CF90195004384FC /* Flutter.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 647B793124208A4200ABA501 /* GeneratedPluginRegistrant.h */, - 647B793024208A4200ABA501 /* GeneratedPluginRegistrant.m */, - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 97C146F11CF9000F007C117D /* Supporting Files */, - 647B792824207ADD00ABA501 /* AppDelegate.h */, - 647B792B24207B8900ABA501 /* AppDelegate.m */, - 647B792D24207CC400ABA501 /* DummyPlatformView.h */, - 647B792E24207D1600ABA501 /* DummyPlatformView.m */, - ); - path = Runner; - sourceTree = ""; - }; - 97C146F11CF9000F007C117D /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 97C146F21CF9000F007C117D /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - 9740EEB61CF901F6004384FC /* ShellScript */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0730; - ORGANIZATIONNAME = "The Flutter Authors"; - TargetAttributes = { - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 746232561E83B9DF00CC1A5E /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 9740EEB61CF901F6004384FC /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh $FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 647B792C24207B8900ABA501 /* AppDelegate.m in Sources */, - 97C146F31CF9000F007C117D /* main.m in Sources */, - 647B792F24207D1600ABA501 /* DummyPlatformView.m in Sources */, - 647B793224208A4200ABA501 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 24D15A8E21828735001BB33E /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 24D15A8F21828735001BB33E /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = ""; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = ""; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Flutter.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = ""; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 24D15A8E21828735001BB33E /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 24D15A8F21828735001BB33E /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 6cec59cc95..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003d..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.h b/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.h deleted file mode 100644 index 7d5bcd37fc..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.h +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2014 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 -#import - -@interface AppDelegate : FlutterAppDelegate - -@end diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.m b/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.m deleted file mode 100644 index a1666fd34f..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/AppDelegate.m +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2014 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. - -#include "AppDelegate.h" -#include "DummyPlatformView.h" -#include "GeneratedPluginRegistrant.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - [GeneratedPluginRegistrant registerWithRegistry:self]; - - NSObject* registrar = - [self registrarForPlugin:@"benchmarks/platform_views_layout/DummyPlatformViewPlugin"]; - - DummyPlatformViewFactory* dummyPlatformViewFactory = [[DummyPlatformViewFactory alloc] init]; - [registrar registerViewFactory:dummyPlatformViewFactory - withId:@"benchmarks/platform_views_layout/DummyPlatformView" - gestureRecognizersBlockingPolicy:FlutterPlatformViewGestureRecognizersBlockingPolicyEager]; - - // Override point for customization after application launch. - return [super application:application didFinishLaunchingWithOptions:launchOptions]; -} - -@end diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png b/dev/benchmarks/platform_views_layout/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png deleted file mode 100644 index 5d2bad850374720926b6d2d1126b3e2ef5e122ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4867 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 diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/LaunchScreen.storyboard b/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index ebf48f6039..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/Main.storyboard b/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516fb..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.h b/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.h deleted file mode 100644 index 6d21bf0417..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.h +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2014 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 - -NS_ASSUME_NONNULL_BEGIN - -@interface DummyPlatformView : NSObject - -- (instancetype)initWithFrame:(CGRect)frame - viewIdentifier:(int64_t)viewId - arguments:(id _Nullable)args - binaryMessenger:(NSObject*)messenger; - -- (UIView*)view; -@end - -@interface DummyPlatformViewFactory : NSObject -- (instancetype)initWithMessenger:(NSObject*)messenger; -@end - -NS_ASSUME_NONNULL_END diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.m b/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.m deleted file mode 100644 index c92cd0592a..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/DummyPlatformView.m +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2014 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 "DummyPlatformView.h" - -@implementation DummyPlatformViewFactory { - NSObject* _messenger; -} - -- (instancetype)initWithMessenger:(NSObject*)messenger { - self = [super init]; - if (self) { - _messenger = messenger; - } - return self; -} - -- (NSObject*)createWithFrame:(CGRect)frame - viewIdentifier:(int64_t)viewId - arguments:(id _Nullable)args { - return [[DummyPlatformView alloc] initWithFrame:frame - viewIdentifier:viewId - arguments:args - binaryMessenger:_messenger]; -} - -- (NSObject*)createArgsCodec { - return [FlutterStringCodec sharedInstance]; -} - -@end - -@implementation DummyPlatformView { - UITextView* _view; - FlutterMethodChannel* _channel; -} - -- (instancetype)initWithFrame:(CGRect)frame - viewIdentifier:(int64_t)viewId - arguments:(id _Nullable)args - binaryMessenger:(NSObject*)messenger { - if ([super init]) { - _view = [[UITextView alloc] initWithFrame:CGRectMake(0.0, 0.0, 250.0, 100.0)]; - _view.textColor = UIColor.blueColor; - _view.backgroundColor = UIColor.lightGrayColor; - [_view setFont:[UIFont systemFontOfSize:52]]; - _view.text = @"DummyPlatformView"; - } - return self; -} - -- (UIView*)view { - return _view; -} - -@end diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/Info.plist b/dev/benchmarks/platform_views_layout/ios/Runner/Info.plist deleted file mode 100644 index b52e1d4e2d..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/Info.plist +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.yourcompany.complexLayout - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - complex_layout - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - io.flutter.embedded_views_preview - - - diff --git a/dev/benchmarks/platform_views_layout/ios/Runner/main.m b/dev/benchmarks/platform_views_layout/ios/Runner/main.m deleted file mode 100644 index 8607072273..0000000000 --- a/dev/benchmarks/platform_views_layout/ios/Runner/main.m +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2014 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 -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, - NSStringFromClass([AppDelegate class])); - } -} diff --git a/dev/benchmarks/platform_views_layout/lib/main.dart b/dev/benchmarks/platform_views_layout/lib/main.dart deleted file mode 100644 index 493b4dfcbd..0000000000 --- a/dev/benchmarks/platform_views_layout/lib/main.dart +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2014 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:io'; - -import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart' show timeDilation; - -void main() { - runApp( - PlatformViewApp() - ); -} - -class PlatformViewApp extends StatefulWidget { - @override - PlatformViewAppState createState() => PlatformViewAppState(); - - static PlatformViewAppState of(BuildContext context) => context.findAncestorStateOfType(); -} - -class PlatformViewAppState extends State { - @override - Widget build(BuildContext context) { - return MaterialApp( - theme: ThemeData.light(), - title: 'Advanced Layout', - home: const PlatformViewLayout(), - ); - } - - void toggleAnimationSpeed() { - setState(() { - timeDilation = (timeDilation != 1.0) ? 1.0 : 5.0; - }); - } -} - - -class PlatformViewLayout extends StatelessWidget { - const PlatformViewLayout({ Key key }) : super(key: key); - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Platform View Scrolling Layout')), - body: ListView.builder( - key: const Key('platform-views-scroll'), // This key is used by the driver test. - itemCount: 200, - itemBuilder: (BuildContext context, int index) { - return Padding( - padding: const EdgeInsets.all(5.0), - child: Material( - elevation: (index % 5 + 1).toDouble(), - color: Colors.white, - child: Stack( - children: const [ - DummyPlatformView(), - RotationContainer(), - ], - ), - ), - ); - }, - ), - ); - } -} - -class DummyPlatformView extends StatelessWidget { - const DummyPlatformView({Key key}) : super(key: key); - - @override - Widget build(BuildContext context) { - const String viewType = 'benchmarks/platform_views_layout/DummyPlatformView'; - StatefulWidget nativeView; - if (Platform.isIOS) { - nativeView = const UiKitView( - viewType: viewType, - ); - } else if (Platform.isAndroid) { - nativeView = const AndroidView( - viewType: viewType, - ); - } else { - assert(false, 'Invalid platform'); - } - return Container( - color: Colors.purple, - height: 200.0, - child: nativeView, - ); - } -} - -class RotationContainer extends StatefulWidget { - const RotationContainer({Key key}) : super(key: key); - - @override - _RotationContainerState createState() => _RotationContainerState(); -} - -class _RotationContainerState extends State - with SingleTickerProviderStateMixin { - AnimationController _rotationController; - - @override - void initState() { - super.initState(); - _rotationController = AnimationController( - vsync: this, - duration: const Duration(seconds: 1), - value: 1, - ); - _rotationController.repeat(); - } - @override - Widget build(BuildContext context) { - return RotationTransition( - turns: Tween(begin: 0.0, end: 1.0).animate(_rotationController), - child: Container( - color: Colors.purple, - width: 50.0, - height: 50.0, - ), - ); - } -} diff --git a/dev/benchmarks/platform_views_layout/pubspec.yaml b/dev/benchmarks/platform_views_layout/pubspec.yaml deleted file mode 100644 index d6f6896325..0000000000 --- a/dev/benchmarks/platform_views_layout/pubspec.yaml +++ /dev/null @@ -1,96 +0,0 @@ -name: platform_views_layout -description: A benchmark for platform views. - -environment: - # The pub client defaults to an <2.0.0 sdk constraint which we need to explicitly overwrite. - sdk: ">=2.0.0-dev.68.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - flutter_driver: - sdk: flutter - - # To change the version of the gallery assets, edit - # //packages/flutter_tools/lib/src/commands/update_packages.dart - # and run - # flutter update-packages --force-upgrade - flutter_gallery_assets: 0.1.9+2 - - archive: 2.0.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 1.5.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - charcode: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.14.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 5.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - intl: 0.16.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - json_rpc_2: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 1.4.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.5.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.9.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - sync_http: 0.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vector_math: 2.0.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service_client: 0.2.6+2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - -dev_dependencies: - flutter_test: - sdk: flutter - test: 1.14.2 - - _fe_analyzer_shared: 1.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 0.39.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 0.13.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - csslib: 0.16.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - html: 0.14.0+3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http: 0.12.0+4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - image: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 0.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.1+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 0.11.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 0.9.6+3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - multi_server_socket: 1.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - node_interop: 1.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - node_io: 1.0.1+2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - node_preamble: 1.4.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_resolver: 1.0.10 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pedantic: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - petitparser: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pool: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - quiver: 2.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 0.7.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_packages_handler: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 0.2.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 0.2.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.2.15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 0.9.7+14 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webkit_inspection_protocol: 0.5.0+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - xml: 3.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - -flutter: - uses-material-design: true - assets: - - packages/flutter_gallery_assets/people/square/ali.png - - packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png - -# PUBSPEC CHECKSUM: 2d9e diff --git a/dev/benchmarks/platform_views_layout/test_driver/scroll_perf.dart b/dev/benchmarks/platform_views_layout/test_driver/scroll_perf.dart deleted file mode 100644 index 68d352aef3..0000000000 --- a/dev/benchmarks/platform_views_layout/test_driver/scroll_perf.dart +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2014 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 'package:flutter_driver/driver_extension.dart'; -import 'package:platform_views_layout/main.dart' as app; - -void main() { - enableFlutterDriverExtension(); - app.main(); -} diff --git a/dev/benchmarks/platform_views_layout/test_driver/scroll_perf_test.dart b/dev/benchmarks/platform_views_layout/test_driver/scroll_perf_test.dart deleted file mode 100644 index 8d7ddabd75..0000000000 --- a/dev/benchmarks/platform_views_layout/test_driver/scroll_perf_test.dart +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2014 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:async'; - -import 'package:flutter_driver/flutter_driver.dart'; -import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; - -void main() { - group('scrolling performance test', () { - FlutterDriver driver; - - setUpAll(() async { - driver = await FlutterDriver.connect(); - - await driver.waitUntilFirstFrameRasterized(); - }); - - tearDownAll(() async { - if (driver != null) - driver.close(); - }); - - Future testScrollPerf(String listKey, String summaryName) async { - // The slight initial delay avoids starting the timing during a - // period of increased load on the device. Without this delay, the - // benchmark has greater noise. - // See: https://github.com/flutter/flutter/issues/19434 - await Future.delayed(const Duration(milliseconds: 250)); - - await driver.forceGC(); - - final Timeline timeline = await driver.traceAction(() async { - // Find the scrollable stock list - final SerializableFinder list = find.byValueKey(listKey); - expect(list, isNotNull); - - // Scroll down - for (int i = 0; i < 5; i += 1) { - await driver.scroll(list, 0.0, -300.0, const Duration(milliseconds: 300)); - await Future.delayed(const Duration(milliseconds: 500)); - } - - // Scroll up - for (int i = 0; i < 5; i += 1) { - await driver.scroll(list, 0.0, 300.0, const Duration(milliseconds: 300)); - await Future.delayed(const Duration(milliseconds: 500)); - } - }); - - final TimelineSummary summary = TimelineSummary.summarize(timeline); - summary.writeSummaryToFile(summaryName, pretty: true); - summary.writeTimelineToFile(summaryName, pretty: true); - } - - test('platform_views_scroll_perf', () async { - // Disable frame sync, since there are ongoing animations. - await driver.runUnsynchronized(() async { - await testScrollPerf('platform-views-scroll', 'platform_views_scroll_perf'); - }); - }); - }); -} diff --git a/dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart b/dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart deleted file mode 100644 index 9e683fbc68..0000000000 --- a/dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2014 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:async'; - -import 'package:flutter_devicelab/tasks/perf_tests.dart'; -import 'package:flutter_devicelab/framework/adb.dart'; -import 'package:flutter_devicelab/framework/framework.dart'; - -Future main() async { - deviceOperatingSystem = DeviceOperatingSystem.android; - await task(createPlatformViewsScrollPerfTest()); -} diff --git a/dev/devicelab/bin/tasks/platform_views_scroll_perf_ios__timeline_summary.dart b/dev/devicelab/bin/tasks/platform_views_scroll_perf_ios__timeline_summary.dart deleted file mode 100644 index 9e683fbc68..0000000000 --- a/dev/devicelab/bin/tasks/platform_views_scroll_perf_ios__timeline_summary.dart +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2014 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:async'; - -import 'package:flutter_devicelab/tasks/perf_tests.dart'; -import 'package:flutter_devicelab/framework/adb.dart'; -import 'package:flutter_devicelab/framework/framework.dart'; - -Future main() async { - deviceOperatingSystem = DeviceOperatingSystem.android; - await task(createPlatformViewsScrollPerfTest()); -} diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 1c4e1349a0..85007eb33c 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -30,14 +30,6 @@ TaskFunction createTilesScrollPerfTest() { ).run; } -TaskFunction createPlatformViewsScrollPerfTest() { - return PerfTest( - '${flutterDirectory.path}/dev/benchmarks/platform_views_layout', - 'test_driver/scroll_perf.dart', - 'platform_views_scroll_perf', - ).run; -} - TaskFunction createHomeScrollPerfTest() { return PerfTest( '${flutterDirectory.path}/dev/integration_tests/flutter_gallery', diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 92504f49f1..6d091de9a8 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -147,12 +147,6 @@ tasks: stage: devicelab required_agent_capabilities: ["mac/android"] - platform_views_scroll_perf__timeline_summary: - description: > - Measures the runtime performance of platform views in the Complex Layout sample app on Android. - stage: devicelab_ios - required_agent_capabilities: ["linux/android"] - home_scroll_perf__timeline_summary: description: > Measures the runtime performance of scrolling the material page in the @@ -445,12 +439,6 @@ tasks: # TODO(keyonghan): change with https://github.com/flutter/flutter/issues/50383 required_agent_capabilities: ["mac/ios"] - platform_views_scroll_perf_ios__timeline_summary: - description: > - Measures the runtime performance of platform views in the Complex Layout sample app on iPhone 6. - stage: devicelab_ios - required_agent_capabilities: ["mac/ios"] - flutter_gallery_ios32__start_up: description: > Measures the startup time of the Flutter Gallery app on 32-bit iOS (iPhone 4S).