Skip to content

Commit eb5e1fe

Browse files
author
Unbreathable
committed
MacOS support
1 parent e1e8c50 commit eb5e1fe

32 files changed

+519
-778
lines changed

.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "68bfaea224880b488c617afe30ab12091ea8fa4e"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
17+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
18+
- platform: android
19+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
20+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
21+
- platform: ios
22+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
23+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
24+
- platform: linux
25+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
26+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
27+
- platform: macos
28+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
29+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
30+
- platform: web
31+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
32+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
33+
- platform: windows
34+
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
35+
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

integration_test/simple_test.dart

Lines changed: 0 additions & 8 deletions
This file was deleted.

ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

ios/Podfile

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

ios/RunnerTests/RunnerTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Flutter
2+
import UIKit
3+
import XCTest
4+
5+
class RunnerTests: XCTestCase {
6+
7+
func testExample() {
8+
// If you add code to the Runner application, consider adding tests here.
9+
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10+
}
11+
12+
}

linux/flutter/generated_plugin_registrant.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <audioplayers_linux/audioplayers_linux_plugin.h>
1010
#include <file_selector_linux/file_selector_plugin.h>
1111
#include <flutter_webrtc/flutter_web_r_t_c_plugin.h>
12-
#include <record_linux/record_linux_plugin.h>
1312
#include <sodium_libs/sodium_libs_plugin.h>
1413
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
1514
#include <url_launcher_linux/url_launcher_plugin.h>
@@ -24,9 +23,6 @@ void fl_register_plugins(FlPluginRegistry* registry) {
2423
g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
2524
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
2625
flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
27-
g_autoptr(FlPluginRegistrar) record_linux_registrar =
28-
fl_plugin_registry_get_registrar_for_plugin(registry, "RecordLinuxPlugin");
29-
record_linux_plugin_register_with_registrar(record_linux_registrar);
3026
g_autoptr(FlPluginRegistrar) sodium_libs_registrar =
3127
fl_plugin_registry_get_registrar_for_plugin(registry, "SodiumLibsPlugin");
3228
sodium_libs_plugin_register_with_registrar(sodium_libs_registrar);

linux/flutter/generated_plugins.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ list(APPEND FLUTTER_PLUGIN_LIST
66
audioplayers_linux
77
file_selector_linux
88
flutter_webrtc
9-
record_linux
109
sodium_libs
1110
sqlite3_flutter_libs
1211
url_launcher_linux

macos/Flutter/Flutter-Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "ephemeral/Flutter-Generated.xcconfig"

0 commit comments

Comments
 (0)