package com.idea.gametime

import android.os.Bundle
import com.idea.gametime.health.HealthConnectPlugin
import com.idea.gametime.session.SessionNotificationPlugin
import com.idea.gametime.watch.WatchBridgePlugin
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine

class MainActivity : FlutterFragmentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        HealthConnectPlugin.prepare(this)
        super.onCreate(savedInstanceState)
    }

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        WatchBridgePlugin.register(flutterEngine, applicationContext)
        SessionNotificationPlugin.register(flutterEngine, this)
        HealthConnectPlugin.register(flutterEngine, this)
    }
}
