- GeminiService (integrations/gemini, @Global): extractDocument (OCR fields) + faceMatch; graceful if no GEMINI_API_KEY - documents: face-match now real via Gemini; POST /admin/documents/:id/ocr extracts fields for CS auto-fill - roles: PATCH /admin/users/:id/role (admin) + POST /platform/users/role (bootstrap via x-platform-secret) - config: gemini + platform.secret; .env.example entries Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
527 B
Dart
16 lines
527 B
Dart
import 'package:flutter/services.dart';
|
|
|
|
class OverlayMethodChannel {
|
|
// 1. تم تصحيح اسم القناة ليتطابق مع ملف MainActivity.kt [1]
|
|
static const _channel = MethodChannel('com.intaleq_driver/app_control');
|
|
|
|
static Future bringToForeground() async {
|
|
try {
|
|
// استدعاء الدالة المعرفة في الكوتلن [3]
|
|
await _channel.invokeMethod('bringToForeground');
|
|
} on PlatformException catch (e) {
|
|
print('Error bringing app to foreground: $e');
|
|
}
|
|
}
|
|
}
|