create static method
LCP service factory.
Implementation
static LcpService? create(
SharedPreferences preferences, LcpClient lcpClient) {
if (!lcpClient.isAvailable) {
return null;
}
LcpDatabase db = LcpDatabase.instance;
NetworkService network = NetworkService();
DeviceService device = DeviceService(db.licenses, network, preferences);
CrlService crl = CrlService(network, preferences);
PassphrasesService passphrases =
PassphrasesService(db.transactions, lcpClient);
return LicensesService(
db.licenses, crl, device, network, passphrases, preferences, lcpClient);
}