diff --git a/android/app/build.gradle b/android/app/build.gradle index 953f94e2..fbdabbb8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -49,10 +49,6 @@ android { targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName - ndk { - abiFilters 'arm64-v8a' - abiFilters 'armeabi-v7a' - } manifestPlaceholders = [ JPUSH_PKGNAME : applicationId, JPUSH_APPKEY : "6a2c6507e3e8b3187ac1c9f9", diff --git a/tool/grind.dart b/tool/grind.dart index 4c6c5a5a..b22b4e34 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -6,9 +6,15 @@ main(args) => grind(args); test() => new TestRunner().testAsync(); @DefaultTask() -@Depends(test) -build() { - Pub.build(); +buildApk() { + runAsync( + 'flutter', + arguments: [ + 'build', + 'apk', + '--target-platform=android-arm64', + ], + ); } @Task() @@ -24,7 +30,7 @@ void format() { DartFmt.format(libDir); } -@Task() +@Task('auto sort and format code') @Depends(sort, format) void git() { log(' commit to git');