Skip to content

Commit

Permalink
Merge branch '8_0_X' into TIMOB-26715-8_0_X
Browse files Browse the repository at this point in the history
  • Loading branch information
ssekhri authored Mar 22, 2019
2 parents 2d84540 + d5d4787 commit 6b616d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@ AndroidBuilder.prototype.copyResources = function copyResources(next) {

// copy js files into assets directory and minify if needed
this.logger.info(__('Processing JavaScript files'));
appc.async.series(this, Object.keys(jsFiles).map(function (id) {
appc.async.parallel(this, Object.keys(jsFiles).map(function (id) {
return function (done) {
const from = jsFiles[id];
let to = path.join(this.buildBinAssetsResourcesDir, id);
Expand Down
2 changes: 1 addition & 1 deletion iphone/TitaniumKit/TitaniumKit/Sources/API/TiBlob.m
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ - (id)imageAsCompressed:(id)args
ENSURE_ARG_COUNT(args, 1);

float compressionQuality = [TiUtils floatValue:[args objectAtIndex:0] def:1.0];
return [[[TiBlob alloc] initWithData:UIImageJPEGRepresentation(image, compressionQuality) mimetype:@"image/jpeg"] autorelease];
return [[[TiBlob alloc] _initWithPageContext:[self pageContext] andData:UIImageJPEGRepresentation(image, compressionQuality) mimetype:@"image/jpeg"] autorelease];
}
return nil;
}
Expand Down
4 changes: 2 additions & 2 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5817,7 +5817,7 @@ iOSBuilder.prototype.copyResources = function copyResources(next) {
function processJSFiles(next) {
this.logger.info(__('Processing JavaScript files'));

async.eachSeries(Object.keys(jsFiles), function (file, next) {
async.each(Object.keys(jsFiles), function (file, next) {
setImmediate(function () {
// A JS file ending with "*.bootstrap.js" is to be loaded before the "app.js".
// Add it as a require() compatible string to bootstrap array if it's a match.
Expand Down Expand Up @@ -5880,7 +5880,7 @@ iOSBuilder.prototype.copyResources = function copyResources(next) {
// dest doesn't exist, or new contents differs from existing dest file
if (!exists || newContents !== fs.readFileSync(to).toString()) {
this.logger.debug(__('Copying and minifying %s => %s', from.cyan, to.cyan));
exists && fs.unlinkSync(to);
// no need to delete if it exists, writeFile will overwrite anyways
fs.writeFileSync(to, newContents);
this.jsFilesChanged = true;
} else {
Expand Down

0 comments on commit 6b616d1

Please sign in to comment.