SetupConfig constructor
SetupConfig({
- required String appName,
- required String orgDomain,
- required String baseClassName,
- required TemplateType template,
- required String outputDir,
- bool createModels = false,
- bool createServer = false,
- bool useFirebase = false,
- String? firebaseProjectId,
- bool setupCloudRun = false,
- String? serviceAccountKeyPath,
- List<
String> platforms = const ['android', 'ios', 'web', 'linux', 'macos', 'windows'], - bool? deployHostingRelease,
- bool? deployHostingBeta,
- String firestoreRegion = 'nam5',
- bool initializeFirestore = true,
- bool initializeStorage = true,
- bool enableEmailAuth = true,
- bool enableGoogleAuth = true,
- bool? requireBlaze,
- bool? setupArtifactCleanup,
- int artifactKeepRecent = 5,
- int artifactDeleteOlderDays = 30,
- int cloudRunKeepRevisions = 3,
- JasprRenderMode? jasprRenderMode,
- String? jasprServerServiceName,
- String embeddedFlutterMount = '/app',
- List<
String> ? hybridDynamicPrefixes,
Implementation
SetupConfig({
required this.appName,
required this.orgDomain,
required this.baseClassName,
required this.template,
required this.outputDir,
this.createModels = false,
this.createServer = false,
this.useFirebase = false,
this.firebaseProjectId,
this.setupCloudRun = false,
this.serviceAccountKeyPath,
this.platforms = const [
'android',
'ios',
'web',
'linux',
'macos',
'windows',
],
bool? deployHostingRelease,
bool? deployHostingBeta,
this.firestoreRegion = 'nam5',
this.initializeFirestore = true,
this.initializeStorage = true,
this.enableEmailAuth = true,
this.enableGoogleAuth = true,
bool? requireBlaze,
bool? setupArtifactCleanup,
this.artifactKeepRecent = 5,
this.artifactDeleteOlderDays = 30,
this.cloudRunKeepRevisions = 3,
JasprRenderMode? jasprRenderMode,
this.jasprServerServiceName,
this.embeddedFlutterMount = '/app',
List<String>? hybridDynamicPrefixes,
}) : deployHostingRelease = deployHostingRelease ??
_defaultSupportsWebHosting(template, platforms),
deployHostingBeta = deployHostingBeta ??
_defaultSupportsWebHosting(template, platforms),
requireBlaze = requireBlaze ?? (createServer || setupCloudRun),
setupArtifactCleanup = setupArtifactCleanup ?? setupCloudRun,
jasprRenderMode =
jasprRenderMode ?? _defaultJasprRenderMode(template),
hybridDynamicPrefixes =
hybridDynamicPrefixes ?? const <String>['/api', '/auth'];