From 5de8c901779786b0da675d5d20089f3cf75f6c6d Mon Sep 17 00:00:00 2001 From: Mikkel Nygaard Ravn Date: Mon, 19 Feb 2018 16:33:30 +0100 Subject: [PATCH] Place LICENSE as sibling of podspec (flutter/engine#4691) --- engine/src/flutter/shell/platform/darwin/ios/BUILD.gn | 11 +++++++++++ .../platform/darwin/ios/framework/Flutter.podspec | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index 33b0420227..310af79c2e 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -213,6 +213,16 @@ copy("copy_framework_podspec") { ] } +copy("copy_license") { + visibility = [ ":*" ] + sources = [ + "//LICENSE", + ] + outputs = [ + "$root_out_dir/LICENSE", + ] +} + shared_library("copy_and_verify_framework_headers") { visibility = [ ":*" ] include_dirs = [ "$_flutter_framework_headers_copy_dir" ] @@ -232,5 +242,6 @@ group("flutter_framework") { ":copy_framework_info_plist", ":copy_framework_module_map", ":copy_framework_podspec", + ":copy_license", ] } diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Flutter.podspec b/engine/src/flutter/shell/platform/darwin/ios/framework/Flutter.podspec index b8fbb26a26..c8998c7b6b 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Flutter.podspec +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Flutter.podspec @@ -10,7 +10,7 @@ Pod::Spec.new do |s| Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS. DESC s.homepage = 'https://flutter.io' - s.license = { :type => 'MIT', :file => '../../../../../LICENSE' } + s.license = { :type => 'MIT' } s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' } s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s } s.ios.deployment_target = '7.0'