SetupConfig constructor

SetupConfig({
  1. required String appName,
  2. required String orgDomain,
  3. required String baseClassName,
  4. required TemplateType template,
  5. required String outputDir,
  6. bool createModels = false,
  7. bool createServer = false,
  8. bool useFirebase = false,
  9. String? firebaseProjectId,
  10. bool setupCloudRun = false,
  11. String? serviceAccountKeyPath,
  12. List<String> platforms = const ['android', 'ios', 'web', 'linux', 'macos', 'windows'],
  13. bool? deployHostingRelease,
  14. bool? deployHostingBeta,
  15. String firestoreRegion = 'nam5',
  16. bool initializeFirestore = true,
  17. bool initializeStorage = true,
  18. bool enableEmailAuth = true,
  19. bool enableGoogleAuth = true,
  20. bool? requireBlaze,
  21. bool? setupArtifactCleanup,
  22. int artifactKeepRecent = 5,
  23. int artifactDeleteOlderDays = 30,
  24. int cloudRunKeepRevisions = 3,
  25. JasprRenderMode? jasprRenderMode,
  26. String? jasprServerServiceName,
  27. String embeddedFlutterMount = '/app',
  28. 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'];