File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const main = require('./lib/main').main
3
3
let dataPath = "test/objc/RuntimeStub.h"
4
4
let option = {
5
5
output : 'test/dart' ,
6
- template : 'package ' ,
6
+ template : 'plugin ' ,
7
7
projectName : 'testPlugin'
8
8
}
9
9
Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ function formatDartFile(dartPath) {
112
112
}
113
113
114
114
function createFlutterPackage ( template , projectName ) {
115
- var command = 'flutter create --platforms=android,ios --template=' + template + ' --project-name ' + projectName + ' ' + outputDir
115
+ var command = 'flutter create'
116
+ if ( template == 'plugin' ) {
117
+ command += '--platforms=android,ios --template=' + template
118
+ }
119
+ command += ' --project-name ' + projectName + ' ' + outputDir
116
120
execSync ( command , { stdio : 'inherit' } )
117
121
}
118
122
You can’t perform that action at this time.
0 commit comments