nativescript-dev-assets
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -15,12 +15,10 @@ const fs = require('fs'); | ||
// [3, 4, 1] | ||
return $projectData.$projectHelper.$staticConfig.version.split("."); | ||
const version = $projectData.$projectHelper.$staticConfig.version; | ||
return parseInt(version.replace(/(\.)/g, "")); | ||
}, | ||
getPathToPlatformAssets(hookArgs, $projectData) { | ||
let pathToPlatformAssets; | ||
let currentNVersion = this.getNativeScriptVersion($projectData); | ||
if (currentNVersion[0] >= 3 && currentNVersion[1] >= 4) { | ||
pathToPlatformAssets = path.join($projectData.platformsDir, "/android/app/src/main/assets"); | ||
} else { | ||
pathToPlatformAssets = path.join($projectData.platformsDir, "/android/src/main/assets"); | ||
} | ||
const version = this.getNativeScriptVersion($projectData); | ||
const assetsDir = `android/${ version >= 341 ? "app/src" : "src" }/main/assets`; | ||
const pathToPlatformAssets = path.join($projectData.platformsDir, assetsDir); | ||
return pathToPlatformAssets; | ||
@@ -165,2 +163,2 @@ }, | ||
} | ||
} | ||
} |
{ | ||
"name": "nativescript-dev-assets", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Simple hook allowing you to sync static files into the assets folder inside your Android app.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
13566
310