Skip to content

Commit

Permalink
Merge branch 'master' into add_zoom_to_android_webview
Browse files Browse the repository at this point in the history
* master:
  [camera] Ios support documentation  (flutter#3335)
  Remove custom null safety analysis_options files (flutter#3339)
  [webview_flutter] Added 'allowsInlineMediaPlayback' property (flutter#3334)
  [camera_platform_interface] Add torch definition to the FlashModes enum  (flutter#3326)
  [wifi_info_flutter] Edit sample wifi_info_flutter plugin (flutter#3271)

# Conflicts:
#	packages/webview_flutter/CHANGELOG.md
#	packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterWebView.java
#	packages/webview_flutter/lib/platform_interface.dart
#	packages/webview_flutter/pubspec.yaml
  • Loading branch information
NickalasB committed Dec 17, 2020
2 parents f236a61 + 05879a3 commit 84fe69a
Show file tree
Hide file tree
Showing 41 changed files with 312 additions and 139 deletions.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
@@ -1,3 +1,7 @@
## 0.6.0+1

Updated README to inform users that iOS 10.0+ is needed for use

## 0.6.0

As part of implementing federated architecture and making the interface compatible with the web this version contains the following **breaking changes**:
Expand Down
2 changes: 2 additions & 0 deletions packages/camera/camera/README.md
Expand Up @@ -19,6 +19,8 @@ First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.

### iOS

iOS 10.0 of higher is needed to use the camera plugin. If compiling for any version lower than 10.0 make sure to check the iOS version before using the camera plugin. For example, using the [device_info](https://pub.dev/packages/device_info) plugin.

Add two rows to the `ios/Runner/Info.plist`:

* one with the key `Privacy - Camera Usage Description` and a usage description.
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Expand Up @@ -2,7 +2,7 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.6.0
version: 0.6.0+1
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
Expand Down
4 changes: 4 additions & 0 deletions packages/camera/camera_platform_interface/CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.0.4

- Added the torch option to the FlashMode enum, which when implemented indicates the flash light should be turned on continuously.

## 1.0.3

- Update Flutter SDK constraint.
Expand Down
Expand Up @@ -226,6 +226,8 @@ class MethodChannelCamera extends CameraPlatform {
return 'auto';
case FlashMode.always:
return 'always';
case FlashMode.torch:
return 'torch';
default:
throw ArgumentError('Unknown FlashMode value');
}
Expand Down
Expand Up @@ -108,7 +108,7 @@ abstract class CameraPlatform extends PlatformInterface {
throw UnimplementedError('resumeVideoRecording() is not implemented.');
}

/// Sets the flash mode for taking pictures.
/// Sets the flash mode for the selected camera.
Future<void> setFlashMode(int cameraId, FlashMode mode) {
throw UnimplementedError('setFlashMode() is not implemented.');
}
Expand Down
Expand Up @@ -12,4 +12,7 @@ enum FlashMode {

/// Always use the flash when taking a picture.
always,

/// Turns on the flash light and keeps it on until switched off.
torch,
}
2 changes: 1 addition & 1 deletion packages/camera/camera_platform_interface/pubspec.yaml
Expand Up @@ -3,7 +3,7 @@ description: A common platform interface for the camera plugin.
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 1.0.3
version: 1.0.4

dependencies:
flutter:
Expand Down
Expand Up @@ -6,10 +6,10 @@ import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
test('FlashMode should contain 3 options', () {
test('FlashMode should contain 4 options', () {
final values = FlashMode.values;

expect(values.length, 3);
expect(values.length, 4);
});

test("FlashMode enum should have items in correct index", () {
Expand All @@ -18,5 +18,6 @@ void main() {
expect(values[0], FlashMode.off);
expect(values[1], FlashMode.auto);
expect(values[2], FlashMode.always);
expect(values[3], FlashMode.torch);
});
}
4 changes: 0 additions & 4 deletions packages/connectivity/connectivity/analysis_options.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/connectivity/connectivity/example/pubspec.yaml
Expand Up @@ -19,5 +19,5 @@ flutter:
uses-material-design: true

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"
Expand Up @@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// TODO(amirh): Remove this once flutter_driver supports null safety.
// https://github.com/flutter/flutter/issues/71379
// @dart = 2.9

import 'dart:convert';
import 'dart:io';
import 'package:flutter_driver/flutter_driver.dart';
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions packages/device_info/device_info/analysis_options.yaml

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions packages/plugin_platform_interface/analysis_options.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions packages/share/example/ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -197,7 +197,6 @@
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
12A149CFB1B2610A83692801 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -268,24 +267,6 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
12A149CFB1B2610A83692801 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../Flutter/Flutter.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
4 changes: 0 additions & 4 deletions packages/url_launcher/url_launcher/analysis_options.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher/example/pubspec.yaml
Expand Up @@ -20,5 +20,5 @@ flutter:
uses-material-design: true

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"

This file was deleted.

4 changes: 0 additions & 4 deletions packages/video_player/video_player/analysis_options.yaml

This file was deleted.

Expand Up @@ -2,6 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.


// TODO(amirh): Remove this once flutter_driver supports null safety.
// https://github.com/flutter/flutter/issues/71379
// @dart = 2.9

import 'package:flutter/material.dart';
import 'package:integration_test/integration_test.dart';
import 'package:flutter_test/flutter_test.dart';
Expand All @@ -11,7 +16,7 @@ const Duration _playDuration = Duration(seconds: 1);

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
late VideoPlayerController _controller;
VideoPlayerController _controller;
tearDown(() async => _controller.dispose());

group('asset videos', () {
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/video_player/example/pubspec.yaml
Expand Up @@ -27,5 +27,5 @@ flutter:
- assets/bumble_bee_captions.srt

environment:
sdk: ">=2.8.0 <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"

This file was deleted.

12 changes: 0 additions & 12 deletions packages/video_player/video_player_web/analysis_options.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion packages/webview_flutter/CHANGELOG.md
@@ -1,7 +1,11 @@
## 2.0.1-nullsafety
## 2.0.0-nullsafety.2

* Enable native double-tap to zoom, and pinch to zoom functionality on Android and default to setLoadWithOverviewMode

## 2.0.0-nullsafety.1

* Added `allowsInlineMediaPlayback` property.

## 2.0.0-nullsafety

* Migration to null-safety.
Expand Down
Expand Up @@ -372,6 +372,9 @@ private void applySettings(Map<String, Object> settings) {
case "userAgent":
updateUserAgent((String) settings.get(key));
break;
case "allowsInlineMediaPlayback":
// no-op inline media playback is always allowed on Android.
break;
case "setSupportZoom":
setSupportZoom((boolean) settings.get(key));
break;
Expand Down
Binary file not shown.

0 comments on commit 84fe69a

Please sign in to comment.