Skip to content

Commit

Permalink
Migrate to Android Embedding v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnieeeeee authored May 14, 2022
1 parent 7f5f7c3 commit a7506e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="home_widget_example"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
1 change: 1 addition & 0 deletions test/background_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void main() {
PluginUtilities.getCallbackHandle(testCallback)?.toRawHandle();
const testUri = 'homeWidget://homeWidgetTest';

// ignore: body_might_complete_normally_nullable
backgroundChannel.setMockMethodCallHandler((call) {
if (call.method == 'HomeWidget.backgroundInitialized') {
emitEvent(
Expand Down
2 changes: 1 addition & 1 deletion test/home_widget_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui';

import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -140,6 +139,7 @@ void main() {
group('Widget Clicked', () {
test('Send Uris to Stream', () async {
updateChannel.binaryMessenger.setMockMessageHandler(updateChannel.name,
// ignore: body_might_complete_normally_nullable
(message) async {
emitEvent(
updateChannel.codec
Expand Down

0 comments on commit a7506e5

Please sign in to comment.