1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Removes plugin registration from add-to-app's Android "using plugin" sample

This commit is contained in:
Gonçalo Palma
2019-11-19 21:44:11 +04:00
committed by Andrew Brogdon
parent dd14240dab
commit 49ae463045

View File

@@ -5,7 +5,6 @@
package dev.flutter.example.androidusingplugin
import android.app.Application
import dev.flutter.plugins.GeneratedPluginRegistrant
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.FlutterEngineCache
import io.flutter.embedding.engine.dart.DartExecutor
@@ -30,8 +29,6 @@ class MyApplication : Application() {
FlutterEngineCache.getInstance().put(ENGINE_ID, flutterEngine)
GeneratedPluginRegistrant.registerWith(flutterEngine)
channel = MethodChannel(flutterEngine.dartExecutor, "dev.flutter.example/counter")
channel.setMethodCallHandler { call, _ ->