getMiniProgramLoaderJson method

Future<Uint8List?> getMiniProgramLoaderJson()

Implementation

Future<Uint8List?> getMiniProgramLoaderJson() async{
  final directoryPath = await _getArchiveDirectoryPath(_module.id);
  final filePath = "$directoryPath/app_loader.json";
  final file = File(filePath);

  if(!file.existsSync()) return null;

  final bytes = await file.readAsBytes();
  return bytes;
}