UNPKG

@azerion/bluestack-sdk-react-native

Version:

BlueStack provides functionalities for monetizing your mobile application: from premium sales with rich media, video and innovative formats, it facilitates inserting native mobile ads as well all standard display formats. BlueStack SDK is a library that a

26 lines (25 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } const prefix = [' %c %c %c Bluestack SDK %c %c %c ', 'background: #278CEB', 'background:#006db6', 'color: #fff; ' + 'background: #001c4a;', 'background: #006db6', 'background: #278CEB', '']; class Logger { constructor() { _defineProperty(this, "debug", false); } log(...data) { if (!this.debug) { return; } console.log.apply(console, prefix.concat(...data)); } setDebug(dbg = false) { return this.debug = dbg; } } var _default = exports.default = new Logger(); //# sourceMappingURL=Logger.js.map