-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: automatic Flutter-generated changes for iOS and macOS (#210)
* refactor(macos): replace deprecated `@NSApplicationMain` with `@main` Automatic update by Flutter * chore(ios/macos): integrate CocoaPods for dependency management The following changes were automatically generated by Flutter: - Add Podfile configurations to iOS and macOS projects - Update Xcode project settings for CocoaPods usage - Upgrade macOS Runner scheme to Xcode 15.1 - Create Podfile and Podfile.lock files in iOS and macOS directories
- Loading branch information
1 parent
da60ef7
commit 2d1bcbb
Showing
11 changed files
with
267 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Uncomment this line to define a global platform for your project | ||
# platform :ios, '12.0' | ||
|
||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
|
||
project 'Runner', { | ||
'Debug' => :debug, | ||
'Profile' => :release, | ||
'Release' => :release, | ||
} | ||
|
||
def flutter_root | ||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) | ||
unless File.exist?(generated_xcode_build_settings_path) | ||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" | ||
end | ||
|
||
File.foreach(generated_xcode_build_settings_path) do |line| | ||
matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
return matches[1].strip if matches | ||
end | ||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" | ||
end | ||
|
||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
|
||
flutter_ios_podfile_setup | ||
|
||
target 'Runner' do | ||
use_frameworks! | ||
use_modular_headers! | ||
|
||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | ||
target 'RunnerTests' do | ||
inherit! :search_paths | ||
end | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_ios_build_settings(target) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "ephemeral/Flutter-Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "ephemeral/Flutter-Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
platform :osx, '10.14' | ||
|
||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
|
||
project 'Runner', { | ||
'Debug' => :debug, | ||
'Profile' => :release, | ||
'Release' => :release, | ||
} | ||
|
||
def flutter_root | ||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) | ||
unless File.exist?(generated_xcode_build_settings_path) | ||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" | ||
end | ||
|
||
File.foreach(generated_xcode_build_settings_path) do |line| | ||
matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
return matches[1].strip if matches | ||
end | ||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" | ||
end | ||
|
||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
|
||
flutter_macos_podfile_setup | ||
|
||
target 'Runner' do | ||
use_frameworks! | ||
use_modular_headers! | ||
|
||
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) | ||
target 'RunnerTests' do | ||
inherit! :search_paths | ||
end | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_macos_build_settings(target) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
PODS: | ||
- FlutterMacOS (1.0.0) | ||
- isar_flutter_libs (1.0.0): | ||
- FlutterMacOS | ||
- package_info_plus (0.0.1): | ||
- FlutterMacOS | ||
- path_provider_foundation (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- pdfrx (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- printing (1.0.0): | ||
- FlutterMacOS | ||
- screen_retriever (0.0.1): | ||
- FlutterMacOS | ||
- shared_preferences_foundation (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- url_launcher_macos (0.0.1): | ||
- FlutterMacOS | ||
- window_manager (0.2.0): | ||
- FlutterMacOS | ||
|
||
DEPENDENCIES: | ||
- FlutterMacOS (from `Flutter/ephemeral`) | ||
- isar_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/isar_flutter_libs/macos`) | ||
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) | ||
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) | ||
- pdfrx (from `Flutter/ephemeral/.symlinks/plugins/pdfrx/darwin`) | ||
- printing (from `Flutter/ephemeral/.symlinks/plugins/printing/macos`) | ||
- screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`) | ||
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) | ||
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) | ||
- window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`) | ||
|
||
EXTERNAL SOURCES: | ||
FlutterMacOS: | ||
:path: Flutter/ephemeral | ||
isar_flutter_libs: | ||
:path: Flutter/ephemeral/.symlinks/plugins/isar_flutter_libs/macos | ||
package_info_plus: | ||
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos | ||
path_provider_foundation: | ||
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin | ||
pdfrx: | ||
:path: Flutter/ephemeral/.symlinks/plugins/pdfrx/darwin | ||
printing: | ||
:path: Flutter/ephemeral/.symlinks/plugins/printing/macos | ||
screen_retriever: | ||
:path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos | ||
shared_preferences_foundation: | ||
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin | ||
url_launcher_macos: | ||
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos | ||
window_manager: | ||
:path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos | ||
|
||
SPEC CHECKSUMS: | ||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 | ||
isar_flutter_libs: 43385c99864c168fadba7c9adeddc5d38838ca6a | ||
package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c | ||
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c | ||
pdfrx: 8c711fadb19f76c70e3326ceaa718fe4b6703c37 | ||
printing: 1dd6a1fce2209ec240698e2439a4adbb9b427637 | ||
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 | ||
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 | ||
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 | ||
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8 | ||
|
||
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 | ||
|
||
COCOAPODS: 1.15.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.