Skip to content

Commit ffb618d

Browse files
Tim MaffettTim Maffett
Tim Maffett
authored and
Tim Maffett
committed
macos work
1 parent 5798e11 commit ffb618d

31 files changed

+1397
-13
lines changed

example/macos/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Flutter-related
2+
**/Flutter/ephemeral/
3+
**/Pods/
4+
5+
# Xcode-related
6+
**/dgph
7+
**/xcuserdata/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2+
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2+
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
import FlutterMacOS
6+
import Foundation
7+
8+
import custom_mouse_cursor
9+
import path_provider_foundation
10+
11+
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
12+
CustomMouseCursorPlugin.register(with: registry.registrar(forPlugin: "CustomMouseCursorPlugin"))
13+
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
14+
}

example/macos/Podfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
platform :osx, '10.14'
2+
3+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5+
6+
project 'Runner', {
7+
'Debug' => :debug,
8+
'Profile' => :release,
9+
'Release' => :release,
10+
}
11+
12+
def flutter_root
13+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14+
unless File.exist?(generated_xcode_build_settings_path)
15+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16+
end
17+
18+
File.foreach(generated_xcode_build_settings_path) do |line|
19+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
20+
return matches[1].strip if matches
21+
end
22+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23+
end
24+
25+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26+
27+
flutter_macos_podfile_setup
28+
29+
target 'Runner' do
30+
use_frameworks!
31+
use_modular_headers!
32+
33+
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34+
end
35+
36+
post_install do |installer|
37+
installer.pods_project.targets.each do |target|
38+
flutter_additional_macos_build_settings(target)
39+
end
40+
end

example/macos/Podfile.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
PODS:
2+
- custom_mouse_cursor (0.0.1):
3+
- FlutterMacOS
4+
- FlutterMacOS (1.0.0)
5+
- path_provider_foundation (0.0.1):
6+
- Flutter
7+
- FlutterMacOS
8+
9+
DEPENDENCIES:
10+
- custom_mouse_cursor (from `Flutter/ephemeral/.symlinks/plugins/custom_mouse_cursor/macos`)
11+
- FlutterMacOS (from `Flutter/ephemeral`)
12+
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
13+
14+
EXTERNAL SOURCES:
15+
custom_mouse_cursor:
16+
:path: Flutter/ephemeral/.symlinks/plugins/custom_mouse_cursor/macos
17+
FlutterMacOS:
18+
:path: Flutter/ephemeral
19+
path_provider_foundation:
20+
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
21+
22+
SPEC CHECKSUMS:
23+
custom_mouse_cursor: 19b9cb1bcd2e792e326c15e32b48f8dba06132da
24+
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
25+
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
26+
27+
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
28+
29+
COCOAPODS: 1.12.0

0 commit comments

Comments
 (0)