initializeMiniProgram method

Future<String> initializeMiniProgram()

Implementation

Future<String> initializeMiniProgram() async{
  final versionControl = await _checkModuleVersion();
  print("NUIMiniProgramFileManager: Finished version control with result : $versionControl");
  if(versionControl){
    _updateRecordInDB();
    final indexHtml = await getMiniProgramIndexHtml();
    final file = File(indexHtml);
    final exist = await file.exists();
    print("NUIMiniProgramFileManager: Html=$indexHtml, exists=$exist");
    return indexHtml;
  }
  return '';
}