fix: fix BuildableMacOSApp pass no projectBundleId to super error (#87264)

This commit is contained in:
嘟囔
2021-08-07 05:30:07 +08:00
committed by GitHub
parent bd04a22bbd
commit bffa11e2b6
2 changed files with 13 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ abstract class MacOSApp extends ApplicationPackage {
/// Creates a new [MacOSApp] from a macOS project directory.
factory MacOSApp.fromMacOSProject(MacOSProject project) {
return BuildableMacOSApp(project);
// projectBundleId is unused for macOS apps. Use a placeholder bundle ID.
return BuildableMacOSApp(project, 'com.example.placeholder');
}
/// Creates a new [MacOSApp] from an existing app bundle.
@@ -139,7 +140,7 @@ class PrebuiltMacOSApp extends MacOSApp {
}
class BuildableMacOSApp extends MacOSApp {
BuildableMacOSApp(this.project);
BuildableMacOSApp(this.project, String projectBundleId): super(projectBundleId: projectBundleId);
final MacOSProject project;