hasFastlane static method
Implementation
static bool hasFastlane({String? projectRoot}) {
final root = projectRoot ?? Directory.current.path;
final pathsToCheck = [
p.join(root, 'fastlane'), // root/fastlane
p.join(root, 'Fastfile'), // root/Fastfile
p.join(root, 'ios', 'fastlane'), // ios/fastlane
p.join(root, 'ios', 'Fastfile'), // ios/Fastfile
p.join(root, 'android', 'fastlane'), // android/fastlane
p.join(root, 'android', 'Fastfile'), // android/Fastfile
];
for (final path in pathsToCheck) {
if (FileSystemEntity.typeSync(path) != FileSystemEntityType.notFound) {
return true;
}
}
return false;
}