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
32 commits
Select commit Hold shift + click to select a range
5f6e47d
Fixed issue (#48670)
Sep 18, 2020
eb75741
Fixed issue (#48670)
Sep 18, 2020
3419209
Fixed issue (#48670)
Sep 18, 2020
35baf45
Fixed issue (#48670)
Sep 18, 2020
2e3b393
Format FLTVideoPlayerPlugin.m
danielroek Sep 18, 2020
5fb82aa
Fixed ProgressIndicator on iOS
danielroek Sep 18, 2020
26aa116
Update CHANGELOG.md
danielroek Sep 18, 2020
57cdcf3
[url_launcher] Suppress deprecation warning in WebViewActivity (#3008)
mvanbeusekom Sep 8, 2020
95d8ed9
[device_info_platform_interface] Typo in doc fixed (#3006)
yash1200 Sep 9, 2020
fe5e0fe
[image_picker_for_web] Safari now can pick more video formats (3gp, m…
Makapre Sep 9, 2020
7d8429d
[google_maps_flutter] Fix typo in User Interface example (#3011)
Vitaly-V Sep 9, 2020
8e47e80
[in_app_purchase] Fix the bug that prevent restored subscription tran…
ziggycrane Sep 9, 2020
45e6600
[url_launcher_web] Fix a typo in a test name and fix quote consistenc…
jamesderlin Sep 9, 2020
d584424
[in_app_purchase] Fix typo on `simulatesAskToBuyInSandBox` (#3016)
Sep 11, 2020
4e26841
[google_maps_flutter_web] Allow Markers with icon:null (#2998)
ditman Sep 11, 2020
6b63ca2
[in_app_purchase] Removed maintaining own cache of transactions (#2911)
kinex Sep 11, 2020
27322a5
[integration_test] Recommend tests to be in `integration_test/`, fix …
jiahaog Sep 12, 2020
269a716
Fix formatting (#3023)
jiahaog Sep 12, 2020
b6c33d7
Add url_launcher_windows (#3015)
stuartmorgan-g Sep 12, 2020
d1543cf
[in_app_purchase]fix version (#3022)
Sep 12, 2020
5589616
[android_alarm_manager] Android Code Inspection and Clean up (#3020)
hamdikahloun Sep 14, 2020
6004e6d
[google_sign_in_web] Ensure plugin throws PlatformExceptions (#2943)
ditman Sep 14, 2020
49c9f17
[android_alarm_manager] version fix (#3028)
Sep 14, 2020
bbd7fbe
[url_launcher] Endorse Windows implementation (#3024)
stuartmorgan-g Sep 15, 2020
9a5b73e
remove android folders (#3030)
Sep 16, 2020
f691799
Update CODEOWNERS (#3034)
creativecreatorormaybenot Sep 16, 2020
72254cf
[share] MethodCallHandler.java uses unchecked or unsafe operations (#…
hamdikahloun Sep 17, 2020
53e0f20
[camera] CameraPlugin.java uses or overrides a deprecated API (#3018)
hamdikahloun Sep 17, 2020
15c2cb5
[video_player] VideoPlayerPlugin.java uses or overrides a deprecated …
hamdikahloun Sep 17, 2020
7ceba00
[image_picker] Updated docs getImage() about preference rear front no…
anniek-valk Sep 17, 2020
2bc1f7e
Removed unnecessary null checks
danielroek Sep 18, 2020
4629878
Updated version in pubspec.yaml
danielroek Sep 18, 2020
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
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ task:
- ./chromedriver/chromedriver --port=4444 &
test_script:
- cd $INTEGRATION_TEST_PATH/example/
- flutter drive -v --target=test_driver/example_integration.dart -d web-server --release --browser-name=chrome
- flutter drive -v --driver=test_driver/integration_test_driver.dart --target=integration_test/example_test.dart -d web-server --release --browser-name=chrome
- name: build-apks+java-test+firebase-test-lab
env:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BasedOnStyle: Google
38 changes: 19 additions & 19 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
# These names are just suggestions. It is fine to have your changes
# reviewed by someone else.

packages/android_alarm_manager/* @bkonyi
packages/android_intent/* @mklim @matthew-carroll
packages/battery/* @amirh @matthew-carroll
packages/camera/* @bparrishMines
packages/connectivity/* @cyanglaz @matthew-carroll
packages/device_info/* @matthew-carroll
packages/espresso/* @collinjackson @adazh
packages/google_maps_flutter/* @cyanglaz
packages/google_sign_in/* @cyanglaz @mehmetf
packages/image_picker/* @cyanglaz
packages/integration_test/* @dnfield
packages/in_app_purchase/* @mklim @cyanglaz @LHLL
packages/ios_platform_images/* @gaaclarke
packages/package_info/* @cyanglaz @matthew-carroll
packages/path_provider/* @matthew-carroll
packages/shared_preferences/* @matthew-carroll
packages/url_launcher/* @mklim
packages/video_player/* @iskakaushik @cyanglaz
packages/webview_flutter/* @amirh
packages/android_alarm_manager/** @bkonyi
packages/android_intent/** @mklim @matthew-carroll
packages/battery/** @amirh @matthew-carroll
packages/camera/** @bparrishMines
packages/connectivity/** @cyanglaz @matthew-carroll
packages/device_info/** @matthew-carroll
packages/espresso/** @collinjackson @adazh
packages/google_maps_flutter/** @cyanglaz
packages/google_sign_in/** @cyanglaz @mehmetf
packages/image_picker/** @cyanglaz
packages/integration_test/** @dnfield
packages/in_app_purchase/** @mklim @cyanglaz @LHLL
packages/ios_platform_images/** @gaaclarke
packages/package_info/** @cyanglaz @matthew-carroll
packages/path_provider/** @matthew-carroll
packages/shared_preferences/** @matthew-carroll
packages/url_launcher/** @mklim
packages/video_player/** @iskakaushik @cyanglaz
packages/webview_flutter/** @amirh
4 changes: 4 additions & 0 deletions packages/android_alarm_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.5+13

* Android Code Inspection and Clean up.

## 0.4.5+12

* Update package:e2e reference to use the local version in the flutter/plugins
Expand Down
5 changes: 5 additions & 0 deletions packages/android_alarm_manager/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
group 'io.flutter.plugins.androidalarmmanager'
version '1.0-SNAPSHOT'
def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"]

buildscript {
repositories {
Expand All @@ -19,6 +20,10 @@ rootProject.allprojects {
}
}

project.getTasks().withType(JavaCompile){
options.compilerArgs.addAll(args)
}

apply plugin: 'com.android.library'

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -76,9 +75,8 @@ public static void startBackgroundIsolate(Context context, long callbackHandle)
synchronized (alarmQueue) {
// Handle all the alarm events received before the Dart isolate was
// initialized, then clear the queue.
Iterator<Intent> i = alarmQueue.iterator();
while (i.hasNext()) {
flutterBackgroundExecutor.executeDartCallbackInBackgroundIsolate(i.next(), null);
for (Intent intent : alarmQueue) {
flutterBackgroundExecutor.executeDartCallbackInBackgroundIsolate(intent, null);
}
alarmQueue.clear();
}
Expand Down Expand Up @@ -231,7 +229,7 @@ public static void cancel(Context context, int requestCode) {
}

private static String getPersistentAlarmKey(int requestCode) {
return "android_alarm_manager/persistent_alarm_" + Integer.toString(requestCode);
return "android_alarm_manager/persistent_alarm_" + requestCode;
}

private static void addPersistentAlarm(
Expand Down Expand Up @@ -276,13 +274,14 @@ private static void addPersistentAlarm(
}

private static void clearPersistentAlarm(Context context, int requestCode) {
String request = String.valueOf(requestCode);
SharedPreferences p = context.getSharedPreferences(SHARED_PREFERENCES_KEY, 0);
synchronized (persistentAlarmsLock) {
Set<String> persistentAlarms = p.getStringSet(PERSISTENT_ALARMS_SET_KEY, null);
if ((persistentAlarms == null) || !persistentAlarms.contains(requestCode)) {
if ((persistentAlarms == null) || !persistentAlarms.contains(request)) {
return;
}
persistentAlarms.remove(requestCode);
persistentAlarms.remove(request);
String key = getPersistentAlarmKey(requestCode);
p.edit().remove(key).putStringSet(PERSISTENT_ALARMS_SET_KEY, persistentAlarms).apply();

Expand All @@ -301,14 +300,12 @@ public static void reschedulePersistentAlarms(Context context) {
return;
}

Iterator<String> it = persistentAlarms.iterator();
while (it.hasNext()) {
int requestCode = Integer.parseInt(it.next());
for (String persistentAlarm : persistentAlarms) {
int requestCode = Integer.parseInt(persistentAlarm);
String key = getPersistentAlarmKey(requestCode);
String json = p.getString(key, null);
if (json == null) {
Log.e(
TAG, "Data for alarm request code " + Integer.toString(requestCode) + " is invalid.");
Log.e(TAG, "Data for alarm request code " + requestCode + " is invalid.");
continue;
}
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,37 +107,43 @@ public void onMethodCall(MethodCall call, Result result) {
String method = call.method;
Object arguments = call.arguments;
try {
if (method.equals("AlarmService.start")) {
// This message is sent when the Dart side of this plugin is told to initialize.
long callbackHandle = ((JSONArray) arguments).getLong(0);
// In response, this (native) side of the plugin needs to spin up a background
// Dart isolate by using the given callbackHandle, and then setup a background
// method channel to communicate with the new background isolate. Once completed,
// this onMethodCall() method will receive messages from both the primary and background
// method channels.
AlarmService.setCallbackDispatcher(context, callbackHandle);
AlarmService.startBackgroundIsolate(context, callbackHandle);
result.success(true);
} else if (method.equals("Alarm.periodic")) {
// This message indicates that the Flutter app would like to schedule a periodic
// task.
PeriodicRequest periodicRequest = PeriodicRequest.fromJson((JSONArray) arguments);
AlarmService.setPeriodic(context, periodicRequest);
result.success(true);
} else if (method.equals("Alarm.oneShotAt")) {
// This message indicates that the Flutter app would like to schedule a one-time
// task.
OneShotRequest oneShotRequest = OneShotRequest.fromJson((JSONArray) arguments);
AlarmService.setOneShot(context, oneShotRequest);
result.success(true);
} else if (method.equals("Alarm.cancel")) {
// This message indicates that the Flutter app would like to cancel a previously
// scheduled task.
int requestCode = ((JSONArray) arguments).getInt(0);
AlarmService.cancel(context, requestCode);
result.success(true);
} else {
result.notImplemented();
switch (method) {
case "AlarmService.start":
// This message is sent when the Dart side of this plugin is told to initialize.
long callbackHandle = ((JSONArray) arguments).getLong(0);
// In response, this (native) side of the plugin needs to spin up a background
// Dart isolate by using the given callbackHandle, and then setup a background
// method channel to communicate with the new background isolate. Once completed,
// this onMethodCall() method will receive messages from both the primary and background
// method channels.
AlarmService.setCallbackDispatcher(context, callbackHandle);
AlarmService.startBackgroundIsolate(context, callbackHandle);
result.success(true);
break;
case "Alarm.periodic":
// This message indicates that the Flutter app would like to schedule a periodic
// task.
PeriodicRequest periodicRequest = PeriodicRequest.fromJson((JSONArray) arguments);
AlarmService.setPeriodic(context, periodicRequest);
result.success(true);
break;
case "Alarm.oneShotAt":
// This message indicates that the Flutter app would like to schedule a one-time
// task.
OneShotRequest oneShotRequest = OneShotRequest.fromJson((JSONArray) arguments);
AlarmService.setOneShot(context, oneShotRequest);
result.success(true);
break;
case "Alarm.cancel":
// This message indicates that the Flutter app would like to cancel a previously
// scheduled task.
int requestCode = ((JSONArray) arguments).getInt(0);
AlarmService.cancel(context, requestCode);
result.success(true);
break;
default:
result.notImplemented();
break;
}
} catch (JSONException e) {
result.error("error", "JSON error: " + e.getMessage(), null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ private void onInitialized() {
@Override
public void onMethodCall(MethodCall call, Result result) {
String method = call.method;
Object arguments = call.arguments;
try {
if (method.equals("AlarmService.initialized")) {
// This message is sent by the background method channel as soon as the background isolate
Expand Down Expand Up @@ -152,20 +151,16 @@ public void startBackgroundIsolate(Context context, long callbackHandle) {
}

Log.i(TAG, "Starting AlarmService...");
String appBundlePath = FlutterMain.findAppBundlePath(context);
String appBundlePath = FlutterMain.findAppBundlePath();
AssetManager assets = context.getAssets();
if (appBundlePath != null && !isRunning()) {
if (!isRunning()) {
backgroundFlutterEngine = new FlutterEngine(context);

// We need to create an instance of `FlutterEngine` before looking up the
// callback. If we don't, the callback cache won't be initialized and the
// lookup will fail.
FlutterCallbackInformation flutterCallback =
FlutterCallbackInformation.lookupCallbackInformation(callbackHandle);
if (flutterCallback == null) {
Log.e(TAG, "Fatal: failed to find callback");
return;
}

DartExecutor executor = backgroundFlutterEngine.getDartExecutor();
initializeMethodChannel(executor);
Expand Down
2 changes: 1 addition & 1 deletion packages/android_alarm_manager/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Flutter plugin for accessing the Android AlarmManager service, and
# 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
version: 0.4.5+11
version: 0.4.5+13
homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager

dependencies:
Expand Down
4 changes: 4 additions & 0 deletions packages/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.8+6

* Avoiding uses or overrides a deprecated API in CameraPlugin.java.

## 0.5.8+5

* Fix compilation/availability issues on iOS.
Expand Down
5 changes: 5 additions & 0 deletions packages/camera/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
group 'io.flutter.plugins.camera'
version '1.0-SNAPSHOT'
def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"]

buildscript {
repositories {
Expand All @@ -19,6 +20,10 @@ rootProject.allprojects {
}
}

project.getTasks().withType(JavaCompile){
options.compilerArgs.addAll(args)
}

apply plugin: 'com.android.library'

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void onAttachedToActivity(@NonNull ActivityPluginBinding binding) {
binding.getActivity(),
flutterPluginBinding.getBinaryMessenger(),
binding::addRequestPermissionsResultListener,
flutterPluginBinding.getFlutterEngine().getRenderer());
flutterPluginBinding.getTextureRegistry());
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion 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.5.8+5
version: 0.5.8+6

homepage: https://github.com/flutter/plugins/tree/master/packages/camera

Expand Down
1 change: 1 addition & 0 deletions packages/connectivity/connectivity_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Update package:e2e reference to use the local version in the flutter/plugins
repository.
* Remove no-op android folder in the example app.

## 0.1.0+4

Expand Down

This file was deleted.

This file was deleted.

Loading