add platform check & block screenshot if Android or IOS

This commit is contained in:
2024-09-11 11:44:20 +02:00
parent 687a28f158
commit b161d5b4b5
6 changed files with 41 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import Foundation
import app_links
import device_info_plus
import google_sign_in_ios
import no_screenshot
import path_provider_foundation
import shared_preferences_foundation
import sign_in_with_apple
@@ -18,6 +19,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin"))
NoScreenshotPlugin.register(with: registry.registrar(forPlugin: "NoScreenshotPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SignInWithApplePlugin.register(with: registry.registrar(forPlugin: "SignInWithApplePlugin"))