Copy APK into a known location, so it can be easily discovered (#53718)

This commit is contained in:
Emmanuel Garcia
2020-04-01 10:03:56 -07:00
committed by GitHub
parent b6423e454d
commit e61ab4a832
5 changed files with 53 additions and 17 deletions

View File

@@ -80,8 +80,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'release',
'flutter-apk',
'app-release.apk',
));
@@ -118,8 +117,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'debug',
'flutter-apk',
'app-debug.apk',
));

View File

@@ -77,8 +77,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'release',
'flutter-apk',
'app-release.apk',
));
@@ -116,8 +115,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'debug',
'flutter-apk',
'app-debug.apk',
));

View File

@@ -84,8 +84,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'release',
'flutter-apk',
'app-release.apk',
));
@@ -118,8 +117,7 @@ Future<void> main() async {
'build',
'app',
'outputs',
'apk',
'debug',
'flutter-apk',
'app-debug.apk',
));

View File

@@ -332,10 +332,10 @@ class FlutterPluginProject {
String get rootPath => path.join(parent.path, name);
String get examplePath => path.join(rootPath, 'example');
String get exampleAndroidPath => path.join(examplePath, 'android');
String get debugApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'apk', 'debug', 'app-debug.apk');
String get releaseApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'apk', 'release', 'app-release.apk');
String get releaseArmApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'apk', 'release', 'app-armeabi-v7a-release.apk');
String get releaseArm64ApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'apk', 'release', 'app-arm64-v8a-release.apk');
String get debugApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk');
String get releaseApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'flutter-apk', 'app-release.apk');
String get releaseArmApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'flutter-apk','app-armeabi-v7a-release.apk');
String get releaseArm64ApkPath => path.join(examplePath, 'build', 'app', 'outputs', 'flutter-apk', 'app-arm64-v8a-release.apk');
String get releaseBundlePath => path.join(examplePath, 'build', 'app', 'outputs', 'bundle', 'release', 'app.aab');
Future<void> runGradleTask(String task, {List<String> options}) async {