Unverified Commit 64056a1a authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Fix integration_test podspecs warnings (#84602)

parent 697928d2
...@@ -18,6 +18,46 @@ Future<void> main() async { ...@@ -18,6 +18,46 @@ Future<void> main() async {
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_plugin_test.'); final Directory tempDir = Directory.systemTemp.createTempSync('flutter_plugin_test.');
try { try {
section('Lint integration_test');
await inDirectory(tempDir, () async {
// Relative to this script.
final String flutterRoot = path.dirname(path.dirname(path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script))))));
print('Flutter root at $flutterRoot');
final String integrationTestPackage = path.join(flutterRoot, 'packages', 'integration_test');
final String iosintegrationTestPodspec = path.join(integrationTestPackage, 'ios', 'integration_test.podspec');
await exec(
'pod',
<String>[
'lib',
'lint',
iosintegrationTestPodspec,
'--configuration=Debug', // Release targets unsupported arm64 simulators. Use Debug to only build against targeted x86_64 simulator devices.
'--use-libraries',
'--verbose',
],
environment: <String, String>{
'LANG': 'en_US.UTF-8',
},
);
final String macosintegrationTestPodspec = path.join(integrationTestPackage, 'integration_test_macos', 'macos', 'integration_test_macos.podspec');
await exec(
'pod',
<String>[
'lib',
'lint',
macosintegrationTestPodspec,
'--configuration=Debug', // Release targets unsupported arm64 Apple Silicon. Use Debug to only build against targeted x86_64 macOS.
'--verbose',
],
environment: <String, String>{
'LANG': 'en_US.UTF-8',
},
);
});
section('Create Objective-C plugin'); section('Create Objective-C plugin');
const String objcPluginName = 'test_plugin_objc'; const String objcPluginName = 'test_plugin_objc';
......
...@@ -8,13 +8,17 @@ Pod::Spec.new do |s| ...@@ -8,13 +8,17 @@ Pod::Spec.new do |s|
s.description = <<-DESC s.description = <<-DESC
Runs tests that use the flutter_test API as integration tests on macOS. Runs tests that use the flutter_test API as integration tests on macOS.
DESC DESC
s.homepage = 'https://github.com/flutter/plugins/tree/master/packages/integration_test/integration_test_macos' s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos'
s.license = { :type => 'BSD', :file => '../LICENSE' } s.license = { :type => 'BSD', :text => <<-LICENSE
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
LICENSE
}
s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' } s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
s.source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/integration_test' } s.source = { :http => 'https://github.com/flutter/flutter/tree/master/packages/integration_test/integration_test_macos' }
s.source_files = 'Classes/**/*' s.source_files = 'Classes/**/*'
s.dependency 'FlutterMacOS' s.dependency 'FlutterMacOS'
s.platform = :osx, '10.11' s.platform = :osx, '10.11'
s.swift_version = '5.0'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
end end
...@@ -8,10 +8,13 @@ Pod::Spec.new do |s| ...@@ -8,10 +8,13 @@ Pod::Spec.new do |s|
s.description = <<-DESC s.description = <<-DESC
Runs tests that use the flutter_test API as integration tests. Runs tests that use the flutter_test API as integration tests.
DESC DESC
s.homepage = 'https://github.com/flutter/plugins/tree/master/packages/integration_test' s.homepage = 'https://github.com/flutter/flutter/tree/master/packages/integration_test'
s.license = { :type => 'BSD', :file => '../LICENSE' } s.license = { :type => 'BSD', :text => <<-LICENSE
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
LICENSE
}
s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' } s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
s.source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/integration_test' } s.source = { :http => 'https://github.com/flutter/flutter/tree/master/packages/integration_test' }
s.source_files = 'Classes/**/*' s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h' s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter' s.dependency 'Flutter'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment