import

androidx.annotation.NonNull

import

io.flutter.embedding.android.FlutterActivity

import

io.flutter.embedding.engine.FlutterEngine

import

io.flutter.plugin.common.MethodChannel

class

MainActivity

FlutterActivity

()

private

val

CHANNEL

"samples.flutter.dev/battery"

override

fun

configureFlutterEngine

@NonNull

flutterEngine

FlutterEngine

super

configureFlutterEngine

flutterEngine

MethodChannel

flutterEngine

dartExecutor

binaryMessenger

CHANNEL