getBundleName method
Implementation
String getBundleName() {
String? bundlePath;
switch (this) {
case Platform.ios:
bundlePath = 'ios/Runner/Info.plist';
if (!File(bundlePath).existsSync()) {
bundlePath = 'ios/Runner/Info-Debug.plist';
}
break;
default:
throw PlatformNotImplementedException(this);
}
if (!isPathExists(bundlePath)) {
throw PathDoesNotExistsException(bundlePath);
}
switch (this) {
case Platform.ios:
return getIOSBundleName(bundlePath)!;
default:
throw PlatformNotImplementedException(this);
}
}