UNPKG

@aws-amplify/core

Version:
23 lines (21 loc) 800 B
'use strict'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.getClientInfo = void 0; const react_native_1 = require("react-native"); const Logger_1 = require("../../Logger"); const logger = new Logger_1.ConsoleLogger('getClientInfo'); const getClientInfo = () => { const dim = react_native_1.Dimensions.get('screen'); logger.debug(react_native_1.Platform, dim); const OS = 'android'; const { Version } = react_native_1.Platform; return { platform: OS, version: String(Version), appVersion: [OS, String(Version)].join('/'), }; }; exports.getClientInfo = getClientInfo; //# sourceMappingURL=getClientInfo.android.js.map