Use credentials.js instead of native.js

This commit is contained in:
Filipe Brito 2019-08-22 14:53:57 -03:00
parent 5be22d88d6
commit e3a66d92ba
4 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ import sendMessage, { getMessage, sendMessageCall } from './methods/sendMessage'
import { sendFileMessage, cancelUpload, isUploadActive } from './methods/sendFileMessage'; import { sendFileMessage, cancelUpload, isUploadActive } from './methods/sendFileMessage';
import { getDeviceToken } from '../notifications/push'; import { getDeviceToken } from '../notifications/push';
import { SERVERS, SERVER_URL } from '../constants/native'; import { SERVERS, SERVER_URL } from '../constants/credentials';
const TOKEN_KEY = 'reactnativemeteor_usertoken'; const TOKEN_KEY = 'reactnativemeteor_usertoken';
const SORT_PREFS_KEY = 'RC_SORT_PREFS_KEY'; const SORT_PREFS_KEY = 'RC_SORT_PREFS_KEY';

View File

@ -14,7 +14,7 @@ import Navigation from '../lib/Navigation';
import database from '../lib/realm'; import database from '../lib/realm';
import { import {
SERVERS, SERVER_ICON, SERVER_NAME, SERVER_URL, TOKEN, USER_ID SERVERS, SERVER_ICON, SERVER_NAME, SERVER_URL, TOKEN, USER_ID
} from '../constants/native'; } from '../constants/credentials';
import { isIOS } from '../utils/deviceInfo'; import { isIOS } from '../utils/deviceInfo';
const restore = function* restore() { const restore = function* restore() {

View File

@ -15,7 +15,7 @@ import RocketChat from '../lib/rocketchat';
import database from '../lib/realm'; import database from '../lib/realm';
import log from '../utils/log'; import log from '../utils/log';
import I18n from '../i18n'; import I18n from '../i18n';
import { SERVERS, TOKEN, SERVER_URL } from '../constants/native'; import { SERVERS, TOKEN, SERVER_URL } from '../constants/credentials';
const getServerInfo = function* getServerInfo({ server, raiseError = true }) { const getServerInfo = function* getServerInfo({ server, raiseError = true }) {
try { try {