nativescript-dev-android-snapshot
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -77,3 +77,3 @@ var path = require("path"); | ||
if (!common.isSnapshotEnabled(projectData, hookArgs)) { | ||
var bundle = projectData.$options.bundle; | ||
var bundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle; | ||
if (platformName === "android" && !bundle) { | ||
@@ -80,0 +80,0 @@ // TODO: Fix this in the CLI if possible |
@@ -16,6 +16,10 @@ var path = require("path"); | ||
exports.isSnapshotEnabled = function(projectData, hookArgs) { | ||
if (hookArgs.platform !== "android") { | ||
var isAndroidPlatform = hookArgs && hookArgs.platform && hookArgs.platform.toLowerCase() === "android"; | ||
if (!isAndroidPlatform) { | ||
return false; | ||
} | ||
var isReleaseBuild = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.release : projectData.$options.release; | ||
var shouldBundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle; | ||
if (process.env[exports.environmentVariableToggleKey] === "0") { | ||
@@ -25,7 +29,7 @@ return false; | ||
if (projectData.$options.bundle) { | ||
if (shouldBundle) { | ||
return false; | ||
} | ||
if (projectData.$options.release || process.env[exports.environmentVariableToggleKey]) { | ||
if (isReleaseBuild || process.env[exports.environmentVariableToggleKey]) { | ||
return true; | ||
@@ -32,0 +36,0 @@ } |
{ | ||
"name": "nativescript-dev-android-snapshot", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20470
296