Skip to content

Commit 1aa3567

Browse files
Feon SuaFeon Sua
Feon Sua
authored and
Feon Sua
committed
[ALOY-1232] : --deploy-type ignored on android builds for emulator and device
1 parent 28eadfd commit 1aa3567

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

hooks/alloy.js

+2-18
Original file line numberDiff line numberDiff line change
@@ -166,24 +166,8 @@ exports.init = function (logger, config, cli, appc) {
166166
}
167167

168168
cli.addHook('build.pre.compile', function (build, finished) {
169-
// TODO: Remove this workaround when the CLI reports the right deploy type for android
170-
var deployType = build.deployType;
171-
var target = build.target;
172-
173-
if (cli.argv.platform === 'android') {
174-
switch(target) {
175-
case 'dist-playstore':
176-
deployType = 'production';
177-
break;
178-
case 'device':
179-
deployType = 'test';
180-
break;
181-
case 'emulator':
182-
default:
183-
deployType = 'development';
184-
break;
185-
}
186-
}
169+
var deployType = build.deployType,
170+
target = build.target;
187171

188172
run(build.deviceFamily, deployType, target, finished);
189173
});

0 commit comments

Comments
 (0)