@smartface/contx
Advanced tools
Comparing version 4.2.2 to 4.2.3
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -25,3 +6,2 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var orientation = __importStar(require("@smartface/extension-utils/lib/orientation")); | ||
var system_1 = __importDefault(require("@smartface/native/device/system")); | ||
@@ -33,6 +13,6 @@ function load(src) { | ||
var isTablet = false; | ||
if (system_1.default.OS === "iOS" && orientation.shortEdge >= 720) { | ||
if (system_1.default.OS === system_1.default.OSType.IOS && Math.mix(Screen.width, Screen.heigth) >= 720) { | ||
isTablet = true; | ||
} | ||
else if (system_1.default.OS === "Android") { | ||
else if (system_1.default.OS === system_1.default.OSType.Android) { | ||
AndroidConfig = load('@smartface/native/util/Android/androidconfig'); | ||
@@ -39,0 +19,0 @@ var Activity = AndroidConfig.activity; |
{ | ||
"name": "@smartface/contx", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "Context Manager", | ||
@@ -34,2 +34,3 @@ "scripts": { | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.*", | ||
"chai": "^3.5.0", | ||
@@ -52,3 +53,2 @@ "commitizen": "^4.2.4", | ||
"ts-node": "^10.4.0", | ||
"@types/node": "^14.*", | ||
"typescript": "^4.5.4" | ||
@@ -55,0 +55,0 @@ }, |
Sorry, the diff of this file is not supported yet
163180
2397