Skip to content

Commit

Permalink
Add performance benchmarks (1/2) (flutter#20)
Browse files Browse the repository at this point in the history
* Create transitions_perf.dart

* Add flutter_driver and test dependencies

* Pass localizations instead of BuildContext to demos

Also add categories to demos and fix naming conflicts

* Create WIP transitions_perf_test.dart

* Updates

* Update transitions_perf.dart

* Update pubspec.lock

* Update iOS Podfile

* Update project.pbxproj

* Rename GalleryDemoCategory.reference to other

* Allow extension methods by bumping up sdk

* Update macOS Podfile

* Obtain nativeLocaleNames directly

* Specify category for demos instead of title

* Add extension to GalleryDemoCategory to get name and display title

* Add back and list value keys

* Obtain demo descriptions cleanly

* Add value keys to demos

* studies returns a map and is used

* Add more ValueKeys

* Rename reference to other demos

* Fix categories collapsing themselves

* Delete transitions_perf_test.dart

* Edit copyright

* Use allGalleryDemos

* Update demos.dart

* Update pubspec

* Name extension for it to be available globally

* Use strings instead of symbols for study demos

* Create pubspec.lock

Co-authored-by: guidezpl <guidezpl@users.noreply.github.com>
Former-commit-id: a679fa8
  • Loading branch information
guidezpl and guidezpl committed Mar 25, 2020
1 parent 23bdef6 commit 2dfa713
Show file tree
Hide file tree
Showing 14 changed files with 484 additions and 106 deletions.
5 changes: 1 addition & 4 deletions ios/Podfile
Expand Up @@ -35,7 +35,7 @@ end
target 'Runner' do
use_frameworks!
use_modular_headers!

# Flutter Pod

copied_flutter_dir = File.join(__dir__, 'Flutter')
Expand Down Expand Up @@ -78,9 +78,6 @@ target 'Runner' do
end
end

# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
Expand Down
10 changes: 8 additions & 2 deletions ios/Podfile.lock
Expand Up @@ -4,6 +4,8 @@ PODS:
- Flutter
- path_provider (0.0.1):
- Flutter
- path_provider_macos (0.0.1):
- Flutter
- shared_preferences (0.0.1):
- Flutter
- shared_preferences_macos (0.0.1):
Expand All @@ -21,6 +23,7 @@ DEPENDENCIES:
- Flutter (from `Flutter`)
- package_info (from `.symlinks/plugins/package_info/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
Expand All @@ -35,6 +38,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/package_info/ios"
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
path_provider_macos:
:path: ".symlinks/plugins/path_provider_macos/ios"
shared_preferences:
:path: ".symlinks/plugins/shared_preferences/ios"
shared_preferences_macos:
Expand All @@ -52,13 +57,14 @@ SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
package_info: 48b108e75b8802c2d5e126f208ef540561c98aef
path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01
shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
url_launcher: a1c0cc845906122c4784c542523d8cacbded5626
url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c

PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a

COCOAPODS: 1.8.4
COCOAPODS: 1.9.1
11 changes: 11 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -213,9 +213,20 @@
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../Flutter/Flutter.framework",
"${BUILT_PRODUCTS_DIR}/package_info/package_info.framework",
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down

0 comments on commit 2dfa713

Please sign in to comment.