build arm64 tool

hmxc
小赖 4 years ago
parent 1b9511d072
commit c0dd98fdba

@ -49,10 +49,6 @@ android {
targetSdkVersion 28 targetSdkVersion 28
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
ndk {
abiFilters 'arm64-v8a'
abiFilters 'armeabi-v7a'
}
manifestPlaceholders = [ manifestPlaceholders = [
JPUSH_PKGNAME : applicationId, JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "6a2c6507e3e8b3187ac1c9f9", JPUSH_APPKEY : "6a2c6507e3e8b3187ac1c9f9",

@ -6,9 +6,15 @@ main(args) => grind(args);
test() => new TestRunner().testAsync(); test() => new TestRunner().testAsync();
@DefaultTask() @DefaultTask()
@Depends(test) buildApk() {
build() { runAsync(
Pub.build(); 'flutter',
arguments: [
'build',
'apk',
'--target-platform=android-arm64',
],
);
} }
@Task() @Task()
@ -24,7 +30,7 @@ void format() {
DartFmt.format(libDir); DartFmt.format(libDir);
} }
@Task() @Task('auto sort and format code')
@Depends(sort, format) @Depends(sort, format)
void git() { void git() {
log(' commit to git'); log(' commit to git');

Loading…
Cancel
Save