dev_guard 1.0.4 copy "dev_guard: ^1.0.4" to clipboard
dev_guard: ^1.0.4 copied to clipboard

A high-performance remote licensing and app-protection plugin for Flutter. Secured by HMAC signatures and native FFI (Secure Enclave), it enables developers to remotely lock, warn, or sync application [...]

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await DevGuard.init(
    projectId: 'your_project_id',
    secret: 'YOUR_MASTER_SECRET',
    failSafe: FailSafe.open,
  );

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return DevGuard.wrap(
      child: MaterialApp(
        debugShowCheckedModeBanner: false,
        theme: ThemeData.dark(),
        home: Scaffold(
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                const Text(
                  'DevGuard Example',
                  style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
                ),
                const SizedBox(height: 16),
                StreamBuilder(
                  stream: DevGuard.onStatusChanged,
                  builder: (context, snapshot) {
                    final status = DevGuard.currentResponse?.status;
                    return Text('Status: ${status?.name ?? 'pending'}');
                  },
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
140
points
52
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A high-performance remote licensing and app-protection plugin for Flutter. Secured by HMAC signatures and native FFI (Secure Enclave), it enables developers to remotely lock, warn, or sync applications via the DevGuard REST API.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

android_id, battery_plus, connectivity_plus, crypto, device_info_plus, ffi, flutter, flutter_secure_storage, flutter_vault_logger, geolocator, hive_flutter, http, package_info_plus, path_provider, root_jailbreak_guard, url_launcher

More

Packages that depend on dev_guard

Packages that implement dev_guard