fix: GH-873 App bundle builds to obey command-line arguments (#941)

This commit is contained in:
Norman Breau
2020-04-01 01:59:39 -03:00
committed by GitHub
parent 6e51943d15
commit c93f93f637
2 changed files with 19 additions and 2 deletions
+17
View File
@@ -113,6 +113,23 @@ describe('ProjectBuilder', () => {
});
expect(args[0]).toBe('clean');
});
describe('should accept extra arguments', () => {
it('apk', () => {
const args = builder.getArgs('debug', {
extraArgs: ['-PcdvVersionCode=12344']
});
expect(args).toContain('-PcdvVersionCode=12344');
});
it('bundle', () => {
const args = builder.getArgs('debug', {
packageType: 'bundle',
extraArgs: ['-PcdvVersionCode=12344']
});
expect(args).toContain('-PcdvVersionCode=12344');
});
});
});
describe('runGradleWrapper', () => {