You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
525 B
33 lines
525 B
import 'package:grinder/grinder.dart';
|
|
|
|
main(args) => grind(args);
|
|
|
|
@Task()
|
|
test() => new TestRunner().testAsync();
|
|
|
|
@DefaultTask()
|
|
@Depends(test)
|
|
build() {
|
|
Pub.build();
|
|
}
|
|
|
|
@Task()
|
|
clean() => defaultClean();
|
|
|
|
@Task()
|
|
buildApk() async {
|
|
await runAsync('flutter', arguments: [
|
|
'build',
|
|
'apk',
|
|
'--target-platform=android-arm64',
|
|
'--dart-define',
|
|
'ISPRODUCT=true'
|
|
]);
|
|
}
|
|
|
|
@Task()
|
|
buildIos() async {
|
|
await runAsync('flutter',
|
|
arguments: ['build', 'ios', '--dart-define', 'BUILD_TYPE=PRODUCT']);
|
|
}
|