mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix: snapshot build for android (#7484)
This commit is contained in:

committed by
Dimitar Topuzov

parent
902916c40d
commit
c0db22d5ee
@ -1,7 +1,6 @@
|
||||
import * as fs from "../file-system/file-system";
|
||||
import * as appCommonModule from "../application/application-common";
|
||||
|
||||
const appFolder = fs.knownFolders.currentApp();
|
||||
const cache = new Set<string>();
|
||||
let initialized = false;
|
||||
|
||||
@ -10,7 +9,7 @@ function register(name, loader) {
|
||||
}
|
||||
|
||||
function processFile(file: fs.File) {
|
||||
const filePathRelativeToApp = file.path.substr(appFolder.path.length + 1);
|
||||
const filePathRelativeToApp = file.path.substr(fs.knownFolders.currentApp().path.length + 1);
|
||||
const loadContent = () => file.readTextSync();
|
||||
|
||||
switch (file.extension.toLocaleLowerCase()) {
|
||||
|
Reference in New Issue
Block a user