File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function formatDartFile(dartPath) {
6868}
6969
7070function createFlutterPackage ( template , projectName ) {
71- var command = 'flutter create --template=' + template + ' --project-name ' + projectName + ' ' + outputDir
71+ var command = 'flutter create --platforms=android,ios -- template=' + template + ' --project-name ' + projectName + ' ' + outputDir
7272 execSync ( command , { stdio : 'inherit' } )
7373}
7474
@@ -86,7 +86,7 @@ function writeDependencyToPubSpec(filePath) {
8686
8787function generateDartWithWorker ( path , script ) {
8888 return new Promise ( ( resolve , reject ) => {
89- if ( this . isMainThread ) {
89+ if ( this . isMainThread || ! isSupportWorkerThreads ) {
9090 const convert = require ( script ) . convert
9191 convert ( path , ( result , path , error ) => {
9292 resolve ( { result : result , path : path , error : error } )
You can’t perform that action at this time.
0 commit comments