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:
Gerzon Z 2022-04-12 12:37:28 -04:00 committed by GitHub
parent b9651493d2
commit 99ea5d8e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ import EventEmitter from './utils/events';
import { appInit, appInitLocalSettings, setMasterDetail as setMasterDetailAction } from './actions/app'; import { appInit, appInitLocalSettings, setMasterDetail as setMasterDetailAction } from './actions/app';
import { deepLinkingOpen } from './actions/deepLinking'; import { deepLinkingOpen } from './actions/deepLinking';
import parseQuery from './lib/methods/helpers/parseQuery'; 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 { toggleAnalyticsEventsReport, toggleCrashErrorsReport } from './utils/log';
import { ThemeContext, TSupportedThemes } from './theme'; import { ThemeContext, TSupportedThemes } from './theme';
import { DimensionsContext } from './dimensions'; import { DimensionsContext } from './dimensions';

View File

@ -2,7 +2,7 @@ import * as FileSystem from 'expo-file-system';
import { Rocketchat as RocketchatClient } from '@rocket.chat/sdk'; import { Rocketchat as RocketchatClient } from '@rocket.chat/sdk';
import Model from '@nozbe/watermelondb/Model'; import Model from '@nozbe/watermelondb/Model';
import { getDeviceToken } from '../../notifications/push'; import { getDeviceToken } from '../notifications';
import { extractHostname } from '../../utils/server'; import { extractHostname } from '../../utils/server';
import { BASIC_AUTH_KEY } from '../../utils/fetch'; import { BASIC_AUTH_KEY } from '../../utils/fetch';
import database, { getDatabase } from '../database'; import database, { getDatabase } from '../database';

View File

@ -1,8 +1,8 @@
import EJSON from 'ejson'; import EJSON from 'ejson';
import { store } from '../../lib/store/auxStore'; import { store } from '../store/auxStore';
import { deepLinkingOpen } from '../../actions/deepLinking'; import { deepLinkingOpen } from '../../actions/deepLinking';
import { isFDroidBuild } from '../../lib/constants'; import { isFDroidBuild } from '../constants';
import PushNotification from './push'; import PushNotification from './push';
import { INotification, SubscriptionType } from '../../definitions'; import { INotification, SubscriptionType } from '../../definitions';

View File

@ -10,7 +10,7 @@ import {
import { INotification } from '../../definitions/INotification'; import { INotification } from '../../definitions/INotification';
import { isIOS } from '../../utils/deviceInfo'; import { isIOS } from '../../utils/deviceInfo';
import { store as reduxStore } from '../../lib/store/auxStore'; import { store as reduxStore } from '../store/auxStore';
import I18n from '../../i18n'; import I18n from '../../i18n';
class PushNotification { class PushNotification {

View File

@ -14,7 +14,7 @@ import { TEAM_TYPE } from '../../definitions/ITeam';
import { Encryption } from '../encryption'; import { Encryption } from '../encryption';
import { TParams } from '../../definitions/ILivechatEditView'; import { TParams } from '../../definitions/ILivechatEditView';
import { store as reduxStore } from '../store/auxStore'; import { store as reduxStore } from '../store/auxStore';
import { getDeviceToken } from '../../notifications/push'; import { getDeviceToken } from '../notifications';
import { getBundleId, isIOS } from '../../utils/deviceInfo'; import { getBundleId, isIOS } from '../../utils/deviceInfo';
import roomTypeToApiType, { RoomTypes } from '../methods/roomTypeToApiType'; import roomTypeToApiType, { RoomTypes } from '../methods/roomTypeToApiType';
import sdk from './sdk'; import sdk from './sdk';

View File

@ -1,7 +1,7 @@
import { select, takeLatest } from 'redux-saga/effects'; import { select, takeLatest } from 'redux-saga/effects';
import RocketChat from '../lib/rocketchat'; import RocketChat from '../lib/rocketchat';
import { setBadgeCount } from '../notifications/push'; import { setBadgeCount } from '../lib/notifications/push';
import log from '../utils/log'; import log from '../utils/log';
import { localAuthenticate, saveLastLocalAuthenticationSession } from '../utils/localAuthentication'; import { localAuthenticate, saveLastLocalAuthenticationSession } from '../utils/localAuthentication';
import { APP_STATE } from '../actions/actionsTypes'; import { APP_STATE } from '../actions/actionsTypes';