UNPKG

maxleap-react-native

Version:
47 lines (38 loc) 1.12 kB
/*! * MaxLeap JavaScript SDK * Built: Mon Jun 03 2013 13:45:00 * https://maxleap.com * * Copyright 2015 MaxLeap, Inc. * The MaxLeap Cloud ReactNative SDK is freely distributable under the MIT license. */ global.ML = module.exports = {}; // global.uuid = require('node-uuid'); ML._ = require('underscore'); ML.VERSION = require('./version'); ML.Promise = require('./promise'); ML.useCNServer = function () { ML.serverURL = 'https://api.maxleap.cn/'; }; ML.useENServer = function () { ML.serverURL = 'https://api.maxleap.com/'; }; ML.useUatServer = function () { ML.serverURL = 'http://apiuat.maxleap.cn'; }; // The module order is important. require('./utils.react-native')(ML); require('./error')(ML); require('./geopoint')(ML); require('./op')(ML); require('./relation')(ML); require('./file.react-native')(ML); require('./object')(ML); require('./user.react-native')(ML); require('./installation.react-native')(ML); require('./query')(ML); require('./cloudfunction.react-native')(ML); require('./analytics.react-native')(ML); require('./config.react-native')(ML); ML.useCNServer(); ML.ML = ML;