|
|
|
@ -11,6 +11,9 @@ import com.ejada.hmg.utils.*
|
|
|
|
import io.flutter.embedding.android.FlutterFragmentActivity
|
|
|
|
import io.flutter.embedding.android.FlutterFragmentActivity
|
|
|
|
import io.flutter.embedding.engine.FlutterEngine
|
|
|
|
import io.flutter.embedding.engine.FlutterEngine
|
|
|
|
import io.flutter.plugins.GeneratedPluginRegistrant
|
|
|
|
import io.flutter.plugins.GeneratedPluginRegistrant
|
|
|
|
|
|
|
|
import com.cloud.diplomaticquarterapp.whatsapp.WhatsApp
|
|
|
|
|
|
|
|
import com.cloud.diplomaticquarterapp.whatsapp.WhatsAppOtpPlatformBridge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MainActivity: FlutterFragmentActivity() {
|
|
|
|
class MainActivity: FlutterFragmentActivity() {
|
|
|
|
@RequiresApi(Build.VERSION_CODES.O)
|
|
|
|
@RequiresApi(Build.VERSION_CODES.O)
|
|
|
|
@ -22,6 +25,10 @@ class MainActivity: FlutterFragmentActivity() {
|
|
|
|
PlatformBridge(flutterEngine, this).create()
|
|
|
|
PlatformBridge(flutterEngine, this).create()
|
|
|
|
OpenTokPlatformBridge(flutterEngine, this).create()
|
|
|
|
OpenTokPlatformBridge(flutterEngine, this).create()
|
|
|
|
PenguinInPlatformBridge(flutterEngine, this).create()
|
|
|
|
PenguinInPlatformBridge(flutterEngine, this).create()
|
|
|
|
|
|
|
|
WhatsAppOtpPlatformBridge(flutterEngine, this).invoke()
|
|
|
|
|
|
|
|
WhatsApp.handleOTP(intent){code ->
|
|
|
|
|
|
|
|
WhatsAppOtpPlatformBridge.result?.success(code);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
|
|
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
|
|
// val mChannel = NotificationChannel("video_call_noti", "video call", NotificationManager.IMPORTANCE_HIGH)
|
|
|
|
// val mChannel = NotificationChannel("video_call_noti", "video call", NotificationManager.IMPORTANCE_HIGH)
|
|
|
|
|