CB-13530: This fixes the basic APK installation

This commit is contained in:
Joe Bowser 2017-11-02 14:17:10 -07:00
parent 39e6765e64
commit 5502ddaf0d

View File

@ -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') {