Chore: TypeScript migration - move `notifications/push` to `lib/notifications` (#3999)
* chore: move `notifications/push` to `lib/notifications/push` * update: move `lib/notifications/push` to `lib/notifications` * remove: push.ios.ts
This commit is contained in:
parent
b9651493d2
commit
99ea5d8e2a
|
@ -11,7 +11,7 @@ import EventEmitter from './utils/events';
|
|||
import { appInit, appInitLocalSettings, setMasterDetail as setMasterDetailAction } from './actions/app';
|
||||
import { deepLinkingOpen } from './actions/deepLinking';
|
||||
import parseQuery from './lib/methods/helpers/parseQuery';
|
||||
import { initializePushNotifications, onNotification } from './notifications/push';
|
||||
import { initializePushNotifications, onNotification } from './lib/notifications';
|
||||
import { toggleAnalyticsEventsReport, toggleCrashErrorsReport } from './utils/log';
|
||||
import { ThemeContext, TSupportedThemes } from './theme';
|
||||
import { DimensionsContext } from './dimensions';
|
||||
|
|
|
@ -2,7 +2,7 @@ import * as FileSystem from 'expo-file-system';
|
|||
import { Rocketchat as RocketchatClient } from '@rocket.chat/sdk';
|
||||
import Model from '@nozbe/watermelondb/Model';
|
||||
|
||||
import { getDeviceToken } from '../../notifications/push';
|
||||
import { getDeviceToken } from '../notifications';
|
||||
import { extractHostname } from '../../utils/server';
|
||||
import { BASIC_AUTH_KEY } from '../../utils/fetch';
|
||||
import database, { getDatabase } from '../database';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import EJSON from 'ejson';
|
||||
|
||||
import { store } from '../../lib/store/auxStore';
|
||||
import { store } from '../store/auxStore';
|
||||
import { deepLinkingOpen } from '../../actions/deepLinking';
|
||||
import { isFDroidBuild } from '../../lib/constants';
|
||||
import { isFDroidBuild } from '../constants';
|
||||
import PushNotification from './push';
|
||||
import { INotification, SubscriptionType } from '../../definitions';
|
||||
|
|
@ -10,7 +10,7 @@ import {
|
|||
|
||||
import { INotification } from '../../definitions/INotification';
|
||||
import { isIOS } from '../../utils/deviceInfo';
|
||||
import { store as reduxStore } from '../../lib/store/auxStore';
|
||||
import { store as reduxStore } from '../store/auxStore';
|
||||
import I18n from '../../i18n';
|
||||
|
||||
class PushNotification {
|
|
@ -14,7 +14,7 @@ import { TEAM_TYPE } from '../../definitions/ITeam';
|
|||
import { Encryption } from '../encryption';
|
||||
import { TParams } from '../../definitions/ILivechatEditView';
|
||||
import { store as reduxStore } from '../store/auxStore';
|
||||
import { getDeviceToken } from '../../notifications/push';
|
||||
import { getDeviceToken } from '../notifications';
|
||||
import { getBundleId, isIOS } from '../../utils/deviceInfo';
|
||||
import roomTypeToApiType, { RoomTypes } from '../methods/roomTypeToApiType';
|
||||
import sdk from './sdk';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { select, takeLatest } from 'redux-saga/effects';
|
||||
|
||||
import RocketChat from '../lib/rocketchat';
|
||||
import { setBadgeCount } from '../notifications/push';
|
||||
import { setBadgeCount } from '../lib/notifications/push';
|
||||
import log from '../utils/log';
|
||||
import { localAuthenticate, saveLastLocalAuthenticationSession } from '../utils/localAuthentication';
|
||||
import { APP_STATE } from '../actions/actionsTypes';
|
||||
|
|
Loading…
Reference in New Issue