Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a6b39a23
Unverified
Commit
a6b39a23
authored
Apr 14, 2020
by
Jenn Magder
Committed by
GitHub
Apr 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Runner project base configuration (#54691)
parent
ddf63a8b
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
260 additions
and
84 deletions
+260
-84
project.pbxproj
...marks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...arks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...latform_views_layout/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...rks/test_apps/stocks/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
..._tests/android_views/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...ation_tests/channels/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...ration_tests/codegen/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...on_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...ration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
+0
-4
project.pbxproj
...iver_screenshot_test/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...ests/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
..._platform_view_tests/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...platform_interaction/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...s/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/catalog/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/image_list/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/layers/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...les/platform_channel/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
...atform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
+0
-3
project.pbxproj
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
+0
-3
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+2
-0
project_base_configuration_migration.dart
.../ios/migrations/project_base_configuration_migration.dart
+91
-0
remove_framework_link_and_embedding_migration.dart
...ations/remove_framework_link_and_embedding_migration.dart
+1
-1
xcode_build_system_migration.dart
.../lib/src/ios/migrations/xcode_build_system_migration.dart
+1
-1
project.pbxproj.tmpl
...s/app/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+0
-3
project.pbxproj.tmpl
.../app/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+0
-3
project.pbxproj.tmpl
..._app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
+0
-1
ios_project_migration_test.dart
...ls/test/general.shard/ios/ios_project_migration_test.dart
+165
-2
No files found.
dev/benchmarks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -214,7 +214,6 @@
/* Begin XCBuildConfiguration section */
24D15A8E21828735001BB33E
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -274,7 +273,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -320,7 +318,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/benchmarks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -245,7 +245,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -317,7 +316,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -371,7 +369,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -232,7 +232,6 @@
/* Begin XCBuildConfiguration section */
24D15A8E21828735001BB33E
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -293,7 +292,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -339,7 +337,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/benchmarks/test_apps/stocks/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -252,7 +252,6 @@
/* Begin XCBuildConfiguration section */
2445AC6C21828DE2009C639E
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -323,7 +322,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -379,7 +377,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/android_views/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -314,7 +314,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -387,7 +386,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -443,7 +441,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/channels/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -244,7 +244,6 @@
/* Begin XCBuildConfiguration section */
2405AE2A21828EB6004EB9E9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -307,7 +306,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -355,7 +353,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/codegen/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -245,7 +245,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -317,7 +316,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -371,7 +369,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -234,7 +234,6 @@
/* Begin XCBuildConfiguration section */
2488E40D21828E6900B73A3D
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -297,7 +296,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -345,7 +343,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -244,7 +244,6 @@
/* Begin XCBuildConfiguration section */
744E33D21F45D145007AB5E2
/* Debug Paid */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -314,7 +313,6 @@
};
744E33D41F45D159007AB5E2
/* Release Paid */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -378,7 +376,6 @@
};
97C147031CF9000F007C117D
/* Debug Free */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -427,7 +424,6 @@
};
97C147041CF9000F007C117D
/* Release Free */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/flutter_driver_screenshot_test/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -307,7 +307,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -384,7 +383,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -440,7 +438,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -305,7 +305,6 @@
/* Begin XCBuildConfiguration section */
244B5B82218289A200D656CE
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -376,7 +375,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -432,7 +430,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -244,7 +244,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -322,7 +321,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -378,7 +376,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -250,7 +250,6 @@
/* Begin XCBuildConfiguration section */
24C0275721828E8D00A1EB9E
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -313,7 +312,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -361,7 +359,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -310,7 +310,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -382,7 +381,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -436,7 +434,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -248,7 +248,6 @@
/* Begin XCBuildConfiguration section */
24F0292421828E1300CF74D3
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -311,7 +310,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -359,7 +357,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -241,7 +241,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -318,7 +317,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -374,7 +372,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/catalog/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -260,7 +260,6 @@
/* Begin XCBuildConfiguration section */
24FC0D0321828CE100FD135A
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -331,7 +330,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -387,7 +385,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -316,7 +316,6 @@
/* Begin XCBuildConfiguration section */
2418C3BA21828D0400D8F514
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -387,7 +386,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -443,7 +441,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -252,7 +252,6 @@
/* Begin XCBuildConfiguration section */
2436755321828D23008C705F
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -323,7 +322,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -380,7 +378,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/image_list/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -245,7 +245,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -317,7 +316,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -371,7 +369,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/layers/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -244,7 +244,6 @@
/* Begin XCBuildConfiguration section */
2423F41F21828D4200E5E49C
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -315,7 +314,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -371,7 +369,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -252,7 +252,6 @@
/* Begin XCBuildConfiguration section */
2460D06F21828D6700436BDB
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -323,7 +322,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -379,7 +377,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/platform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -249,7 +249,6 @@
/* Begin XCBuildConfiguration section */
2470A27921828D8700ACAC9C
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -324,7 +323,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -380,7 +378,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
View file @
a6b39a23
...
...
@@ -315,7 +315,6 @@
/* Begin XCBuildConfiguration section */
247F125D21828DC300C50710
/* Profile */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -387,7 +386,6 @@
};
97C147031CF9000F007C117D
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
@@ -443,7 +441,6 @@
};
97C147041CF9000F007C117D
/* Release */
=
{
isa
=
XCBuildConfiguration
;
baseConfigurationReference
=
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
CLANG_ANALYZER_NONNULL
=
YES
;
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
a6b39a23
...
...
@@ -25,6 +25,7 @@ import '../project.dart';
import
'../reporting/reporting.dart'
;
import
'code_signing.dart'
;
import
'migrations/ios_migrator.dart'
;
import
'migrations/project_base_configuration_migration.dart'
;
import
'migrations/remove_framework_link_and_embedding_migration.dart'
;
import
'migrations/xcode_build_system_migration.dart'
;
import
'xcodeproj.dart'
;
...
...
@@ -94,6 +95,7 @@ Future<XcodeBuildResult> buildXcodeProject({
final
List
<
IOSMigrator
>
migrators
=
<
IOSMigrator
>[
RemoveFrameworkLinkAndEmbeddingMigration
(
app
.
project
,
globals
.
logger
,
globals
.
xcode
,
globals
.
flutterUsage
),
XcodeBuildSystemMigration
(
app
.
project
,
globals
.
logger
),
ProjectBaseConfigurationMigration
(
app
.
project
,
globals
.
logger
),
];
final
IOSMigration
migration
=
IOSMigration
(
migrators
);
...
...
packages/flutter_tools/lib/src/ios/migrations/project_base_configuration_migration.dart
0 → 100644
View file @
a6b39a23
// 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
'../../base/file_system.dart'
;
import
'../../base/logger.dart'
;
import
'../../project.dart'
;
import
'ios_migrator.dart'
;
// The Runner target should inherit its build configuration from Generated.xcconfig.
// However the top-level Runner project should not inherit any build configuration so
// the Flutter build settings do not stomp on non-Flutter targets.
class
ProjectBaseConfigurationMigration
extends
IOSMigrator
{
ProjectBaseConfigurationMigration
(
IosProject
project
,
Logger
logger
)
:
_xcodeProjectInfoFile
=
project
.
xcodeProjectInfoFile
,
super
(
logger
);
final
File
_xcodeProjectInfoFile
;
@override
bool
migrate
()
{
if
(!
_xcodeProjectInfoFile
.
existsSync
())
{
logger
.
printTrace
(
'Xcode project not found, skipping Runner project build settings and configuration migration'
);
return
true
;
}
final
String
originalProjectContents
=
_xcodeProjectInfoFile
.
readAsStringSync
();
// Example:
//
// 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
// isa = XCConfigurationList;
// buildConfigurations = (
// 97C147031CF9000F007C1171 /* Debug */,
// 97C147041CF9000F007C1171 /* Release */,
// 2436755321828D23008C7051 /* Profile */,
// );
final
RegExp
projectBuildConfigurationList
=
RegExp
(
r'\/\* Build configuration list for PBXProject "Runner" \*\/ = {\s*isa = XCConfigurationList;\s*buildConfigurations = \(\s*(.*) \/\* Debug \*\/,\s*(.*) \/\* Release \*\/,\s*(.*) \/\* Profile \*\/,'
,
multiLine:
true
,
);
final
RegExpMatch
match
=
projectBuildConfigurationList
.
firstMatch
(
originalProjectContents
);
// If the PBXProject "Runner" build configuration identifiers can't be parsed, default to the generated template identifiers.
final
String
debugIdentifier
=
match
?.
group
(
1
)
??
'97C147031CF9000F007C117D'
;
final
String
releaseIdentifier
=
match
?.
group
(
2
)
??
'97C147041CF9000F007C117D'
;
final
String
profileIdentifier
=
match
?.
group
(
3
)
??
'249021D3217E4FDB00AE95B9'
;
// Debug
final
String
debugBaseConfigurationOriginal
=
'''
$debugIdentifier
/* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
'''
;
final
String
debugBaseConfigurationReplacement
=
'''
$debugIdentifier
/* Debug */ = {
isa = XCBuildConfiguration;
'''
;
String
newProjectContents
=
originalProjectContents
.
replaceAll
(
debugBaseConfigurationOriginal
,
debugBaseConfigurationReplacement
);
// Profile
final
String
profileBaseConfigurationOriginal
=
'''
$profileIdentifier
/* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
'''
;
final
String
profileBaseConfigurationReplacement
=
'''
$profileIdentifier
/* Profile */ = {
isa = XCBuildConfiguration;
'''
;
newProjectContents
=
newProjectContents
.
replaceAll
(
profileBaseConfigurationOriginal
,
profileBaseConfigurationReplacement
);
// Release
final
String
releaseBaseConfigurationOriginal
=
'''
$releaseIdentifier
/* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
'''
;
final
String
releaseBaseConfigurationReplacement
=
'''
$releaseIdentifier
/* Release */ = {
isa = XCBuildConfiguration;
'''
;
newProjectContents
=
newProjectContents
.
replaceAll
(
releaseBaseConfigurationOriginal
,
releaseBaseConfigurationReplacement
);
if
(
originalProjectContents
!=
newProjectContents
)
{
logger
.
printStatus
(
'Project base configurations detected, removing.'
);
_xcodeProjectInfoFile
.
writeAsStringSync
(
newProjectContents
.
toString
());
}
return
true
;
}
}
packages/flutter_tools/lib/src/ios/migrations/remove_framework_link_and_embedding_migration.dart
View file @
a6b39a23
...
...
@@ -31,7 +31,7 @@ class RemoveFrameworkLinkAndEmbeddingMigration extends IOSMigrator {
@override
bool
migrate
()
{
if
(!
_xcodeProjectInfoFile
.
existsSync
())
{
logger
.
printTrace
(
'Xcode project not found, skipping migration'
);
logger
.
printTrace
(
'Xcode project not found, skipping
framework link and embedding
migration'
);
return
true
;
}
...
...
packages/flutter_tools/lib/src/ios/migrations/xcode_build_system_migration.dart
View file @
a6b39a23
...
...
@@ -22,7 +22,7 @@ class XcodeBuildSystemMigration extends IOSMigrator {
@override
bool
migrate
()
{
if
(!
_xcodeWorkspaceSharedSettings
.
existsSync
())
{
logger
.
printTrace
(
'Xcode workspace settings not found, skipping migration'
);
logger
.
printTrace
(
'Xcode workspace settings not found, skipping
build system
migration'
);
return
true
;
}
...
...
packages/flutter_tools/templates/app/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
a6b39a23
...
...
@@ -245,7 +245,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
@@ -319,7 +318,6 @@
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
@@ -375,7 +373,6 @@
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
packages/flutter_tools/templates/app/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
a6b39a23
...
...
@@ -241,7 +241,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
@@ -318,7 +317,6 @@
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
@@ -374,7 +372,6 @@
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
View file @
a6b39a23
...
...
@@ -243,7 +243,6 @@
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 74974046213559DB008C567A /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
...
...
packages/flutter_tools/test/general.shard/ios/ios_project_migration_test.dart
View file @
a6b39a23
...
...
@@ -5,6 +5,7 @@
import
'package:file/file.dart'
;
import
'package:file/memory.dart'
;
import
'package:flutter_tools/src/ios/migrations/ios_migrator.dart'
;
import
'package:flutter_tools/src/ios/migrations/project_base_configuration_migration.dart'
;
import
'package:meta/meta.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:platform/platform.dart'
;
...
...
@@ -74,7 +75,7 @@ void main () {
expect
(
xcodeProjectInfoFile
.
existsSync
(),
isFalse
);
expect
(
testLogger
.
traceText
,
contains
(
'Xcode project not found, skipping migration'
));
expect
(
testLogger
.
traceText
,
contains
(
'Xcode project not found, skipping
framework link and embedding
migration'
));
expect
(
testLogger
.
statusText
,
isEmpty
);
});
...
...
@@ -289,7 +290,7 @@ keep this 2
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeWorkspaceSharedSettings
.
existsSync
(),
isFalse
);
expect
(
testLogger
.
traceText
,
contains
(
'Xcode workspace settings not found, skipping migration'
));
expect
(
testLogger
.
traceText
,
contains
(
'Xcode workspace settings not found, skipping
build system
migration'
));
expect
(
testLogger
.
statusText
,
isEmpty
);
});
...
...
@@ -336,6 +337,168 @@ keep this 2
expect
(
testLogger
.
statusText
,
contains
(
'Legacy build system detected, removing'
));
});
});
group
(
'remove Runner project base configuration'
,
()
{
MemoryFileSystem
memoryFileSystem
;
BufferLogger
testLogger
;
MockIosProject
mockIosProject
;
File
xcodeProjectInfoFile
;
setUp
(()
{
memoryFileSystem
=
MemoryFileSystem
();
xcodeProjectInfoFile
=
memoryFileSystem
.
file
(
'project.pbxproj'
);
testLogger
=
BufferLogger
(
terminal:
AnsiTerminal
(
stdio:
null
,
platform:
const
LocalPlatform
(),
),
outputPreferences:
OutputPreferences
.
test
(),
);
mockIosProject
=
MockIosProject
();
when
(
mockIosProject
.
xcodeProjectInfoFile
).
thenReturn
(
xcodeProjectInfoFile
);
});
testWithoutContext
(
'skipped if files are missing'
,
()
{
final
ProjectBaseConfigurationMigration
iosProjectMigration
=
ProjectBaseConfigurationMigration
(
mockIosProject
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
existsSync
(),
isFalse
);
expect
(
testLogger
.
traceText
,
contains
(
'Xcode project not found, skipping Runner project build settings and configuration migration'
));
expect
(
testLogger
.
statusText
,
isEmpty
);
});
testWithoutContext
(
'skipped if nothing to upgrade'
,
()
{
const
String
contents
=
'Nothing to upgrade'
;
xcodeProjectInfoFile
.
writeAsStringSync
(
contents
);
final
DateTime
projectLastModified
=
xcodeProjectInfoFile
.
lastModifiedSync
();
final
ProjectBaseConfigurationMigration
iosProjectMigration
=
ProjectBaseConfigurationMigration
(
mockIosProject
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
lastModifiedSync
(),
projectLastModified
);
expect
(
xcodeProjectInfoFile
.
readAsStringSync
(),
contents
);
expect
(
testLogger
.
statusText
,
isEmpty
);
});
testWithoutContext
(
'Xcode project is migrated with template identifiers'
,
()
{
xcodeProjectInfoFile
.
writeAsStringSync
(
'''
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
keep this 1
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
keep this 2
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
keep this 3
'''
);
final
ProjectBaseConfigurationMigration
iosProjectMigration
=
ProjectBaseConfigurationMigration
(
mockIosProject
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
readAsStringSync
(),
'''
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
keep this 1
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
keep this 2
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
keep this 3
'''
);
expect
(
testLogger
.
statusText
,
contains
(
'Project base configurations detected, removing.'
));
});
testWithoutContext
(
'Xcode project is migrated with custom identifiers'
,
()
{
xcodeProjectInfoFile
.
writeAsStringSync
(
'''
97C147031CF9000F007C1171 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
2436755321828D23008C7051 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
97C147041CF9000F007C1171 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
/* Begin XCConfigurationList section */
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C1171 /* Debug */,
97C147041CF9000F007C1171 /* Release */,
2436755321828D23008C7051 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
2436755421828D23008C705F /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
'''
);
final
ProjectBaseConfigurationMigration
iosProjectMigration
=
ProjectBaseConfigurationMigration
(
mockIosProject
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
readAsStringSync
(),
'''
97C147031CF9000F007C1171 /* Debug */ = {
isa = XCBuildConfiguration;
2436755321828D23008C7051 /* Profile */ = {
isa = XCBuildConfiguration;
97C147041CF9000F007C1171 /* Release */ = {
isa = XCBuildConfiguration;
/* Begin XCConfigurationList section */
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C1171 /* Debug */,
97C147041CF9000F007C1171 /* Release */,
2436755321828D23008C7051 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
2436755421828D23008C705F /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
'''
);
expect
(
testLogger
.
statusText
,
contains
(
'Project base configurations detected, removing.'
));
});
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment