Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
14d5921
alarm manager
Mar 20, 2019
78b7318
android intent
Mar 20, 2019
3ff1735
battery
Mar 20, 2019
cc16c9d
camera
Mar 20, 2019
5c7ef16
cloud firestore
Mar 20, 2019
b54a29f
cloud functions
Mar 20, 2019
efe5b55
connectivity
Mar 20, 2019
30d8e2f
git st
Mar 20, 2019
02c484d
device_info
Mar 20, 2019
4c056d6
addmob
Mar 20, 2019
530d561
firebase_anal
Mar 20, 2019
77b4fc2
firebase_auth
Mar 20, 2019
3497720
firebase_core
Mar 20, 2019
97a295a
firebase_database
Mar 20, 2019
a75ab4a
dynamic link
Mar 20, 2019
bc10d37
firebase_messaging
Mar 20, 2019
a423948
ml_vision
Mar 20, 2019
04b3b31
firebase_performance
Mar 20, 2019
88eb149
remote config
Mar 20, 2019
0ed5fc0
firebase storage
Mar 20, 2019
33ca3a4
google_maps_flutter
Mar 20, 2019
2947d44
google sign_in
Mar 20, 2019
ecf894f
image_picker
Mar 20, 2019
a586fe5
in app purchase
Mar 20, 2019
cf8ac32
local auth
Mar 20, 2019
ebcbdee
location background
Mar 20, 2019
4e060f6
ml vision version update
Mar 20, 2019
7310313
package info
Mar 20, 2019
ca36d28
path provider
Mar 20, 2019
b52957b
quick actions
Mar 20, 2019
3132df5
share
Mar 20, 2019
77b2aee
shared_preference
Mar 20, 2019
514fdc5
url launcher
Mar 20, 2019
8861d1c
video player
Mar 20, 2019
a062bc5
webview flutter
Mar 20, 2019
4d4ab2b
bump flutter version for all plugins
Mar 20, 2019
e29597f
analyzer fix
Mar 20, 2019
dab879f
rever min flutter version for sensor plugin
Mar 20, 2019
f3231e8
fix
Mar 20, 2019
c810604
Update packages/android_alarm_manager/lib/android_alarm_manager.dart
Mar 20, 2019
9b29dee
Update packages/android_alarm_manager/lib/android_alarm_manager.dart
Mar 20, 2019
19ec463
Update packages/android_alarm_manager/lib/android_alarm_manager.dart
Mar 20, 2019
f2d907c
invokeMapMethod
Mar 20, 2019
2e77a28
invokeListMethod
Mar 20, 2019
ce58adf
Merge branch 'template_type_invokemethod' of github.com:cyanglaz/plug…
Mar 20, 2019
dd4995d
remove explict casting
Mar 20, 2019
e92855a
clean up
Mar 20, 2019
92779eb
more refactors from <dynamic>
Mar 20, 2019
aa471f1
formatting
Mar 20, 2019
fab684a
error fixes
Mar 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/android_alarm_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.1+4

* Bump the minimum flutter version to 1.2.0.
* Add Template type parameter to `invokeMethod` calls.

## 0.4.1+3

* Update README.md to include instructions for setting the WAKE_LOCK permission.
Expand Down
30 changes: 8 additions & 22 deletions packages/android_alarm_manager/lib/android_alarm_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ void _alarmManagerCallbackDispatcher() {

// Once we've finished initializing, let the native portion of the plugin
// know that it can start scheduling alarms.
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
_channel.invokeMethod('AlarmService.initialized');
_channel.invokeMethod<void>('AlarmService.initialized');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be bool following the fix in #1384

}

/// A Flutter plugin for registering Dart callbacks with the Android
Expand All @@ -69,11 +66,8 @@ class AndroidAlarmManager {
if (handle == null) {
return false;
}
final dynamic r = await _channel
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
.invokeMethod('AlarmService.start', <dynamic>[handle.toRawHandle()]);
final bool r = await _channel.invokeMethod<bool>(
'AlarmService.start', <dynamic>[handle.toRawHandle()]);
return r ?? false;
}

Expand Down Expand Up @@ -117,10 +111,7 @@ class AndroidAlarmManager {
if (handle == null) {
return false;
}
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
final dynamic r = await _channel.invokeMethod('Alarm.oneShot', <dynamic>[
final bool r = await _channel.invokeMethod<bool>('Alarm.oneShot', <dynamic>[
id,
exact,
wakeup,
Expand Down Expand Up @@ -172,10 +163,8 @@ class AndroidAlarmManager {
if (handle == null) {
return false;
}
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
final dynamic r = await _channel.invokeMethod('Alarm.periodic', <dynamic>[
final bool r = await _channel.invokeMethod<bool>(
'Alarm.periodic', <dynamic>[
id,
exact,
wakeup,
Expand All @@ -195,11 +184,8 @@ class AndroidAlarmManager {
/// Returns a [Future] that resolves to `true` on success and `false` on
/// failure.
static Future<bool> cancel(int id) async {
final dynamic r =
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('Alarm.cancel', <dynamic>[id]);
final bool r =
await _channel.invokeMethod<bool>('Alarm.cancel', <dynamic>[id]);
return (r == null) ? false : r;
}
}
4 changes: 2 additions & 2 deletions packages/android_alarm_manager/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: android_alarm_manager
description: Flutter plugin for accessing the Android AlarmManager service, and
running Dart code in the background when alarms fire.
version: 0.4.1+3
version: 0.4.1+4
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager

Expand All @@ -20,4 +20,4 @@ flutter:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
flutter: ">=1.2.0 <2.0.0"
5 changes: 5 additions & 0 deletions packages/android_intent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.0+2

* Bump the minimum flutter version to 1.2.0.
* Add Template type parameter to `invokeMethod` calls.

## 0.3.0+1

* Log a more detailed warning at build time about the previous AndroidX
Expand Down
5 changes: 1 addition & 4 deletions packages/android_intent/lib/android_intent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ class AndroidIntent {
if (package != null) {
args['package'] = package;
}
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('launch', args);
await _channel.invokeMethod<void>('launch', args);
}
}
4 changes: 2 additions & 2 deletions packages/android_intent/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: android_intent
description: Flutter plugin for launching Android Intents. Not supported on iOS.
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent
version: 0.3.0+1
version: 0.3.0+2

flutter:
plugin:
Expand All @@ -18,4 +18,4 @@ dependencies:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
flutter: ">=1.2.0 <2.0.0"
5 changes: 5 additions & 0 deletions packages/battery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.3.0+2

* Bump the minimum flutter version to 1.2.0.
* Add Template type parameter to `invokeMethod` calls.

## 0.3.0+1

* Log a more detailed warning at build time about the previous AndroidX
Expand Down
5 changes: 1 addition & 4 deletions packages/battery/lib/battery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ class Battery {

/// Returns the current battery level in percent.
Future<int> get batteryLevel => _methodChannel
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
.invokeMethod('getBatteryLevel')
.invokeMethod<int>('getBatteryLevel')
.then<int>((dynamic result) => result);

/// Fires whenever the battery state changes.
Expand Down
4 changes: 2 additions & 2 deletions packages/battery/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for accessing information about the battery state
(full, charging, discharging) on Android and iOS.
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/battery
version: 0.3.0+1
version: 0.3.0+2

flutter:
plugin:
Expand All @@ -25,4 +25,4 @@ dev_dependencies:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
flutter: ">=1.2.0 <2.0.0"
5 changes: 1 addition & 4 deletions packages/battery/test/battery_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ void main() {
});

test('batteryLevel', () async {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
when(methodChannel.invokeMethod('getBatteryLevel'))
when(methodChannel.invokeMethod<int>('getBatteryLevel'))
.thenAnswer((Invocation invoke) => Future<int>.value(42));
expect(await battery.batteryLevel, 42);
});
Expand Down
6 changes: 6 additions & 0 deletions packages/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.4.3+1

* Bump the minimum flutter version to 1.2.0.
* Add Template type parameter to `invokeMethod` calls.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra empty line here

## 0.4.3

* Add capability to prepare the capture session for video recording on iOS.
Expand Down
50 changes: 12 additions & 38 deletions packages/camera/lib/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@ CameraLensDirection _parseCameraLensDirection(String string) {
/// May throw a [CameraException].
Future<List<CameraDescription>> availableCameras() async {
try {
final List<dynamic> cameras =
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('availableCameras');
return cameras.map((dynamic camera) {
final List<Map<String, dynamic>> cameras = await _channel
.invokeListMethod<Map<String, dynamic>>('availableCameras');
return cameras.map((Map<String, dynamic> camera) {
return CameraDescription(
name: camera['name'],
lensDirection: _parseCameraLensDirection(camera['lensFacing']),
Expand Down Expand Up @@ -227,10 +224,8 @@ class CameraController extends ValueNotifier<CameraValue> {
}
try {
_creatingCompleter = Completer<void>();
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
final Map<dynamic, dynamic> reply = await _channel.invokeMethod(
final Map<String, dynamic> reply =
await _channel.invokeMapMethod<String, dynamic>(
'initialize',
<String, dynamic>{
'cameraName': description.name,
Expand Down Expand Up @@ -268,10 +263,7 @@ class CameraController extends ValueNotifier<CameraValue> {
///
/// Throws a [CameraException] if the prepare fails.
Future<void> prepareForVideoRecording() async {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('prepareForVideoRecording');
await _channel.invokeMethod<void>('prepareForVideoRecording');
}

/// Listen to events from the native plugins.
Expand Down Expand Up @@ -317,10 +309,7 @@ class CameraController extends ValueNotifier<CameraValue> {
}
try {
value = value.copyWith(isTakingPicture: true);
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod(
await _channel.invokeMethod<void>(
'takePicture',
<String, dynamic>{'textureId': _textureId, 'path': path},
);
Expand Down Expand Up @@ -365,10 +354,7 @@ class CameraController extends ValueNotifier<CameraValue> {
}

try {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('startImageStream');
await _channel.invokeMethod<void>('startImageStream');
value = value.copyWith(isStreamingImages: true);
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
Expand Down Expand Up @@ -409,10 +395,7 @@ class CameraController extends ValueNotifier<CameraValue> {

try {
value = value.copyWith(isStreamingImages: false);
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod('stopImageStream');
await _channel.invokeMethod<void>('stopImageStream');
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}
Expand Down Expand Up @@ -452,10 +435,7 @@ class CameraController extends ValueNotifier<CameraValue> {
}

try {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod(
await _channel.invokeMethod<void>(
'startVideoRecording',
<String, dynamic>{'textureId': _textureId, 'filePath': filePath},
);
Expand All @@ -481,10 +461,7 @@ class CameraController extends ValueNotifier<CameraValue> {
}
try {
value = value.copyWith(isRecordingVideo: false);
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod(
await _channel.invokeMethod<void>(
'stopVideoRecording',
<String, dynamic>{'textureId': _textureId},
);
Expand All @@ -503,10 +480,7 @@ class CameraController extends ValueNotifier<CameraValue> {
super.dispose();
if (_creatingCompleter != null) {
await _creatingCompleter.future;
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await _channel.invokeMethod(
await _channel.invokeMethod<void>(
'dispose',
<String, dynamic>{'textureId': _textureId},
);
Expand Down
4 changes: 2 additions & 2 deletions packages/camera/pubspec.yaml
Original file line number Diff line number Diff line change
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.4.3
version: 0.4.3+1
authors:
- Flutter Team <[email protected]>
- Luigi Agosti <[email protected]>
Expand All @@ -27,4 +27,4 @@ flutter:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=0.1.4 <2.0.0"
flutter: ">=1.2.0 <2.0.0"
6 changes: 3 additions & 3 deletions packages/cloud_firestore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 0.9.7
## 0.9.6+1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be 7+1


* Fixes a NoSuchMethodError when using getDocuments on iOS (introduced in 0.9.6).
* Adds a driver test for getDocuments.
* Bump the minimum flutter version to 1.2.0.
* Add Template type parameter to `invokeMethod` calls.

## 0.9.6

Expand Down
31 changes: 7 additions & 24 deletions packages/cloud_firestore/lib/src/document_reference.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ class DocumentReference {
/// If [merge] is true, the provided data will be merged into an
/// existing document instead of overwriting.
Future<void> setData(Map<String, dynamic> data, {bool merge = false}) {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
return Firestore.channel.invokeMethod(
return Firestore.channel.invokeMethod<void>(
'DocumentReference#setData',
<String, dynamic>{
'app': firestore.app.name,
Expand All @@ -61,10 +58,7 @@ class DocumentReference {
///
/// If no document exists yet, the update will fail.
Future<void> updateData(Map<String, dynamic> data) {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
return Firestore.channel.invokeMethod(
return Firestore.channel.invokeMethod<void>(
'DocumentReference#updateData',
<String, dynamic>{
'app': firestore.app.name,
Expand All @@ -78,10 +72,8 @@ class DocumentReference {
///
/// If no document exists, the read will return null.
Future<DocumentSnapshot> get() async {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
final Map<dynamic, dynamic> data = await Firestore.channel.invokeMethod(
final Map<String, dynamic> data =
await Firestore.channel.invokeMapMethod<String, dynamic>(
'DocumentReference#get',
<String, dynamic>{'app': firestore.app.name, 'path': path},
);
Expand All @@ -94,10 +86,7 @@ class DocumentReference {

/// Deletes the document referred to by this [DocumentReference].
Future<void> delete() {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
return Firestore.channel.invokeMethod(
return Firestore.channel.invokeMethod<void>(
'DocumentReference#delete',
<String, dynamic>{'app': firestore.app.name, 'path': path},
);
Expand All @@ -120,10 +109,7 @@ class DocumentReference {
StreamController<DocumentSnapshot> controller; // ignore: close_sinks
controller = StreamController<DocumentSnapshot>.broadcast(
onListen: () {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
_handle = Firestore.channel.invokeMethod(
_handle = Firestore.channel.invokeMethod<int>(
'Query#addDocumentListener',
<String, dynamic>{
'app': firestore.app.name,
Expand All @@ -136,10 +122,7 @@ class DocumentReference {
},
onCancel: () {
_handle.then((int handle) async {
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
// https://github.com/flutter/flutter/issues/26431
// ignore: strong_mode_implicit_dynamic_method
await Firestore.channel.invokeMethod(
await Firestore.channel.invokeMethod<void>(
'Query#removeListener',
<String, dynamic>{'handle': handle},
);
Expand Down
Loading