sapsis_secure_device_check 0.0.3 copy "sapsis_secure_device_check: ^0.0.3" to clipboard
sapsis_secure_device_check: ^0.0.3 copied to clipboard

SecurityCheck is a utility class that performs basic Android And IOS device security checks. It helps identifywhethera device has security settings enabled that may increase the risk of tampering or debugging

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:sapsis_secure_device_check/sapsis_secure_device_check.dart';

/// Entry point of the example application.
void main() {
  runApp(const MyApp());
}

/// Example application demonstrating how to use the
/// Sapsis Secure Device Check plugin.
class MyApp extends StatefulWidget {
  /// Creates the example application.
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

/// State class for the example application.
///
/// It retrieves the device security information from the plugin
/// and displays the results in a list.
class _MyAppState extends State<MyApp> {
  Map<String, dynamic> deviceInfo = {};

  @override
  void initState() {
    super.initState();
    loadData();
  }

  /// Loads the device security information from the plugin.
  Future<void> loadData() async {
    final data = await SapsisSecureDeviceCheck.deviceInformation();
    setState(() {
      deviceInfo = data;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Sapsis Secure Device Check"),
        ),
        body: Padding(
          padding: const EdgeInsets.all(16),
          child: ListView(
            children: deviceInfo.entries.map((entry) {
              return Card(
                child: ListTile(
                  title: Text(entry.key),
                  subtitle: Text(entry.value.toString()),
                ),
              );
            }).toList(),
          ),
        ),
      ),
    );
  }
}
4
likes
140
points
222
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

SecurityCheck is a utility class that performs basic Android And IOS device security checks. It helps identifywhethera device has security settings enabled that may increase the risk of tampering or debugging

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sapsis_secure_device_check

Packages that implement sapsis_secure_device_check