mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Removes plugin registration from add-to-app's Android "using plugin" sample
This commit is contained in:
committed by
Andrew Brogdon
parent
dd14240dab
commit
49ae463045
@@ -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, _ ->
|
||||
|
||||
Reference in New Issue
Block a user