service 2-5-26-2
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user