Skip to content

Commit

Permalink
chore: test on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Feb 4, 2024
1 parent ae9e273 commit f8f1003
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions macos/Flutter/Flutter-Debug.xcconfig
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"
1 change: 1 addition & 0 deletions macos/Flutter/Flutter-Release.xcconfig
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"
43 changes: 43 additions & 0 deletions macos/Podfile
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
40 changes: 24 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -497,30 +497,38 @@ packages:
enough_mail:
dependency: "direct main"
description:
path: "../enough_mail"
relative: true
source: path
path: "."
ref: HEAD
resolved-ref: "4acff84ef3e1ab074748b84ea8a374901fc872c7"
url: "https://github.com/Enough-Software/enough_mail.git"
source: git
version: "2.1.6"
enough_mail_app:
dependency: "direct main"
description:
path: "../enough_mail_app"
relative: true
source: path
path: "."
ref: HEAD
resolved-ref: "3fa482b6bbc4630b2de896aa2653a64055efa695"
url: "https://github.com/Enough-Software/enough_mail_app.git"
source: git
version: "1.0.0+96"
enough_mail_flutter:
dependency: "direct main"
description:
path: "../enough_mail_flutter"
relative: true
source: path
path: "."
ref: HEAD
resolved-ref: "38eb65ca7a34c2a7695618ed1301d7159c4d9deb"
url: "https://github.com/Enough-Software/enough_mail_flutter.git"
source: git
version: "2.1.0"
enough_mail_html:
dependency: "direct main"
description:
path: "../enough_mail_html"
relative: true
source: path
path: "."
ref: HEAD
resolved-ref: c7702322848a3fcc12e18225edccc5a2bdf318d5
url: "https://github.com/Enough-Software/enough_mail_html.git"
source: git
version: "2.0.1"
enough_mail_icalendar:
dependency: "direct main"
Expand Down Expand Up @@ -1932,10 +1940,10 @@ packages:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: b99ca8d8bae9c6b43d568218691aa537fb0aeae1d7d34eadf112a6aa36d26506
sha256: "4d062ad505390ecef1c4bfb6001cd857a51e00912cc9dfb66edb1886a9ebd80c"
url: "https://pub.dev"
source: hosted
version: "3.11.0"
version: "3.10.2"
win32:
dependency: transitive
description:
Expand Down Expand Up @@ -1977,5 +1985,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.16.6"
dart: ">=3.2.0 <4.0.0"
flutter: ">=3.16.0"

0 comments on commit f8f1003

Please sign in to comment.