Skip to content

Commit c6333a6

Browse files
authored
Archive/20191219 (#4)
* [google_sign_in] Pass the client id to the platform interface. (flutter#2427) The param exists in the platform interface but there was no way to pass anything to clientId through the external interface. * [in_app_purchase]Change a comment. (flutter#2329) * re-enable stable CI (flutter#2402) * [flutter_webview] Raise min Flutter SDK to stable (flutter#2425) v2 embedding apps no longer need to special case their Flutter SDK requirement like they have since v0.3.15+3. * [battery] cleanup for Android embedding post 1.12 (flutter#2400) * [google_sign_in] Expose network error (flutter#2398)
1 parent bdebfb8 commit c6333a6

24 files changed

Lines changed: 74 additions & 130 deletions

File tree

.cirrus.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ task:
1616
matrix:
1717
- name: publishable
1818
script:
19-
# Temporarily disabling CI on stable to allow using new Flutter features closely
20-
# before a new release.
21-
# TODO(franciscojma): re-enable this
22-
- flutter channel master
19+
- flutter channel stable
2320
- ./script/check_publish.sh
2421
- name: format
2522
install_script:
@@ -32,11 +29,7 @@ task:
3229
env:
3330
matrix:
3431
CHANNEL: "master"
35-
# Temporarily disabling CI on stable to allow using new Flutter features closely
36-
# before a new release.
37-
# TODO(amirh): re-enable this
38-
# https://github.com/flutter/flutter/issues/46258
39-
# CHANNEL: "stable"
32+
CHANNEL: "stable"
4033
test_script:
4134
# TODO(jackson): Allow web plugins once supported on stable
4235
# https://github.com/flutter/flutter/issues/42864
@@ -59,11 +52,7 @@ task:
5952
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
6053
matrix:
6154
CHANNEL: "master"
62-
# Temporarily disabling CI on stable to allow using new Flutter features closely
63-
# before a new release.
64-
# TODO(amirh): re-enable this
65-
# https://github.com/flutter/flutter/issues/46258
66-
# CHANNEL: "stable"
55+
CHANNEL: "stable"
6756
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
6857
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[07586610af1fdfc894e5969f70ef2458341b9b7e9c3b7c4225a663b4a48732b7208a4d91c3b7d45305a6b55fa2a37fc4]
6958
script:
@@ -130,11 +119,7 @@ task:
130119
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
131120
matrix:
132121
CHANNEL: "master"
133-
# Temporarily disabling CI on stable to allow using new Flutter features closely
134-
# before a new release.
135-
# TODO(amirh): re-enable this
136-
# https://github.com/flutter/flutter/issues/46258
137-
# CHANNEL: "stable"
122+
CHANNEL: "stable"
138123
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
139124
build_script:
140125
# TODO(jackson): Allow web plugins once supported on stable

packages/battery/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.1+7
2+
3+
* Clean up various Android workarounds no longer needed after framework v1.12.
4+
15
## 0.3.1+6
26

37
* Remove the deprecated `author:` field from pubspec.yaml

packages/battery/android/build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,3 @@ android {
3232
disable 'InvalidPackage'
3333
}
3434
}
35-
36-
// TODO(amirh): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
37-
afterEvaluate {
38-
def containsEmbeddingDependencies = false
39-
for (def configuration : configurations.all) {
40-
for (def dependency : configuration.dependencies) {
41-
if (dependency.group == 'io.flutter' &&
42-
dependency.name.startsWith('flutter_embedding') &&
43-
dependency.isTransitive())
44-
{
45-
containsEmbeddingDependencies = true
46-
break
47-
}
48-
}
49-
}
50-
if (!containsEmbeddingDependencies) {
51-
android {
52-
dependencies {
53-
def lifecycle_version = "1.1.1"
54-
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
55-
compileOnly "android.arch.lifecycle:common:$lifecycle_version"
56-
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
57-
}
58-
}
59-
}
60-
}

packages/battery/android/src/main/java/io/flutter/plugins/battery/BatteryPlugin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ public static void registerWith(PluginRegistry.Registrar registrar) {
3939

4040
@Override
4141
public void onAttachedToEngine(FlutterPluginBinding binding) {
42-
onAttachedToEngine(
43-
binding.getApplicationContext(), binding.getFlutterEngine().getDartExecutor());
42+
onAttachedToEngine(binding.getApplicationContext(), binding.getBinaryMessenger());
4443
}
4544

4645
private void onAttachedToEngine(Context applicationContext, BinaryMessenger messenger) {

packages/battery/example/android/app/src/androidTest/java/io/flutter/plugins/battery/MainActivityTest.java renamed to packages/battery/example/android/app/src/androidTest/java/io/flutter/plugins/battery/FlutterActivityTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
import androidx.test.rule.ActivityTestRule;
88
import dev.flutter.plugins.e2e.FlutterRunner;
9+
import io.flutter.embedding.android.FlutterActivity;
910
import org.junit.Rule;
1011
import org.junit.runner.RunWith;
1112

1213
@RunWith(FlutterRunner.class)
13-
public class MainActivityTest {
14-
@Rule public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class);
14+
public class FlutterActivityTest {
15+
@Rule
16+
public ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);
1517
}

packages/battery/example/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<uses-permission android:name="android.permission.INTERNET"/>
55

66
<application android:name="io.flutter.app.FlutterApplication" android:label="battery_example" android:icon="@mipmap/ic_launcher">
7-
<activity android:name=".MainActivity"
7+
<activity android:name="io.flutter.embedding.android.FlutterActivity"
88
android:launchMode="singleTop"
99
android:theme="@android:style/Theme.Black.NoTitleBar"
1010
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
@@ -22,5 +22,8 @@
2222
android:hardwareAccelerated="true"
2323
android:windowSoftInputMode="adjustResize">
2424
</activity>
25+
<meta-data
26+
android:name="flutterEmbedding"
27+
android:value="2" />
2528
</application>
2629
</manifest>

packages/battery/example/android/app/src/main/java/io/flutter/plugins/batteryexample/EmbedderV1Activity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
package io.flutter.plugins.batteryexample;
66

77
import android.os.Bundle;
8+
import dev.flutter.plugins.e2e.E2EPlugin;
89
import io.flutter.app.FlutterActivity;
9-
import io.flutter.plugins.GeneratedPluginRegistrant;
10+
import io.flutter.plugins.battery.BatteryPlugin;
1011

1112
public class EmbedderV1Activity extends FlutterActivity {
1213
@Override
1314
protected void onCreate(Bundle savedInstanceState) {
1415
super.onCreate(savedInstanceState);
15-
GeneratedPluginRegistrant.registerWith(this);
16+
BatteryPlugin.registerWith(registrarFor("io.flutter.plugins.battery.BatteryPlugin"));
17+
E2EPlugin.registerWith(registrarFor("dev.flutter.plugins.e2e.E2EPlugin"));
1618
}
1719
}

packages/battery/example/android/app/src/main/java/io/flutter/plugins/batteryexample/MainActivity.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/battery/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: battery
22
description: Flutter plugin for accessing information about the battery state
33
(full, charging, discharging) on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/battery
5-
version: 0.3.1+6
5+
version: 0.3.1+7
66

77
flutter:
88
plugin:

packages/google_sign_in/google_sign_in/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 4.1.2
2+
3+
* Added a new error code `network_error`, and return it when a network error occurred.
4+
5+
## 4.1.1
6+
7+
* Support passing `clientId` to the web plugin programmatically.
8+
19
## 4.1.0
210

311
* Support web by default.

0 commit comments

Comments
 (0)