Fixes to support add2app on iOS (#22277)

* Fix xcode_backend.sh script to support add2app

* Fix ios deployment target. Too old for new Xcode.

* Fix ios host app

* Register plugins with Flutter view
This commit is contained in:
Mikkel Nygaard Ravn
2018-09-26 07:57:05 +02:00
committed by Dan Field
parent eda228404c
commit 52697ef962
12 changed files with 145 additions and 127 deletions

View File

@@ -81,7 +81,7 @@ BuildApp() {
local derived_dir="${SOURCE_ROOT}/Flutter"
if [[ -e "${project_path}/.ios" ]]; then
derived_dir="${SOURCE_ROOT}/../.ios/Flutter"
derived_dir="${project_path}/.ios/Flutter"
fi
RunCommand mkdir -p -- "$derived_dir"
AssertExists "$derived_dir"

View File

@@ -224,7 +224,7 @@ Depends on all your plugins, and provides a function to register them.
s.homepage = 'https://flutter.io'
s.license = { :type => 'BSD' }
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
s.ios.deployment_target = '7.0'
s.ios.deployment_target = '8.0'
s.source_files = "Classes", "Classes/**/*.{h,m}"
s.source = { :path => '.' }
s.public_header_files = './Classes/**/*.h'