From 5502ddaf0d814a0b4c8c106ad7351c9e40c382e9 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 2 Nov 2017 14:17:10 -0700 Subject: [PATCH] CB-13530: This fixes the basic APK installation --- bin/templates/cordova/lib/builders/GenericBuilder.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/builders/GenericBuilder.js b/bin/templates/cordova/lib/builders/GenericBuilder.js index 5c4215d6..47d57af9 100644 --- a/bin/templates/cordova/lib/builders/GenericBuilder.js +++ b/bin/templates/cordova/lib/builders/GenericBuilder.js @@ -106,10 +106,14 @@ function apkSorter (fileA, fileB) { } function findOutputApksHelper (dir, build_type, arch) { + console.log("Directory: " + dir); + console.log("Build Type: " + build_type); + console.log("Arch: " + arch); + var shellSilent = shell.config.silent; shell.config.silent = true; - var ret = shell.ls(path.join(dir, '*.apk')).filter(function (candidate) { + var ret = shell.ls(path.join(dir, build_type, '*.apk')).filter(function (candidate) { var apkName = path.basename(candidate); // Need to choose between release and debug .apk. if (build_type === 'debug') {