hasUlinkSdk static method

bool hasUlinkSdk(
  1. File podfile
)

Check if ULinkSDK pod is present

Implementation

static bool hasUlinkSdk(File podfile) {
  try {
    final content = podfile.readAsStringSync();
    return content.contains("pod 'ULinkSDK'") ||
        content.contains('pod "ULinkSDK"') ||
        content.contains('pod "ULinkSDK"');
  } catch (e) {
    return false;
  }
}