chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-23 20:22:51 -07:00
parent dce812661c
commit e9c42aaef2
7 changed files with 17 additions and 24 deletions

View File

@@ -31,13 +31,6 @@ function ensureImageSource() {
}
}
let platform: typeof platformModule;
function ensurePlatform() {
if (!platform) {
platform = require('../../platform');
}
}
let fs: typeof fsModule;
function ensureFileSystem() {
if (!fs) {
@@ -205,8 +198,6 @@ function buildJavaOptions(options: httpModule.HttpRequestOptions) {
javaOptions.headers = arrayList;
}
ensurePlatform();
// pass the maximum available image size to the request options in case we need a bitmap conversion
javaOptions.screenWidth = Screen.mainScreen.widthPixels;
javaOptions.screenHeight = Screen.mainScreen.heightPixels;

View File

@@ -16,7 +16,7 @@
"rootDir": "./",
"types": ["node"],
"plugins": [
{ "transform": "../webpack/transformers/ns-transform-native-classes.ts", "type": "raw" }
{ "transform": "../../../packages/webpack/transformers/ns-transform-native-classes.ts", "type": "raw" }
]
},
"exclude": ["**/*.spec.ts", "dist", "__tests__"],