xuqm_flutter_license (0.2.0)
由 xuqinmin12 发布于 2026-05-16 09:16:33 +08:00
安装
dart pub add xuqm_flutter_license:0.2.0 --hosted-url=关于这个软件包
XuqmGroup Flutter SDK — License module (device registration & verification)
xuqm_flutter_license
XuqmGroup Flutter SDK — License module for device authorization registration and verification.
Features
- AES-256-GCM + PBKDF2 decryption of
.xuqmlicensefiles - Device authorization via network with 10-minute local cache
- Offline fallback when network is unavailable
- Platform device ID:
ANDROID_ID(Android) /identifierForVendor(iOS) / UUID fallback
Installation
dependencies:
xuqm_flutter_license:
git:
url: https://xuqinmin.com/xuqinmin12/XuqmGroup-FlutterSDK.git
ref: v0.2.2
path: packages/license
Usage
import 'package:flutter/services.dart';
import 'package:xuqm_flutter_license/xuqm_flutter_license.dart' as license;
final content = await rootBundle.loadString('assets/xuqm/license.xuqm');
await license.initializeFromFile(content);
final result = await license.checkLicense();
switch (result) {
case LicenseSuccess(reason: final r):
print('授权通过: $r');
case LicenseError(message: final m):
print('授权失败: $m');
}
License
UNLICENSED — Internal use only.