Skip to content

Commit 2b2dfec

Browse files
Chris YangArash
Chris Yang
authored and
Arash
committed
Revert "[ci][image_picker]enable xcode 12/iOS 14 for all tasks except lint (flutter#3304)" (flutter#3459)
This reverts commit 712dcc1.
1 parent 712dcc1 commit 2b2dfec

File tree

5 files changed

+20
-58
lines changed

5 files changed

+20
-58
lines changed

.cirrus.yml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ task:
117117
env:
118118
INTEGRATION_TEST_PATH: "./packages/integration_test"
119119
upgrade_script:
120-
- sudo gem install cocoapods
121120
- flutter channel stable
122121
- flutter upgrade
123122
- flutter channel master
@@ -135,43 +134,11 @@ task:
135134
- xvfb-run ./script/incremental_build.sh drive-examples --linux
136135

137136
task:
138-
# Xcode 11 task
139-
# TODO(cyanglaz): merge Xcode 11 task to Xcode 12 task when all the matrix can be run in Xcode 12.
140137
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
141138
only_if: $CIRRUS_TAG == ''
142139
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
143140
osx_instance:
144141
image: catalina-xcode-11.3.1-flutter
145-
upgrade_script:
146-
- flutter channel stable
147-
- flutter upgrade
148-
- flutter channel master
149-
- flutter upgrade
150-
- git fetch origin master
151-
activate_script: pub global activate flutter_plugin_tools
152-
create_simulator_script:
153-
- xcrun simctl list
154-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot
155-
matrix:
156-
- name: lint_darwin_plugins
157-
env:
158-
matrix:
159-
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
160-
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
161-
script:
162-
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
163-
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
164-
# Skip the dummy podspecs used to placate the tool.
165-
- find . -name "*_web*.podspec" -o -name "*_mac*.podspec" | xargs rm
166-
- ./script/incremental_build.sh podspecs
167-
168-
task:
169-
# Xcode 12 task
170-
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
171-
only_if: $CIRRUS_TAG == ''
172-
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
173-
osx_instance:
174-
image: big-sur-xcode-12.3
175142
upgrade_script:
176143
- sudo gem install cocoapods
177144
- flutter channel stable
@@ -182,7 +149,7 @@ task:
182149
activate_script: pub global activate flutter_plugin_tools
183150
create_simulator_script:
184151
- xcrun simctl list
185-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
152+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot
186153
matrix:
187154
- name: build_all_plugins_ipa
188155
env:
@@ -195,6 +162,17 @@ task:
195162
- if [[ "$CHANNEL" -eq "stable" ]]; then find . | grep _web$ | xargs rm -rf; fi
196163
- flutter channel $CHANNEL
197164
- ./script/build_all_plugins_app.sh ios --no-codesign
165+
- name: lint_darwin_plugins
166+
env:
167+
matrix:
168+
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
169+
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
170+
script:
171+
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
172+
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
173+
# Skip the dummy podspecs used to placate the tool.
174+
- find . -name "*_web*.podspec" -o -name "*_mac*.podspec" | xargs rm
175+
- ./script/incremental_build.sh podspecs
198176
- name: build-ipas+drive-examples
199177
env:
200178
PATH: $PATH:/usr/local/bin
@@ -215,13 +193,13 @@ task:
215193
- flutter channel $CHANNEL
216194
- ./script/incremental_build.sh build-examples --ipa
217195
- ./script/incremental_build.sh drive-examples
218-
- ./script/incremental_build.sh xctest --target RunnerUITests --skip $PLUGINS_TO_SKIP_XCTESTS --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=14.3"
196+
- ./script/incremental_build.sh xctest --target RunnerUITests --skip $PLUGINS_TO_SKIP_XCTESTS
219197
task:
220198
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
221199
only_if: $CIRRUS_TAG == ''
222200
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
223201
osx_instance:
224-
image: big-sur-xcode-12.3
202+
image: catalina-xcode-11.3.1-flutter
225203
setup_script:
226204
- flutter config --enable-macos-desktop
227205
upgrade_script:

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## 0.6.7+22
2-
3-
* iOS: update XCUITests to separate each test session.
4-
51
## 0.6.7+21
62

73
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.

packages/image_picker/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/ExifDataCopier.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ void copyExif(String filePathOri, String filePathDest) {
3535
"GPSLongitudeRef",
3636
"Make",
3737
"Model",
38+
"DateTimeOriginal",
39+
"DateTime",
3840
"Orientation");
3941
for (String attribute : attributes) {
4042
setIfNotNull(oldExif, newExif, attribute);

packages/image_picker/image_picker/example/ios/RunnerUITests/ImagePickerFromGalleryUITests.m

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ @interface ImagePickerFromGalleryUITests : XCTestCase
1616
@implementation ImagePickerFromGalleryUITests
1717

1818
- (void)setUp {
19-
[super setUp];
2019
// Delete the app if already exists, to test permission popups
2120

2221
self.continueAfterFailure = NO;
@@ -32,7 +31,7 @@ - (void)setUp {
3231
if (![allPhotoPermission waitForExistenceWithTimeout:
3332
kElementWaitingTime]) {
3433
os_log_error(OS_LOG_DEFAULT, "%@",
35-
weakSelf.app.debugDescription);
34+
self.app.debugDescription);
3635
XCTFail(@"Failed due to not able to find "
3736
@"allPhotoPermission button with %@ seconds",
3837
@(kElementWaitingTime));
@@ -43,7 +42,7 @@ - (void)setUp {
4342
if (![ok waitForExistenceWithTimeout:
4443
kElementWaitingTime]) {
4544
os_log_error(OS_LOG_DEFAULT, "%@",
46-
weakSelf.app.debugDescription);
45+
self.app.debugDescription);
4746
XCTFail(@"Failed due to not able to find ok button "
4847
@"with %@ seconds",
4948
@(kElementWaitingTime));
@@ -54,17 +53,9 @@ - (void)setUp {
5453
}];
5554
}
5655

57-
- (void)tearDown {
58-
[super tearDown];
59-
[self.app terminate];
60-
}
61-
6256
- (void)testPickingFromGallery {
63-
[self launchPickerAndPick];
64-
}
65-
66-
- (void)testCancel {
6757
[self launchPickerAndCancel];
58+
[self launchPickerAndPick];
6859
}
6960

7061
- (void)launchPickerAndCancel {
@@ -169,10 +160,6 @@ - (void)launchPickerAndPick {
169160
XCTAssertTrue(pickButton.exists);
170161
[pickButton tap];
171162

172-
// There is a known bug where the permission popups interruption won't get fired until a tap
173-
// happened in the app. We expect a permission popup so we do a tap here.
174-
[self.app tap];
175-
176163
// Find an image and tap on it. (IOS 14 UI, images are showing directly)
177164
XCUIElement* aImage;
178165
if (@available(iOS 14, *)) {
@@ -190,7 +177,6 @@ - (void)launchPickerAndPick {
190177
identifier:@"PhotosGridView"]
191178
.cells.firstMatch;
192179
}
193-
os_log_error(OS_LOG_DEFAULT, "description before picking image %@", self.app.debugDescription);
194180
if (![aImage waitForExistenceWithTimeout:kElementWaitingTime]) {
195181
os_log_error(OS_LOG_DEFAULT, "%@", self.app.debugDescription);
196182
XCTFail(@"Failed due to not able to find an image with %@ seconds", @(kElementWaitingTime));

packages/image_picker/image_picker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker
22
description: Flutter plugin for selecting images from the Android and iOS image
33
library, and taking new pictures with the camera.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
5-
version: 0.6.7+22
5+
version: 0.6.7+21
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)