nativescript-dev-android-snapshot
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -84,3 +84,3 @@ var path = require("path"); | ||
if (!common.isSnapshotEnabled(projectData, hookArgs)) { | ||
var bundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle; | ||
var bundle = common.shouldBundle(projectData, hookArgs); | ||
if (platformName === "android" && !bundle) { | ||
@@ -87,0 +87,0 @@ // TODO: Fix this in the CLI if possible |
@@ -43,3 +43,4 @@ var path = require("path"); | ||
if (!common.isSnapshotEnabled(projectData, hookArgs)) { | ||
if (platformName === "android") { | ||
var bundle = common.shouldBundle(projectData, hookArgs); | ||
if (platformName === "android" && !bundle) { | ||
cleanSnapshotData(platformAppDirectory, projectData, "tns-core-modules-snapshot"); | ||
@@ -46,0 +47,0 @@ cleanSnapshotData(platformAppDirectory, projectData, "nativescript-angular-snapshot"); |
@@ -7,2 +7,8 @@ var path = require("path"); | ||
function shouldBundle(projectData, hookArgs) { | ||
return hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle; | ||
} | ||
exports.shouldBundle = shouldBundle; | ||
exports.prepareDeletedModules = function(platformAppDirectory, projectDir) { | ||
@@ -23,3 +29,2 @@ if (!shelljs.test("-e", path.join(platformAppDirectory, "tns_modules/application")) && | ||
var isReleaseBuild = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.release : projectData.$options.release; | ||
var shouldBundle = hookArgs && hookArgs.appFilesUpdaterOptions ? hookArgs.appFilesUpdaterOptions.bundle : projectData.$options.bundle; | ||
@@ -30,3 +35,3 @@ if (process.env[exports.environmentVariableToggleKey] === "0") { | ||
if (shouldBundle) { | ||
if (shouldBundle(projectData, hookArgs)) { | ||
return false; | ||
@@ -33,0 +38,0 @@ } |
{ | ||
"name": "nativescript-dev-android-snapshot", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -0,1 +1,5 @@ | ||
## Deprecated | ||
The plugin is now deprecated. Please use webpack's `NativeScriptSnapshotPlugin` instead. For more information, check out the [documentation article](http://docs.nativescript.org/best-practices/bundling-with-webpack#v8-heap-snapshot). | ||
## Installing | ||
@@ -2,0 +6,0 @@ |
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
21842
311
62