From ba8c37767ae5cebb6d444f5038cca6e02f4c6ab3 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 2 May 2026 20:54:30 +0300 Subject: [PATCH] service 2-5-26-2 --- android/app/build.gradle.kts | 2 +- ios/Runner/AppDelegate.swift | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 6ffa94b..7f1b852 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -28,7 +28,7 @@ if (keystorePropertiesFile.exists()) { android { namespace = "com.service_intaleq" compileSdk = 36 - // ndkVersion = "27.0.12077973" + ndkVersion = "28.2.13676358" defaultConfig { applicationId = "com.service_intaleq" diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 6266644..dc90277 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -7,7 +7,26 @@ import UIKit _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { + let controller : FlutterViewController = window?.rootViewController as! FlutterViewController + let securityChannel = FlutterMethodChannel(name: "com.service_intaleq/security", + binaryMessenger: controller.binaryMessenger) + + securityChannel.setMethodCallHandler({ + (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in + if (call.method == "getAppSignature") { + // For iOS, we use a high-entropy secure token (Shared Secret) + // that matches the one stored on the server environment. + result("b9d8e7f1a2c3d4e5f607182930415263748596a7b8c9d0e1f2a3b4c5d6e7f809") + } else if (call.method == "isNativeRooted") { + // Basic check for iOS jailbreak can be added here if needed + result(false) + } else { + result(FlutterMethodNotImplemented) + } + }) + GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } +