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 @@ -112,7 +112,7 @@ function formatDartFile(dartPath) {
112
112
}
113
113
114
114
function createFlutterPackage ( template , projectName ) {
115
- var command = 'flutter create --template=' + template + ' --project-name ' + projectName + ' ' + outputDir
115
+ var command = 'flutter create --platforms=android,ios -- template=' + template + ' --project-name ' + projectName + ' ' + outputDir
116
116
execSync ( command , { stdio : 'inherit' } )
117
117
}
118
118
@@ -130,7 +130,7 @@ function writeDependencyToPubSpec(filePath) {
130
130
131
131
function generateDartWithWorker ( content , path , script ) {
132
132
return new Promise ( ( resolve , reject ) => {
133
- if ( this . isMainThread ) {
133
+ if ( this . isMainThread || ! isSupportWorkerThreads ) {
134
134
const convert = require ( script ) . convert
135
135
convert ( content , ( result , error ) => {
136
136
resolve ( { result : result , error : error } )
You can’t perform that action at this time.
0 commit comments