diff --git a/pkgs/cupertino_http/ios/Classes/CUPHTTPClientDelegate.m b/pkgs/cupertino_http/darwin/Classes/CUPHTTPClientDelegate.m similarity index 100% rename from pkgs/cupertino_http/ios/Classes/CUPHTTPClientDelegate.m rename to pkgs/cupertino_http/darwin/Classes/CUPHTTPClientDelegate.m diff --git a/pkgs/cupertino_http/ios/Classes/CUPHTTPCompletionHelper.m b/pkgs/cupertino_http/darwin/Classes/CUPHTTPCompletionHelper.m similarity index 100% rename from pkgs/cupertino_http/ios/Classes/CUPHTTPCompletionHelper.m rename to pkgs/cupertino_http/darwin/Classes/CUPHTTPCompletionHelper.m diff --git a/pkgs/cupertino_http/ios/Classes/CUPHTTPForwardedDelegate.m b/pkgs/cupertino_http/darwin/Classes/CUPHTTPForwardedDelegate.m similarity index 100% rename from pkgs/cupertino_http/ios/Classes/CUPHTTPForwardedDelegate.m rename to pkgs/cupertino_http/darwin/Classes/CUPHTTPForwardedDelegate.m diff --git a/pkgs/cupertino_http/ios/Classes/CUPHTTPStreamToNSInputStreamAdapter.m b/pkgs/cupertino_http/darwin/Classes/CUPHTTPStreamToNSInputStreamAdapter.m similarity index 100% rename from pkgs/cupertino_http/ios/Classes/CUPHTTPStreamToNSInputStreamAdapter.m rename to pkgs/cupertino_http/darwin/Classes/CUPHTTPStreamToNSInputStreamAdapter.m diff --git a/pkgs/cupertino_http/ios/Classes/dart_api_dl.c b/pkgs/cupertino_http/darwin/Classes/dart_api_dl.c similarity index 100% rename from pkgs/cupertino_http/ios/Classes/dart_api_dl.c rename to pkgs/cupertino_http/darwin/Classes/dart_api_dl.c diff --git a/pkgs/cupertino_http/macos/cupertino_http.podspec b/pkgs/cupertino_http/darwin/cupertino_http.podspec similarity index 86% rename from pkgs/cupertino_http/macos/cupertino_http.podspec rename to pkgs/cupertino_http/darwin/cupertino_http.podspec index 86b7201978..c3e47bac03 100644 --- a/pkgs/cupertino_http/macos/cupertino_http.podspec +++ b/pkgs/cupertino_http/darwin/cupertino_http.podspec @@ -18,11 +18,13 @@ Pod::Spec.new do |s| # paths, so Classes contains a forwarder C file that relatively imports # `../src/*` so that the C sources can be shared among all target platforms. s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'FlutterMacOS' + s.source_files = 'Classes/**/*' + s.ios.dependency 'Flutter' + s.osx.dependency 'FlutterMacOS' + s.ios.deployment_target = '12.0' + s.osx.deployment_target = '10.14' s.requires_arc = [] - s.platform = :osx, '10.14' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.swift_version = '5.0' end diff --git a/pkgs/cupertino_http/ios/cupertino_http.podspec b/pkgs/cupertino_http/ios/cupertino_http.podspec deleted file mode 100644 index 4e2ce46f08..0000000000 --- a/pkgs/cupertino_http/ios/cupertino_http.podspec +++ /dev/null @@ -1,29 +0,0 @@ -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint cupertino_http.podspec` to validate before publishing. -# -Pod::Spec.new do |s| - s.name = 'cupertino_http' - s.version = '0.0.1' - s.summary = 'Flutter Foundation URL Loading System' - s.description = <<-DESC - A Flutter plugin for accessing the Foundation URL Loading System. - DESC - s.homepage = 'https://github.com/dart-lang/http/tree/master/pkgs/cupertino_http' - s.license = { :type => 'BSD', :file => '../LICENSE' } - s.author = { 'TODO' => 'use-valid-author' } - - # This will ensure the source files in Classes/ are included in the native - # builds of apps using this FFI plugin. Podspec does not support relative - # paths, so Classes contains a forwarder C file that relatively imports - # `../src/*` so that the C sources can be shared among all target platforms. - s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'Flutter' - s.platform = :ios, '12.0' - s.requires_arc = [] - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } - s.swift_version = '5.0' -end diff --git a/pkgs/cupertino_http/macos/Classes/CUPHTTPClientDelegate.m b/pkgs/cupertino_http/macos/Classes/CUPHTTPClientDelegate.m deleted file mode 100644 index 5b375ca3b4..0000000000 --- a/pkgs/cupertino_http/macos/Classes/CUPHTTPClientDelegate.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPClientDelegate.m" diff --git a/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m b/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m deleted file mode 100644 index b05d1fc717..0000000000 --- a/pkgs/cupertino_http/macos/Classes/CUPHTTPCompletionHelper.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPCompletionHelper.m" diff --git a/pkgs/cupertino_http/macos/Classes/CUPHTTPForwardedDelegate.m b/pkgs/cupertino_http/macos/Classes/CUPHTTPForwardedDelegate.m deleted file mode 100644 index 39c9e02729..0000000000 --- a/pkgs/cupertino_http/macos/Classes/CUPHTTPForwardedDelegate.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPForwardedDelegate.m" diff --git a/pkgs/cupertino_http/macos/Classes/CUPHTTPStreamToNSInputStreamAdapter.m b/pkgs/cupertino_http/macos/Classes/CUPHTTPStreamToNSInputStreamAdapter.m deleted file mode 100644 index 46eb84ba89..0000000000 --- a/pkgs/cupertino_http/macos/Classes/CUPHTTPStreamToNSInputStreamAdapter.m +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/CUPHTTPStreamToNSInputStreamAdapter.m" diff --git a/pkgs/cupertino_http/macos/Classes/dart_api_dl.c b/pkgs/cupertino_http/macos/Classes/dart_api_dl.c deleted file mode 100644 index 023f80ab06..0000000000 --- a/pkgs/cupertino_http/macos/Classes/dart_api_dl.c +++ /dev/null @@ -1 +0,0 @@ -#include "../../src/dart-sdk/include/dart_api_dl.c" diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index 6516790d10..cff2546b3e 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -27,5 +27,7 @@ flutter: platforms: ios: ffiPlugin: true + sharedDarwinSource: true macos: ffiPlugin: true + sharedDarwinSource: true