Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Move all mobile only features to a subdirectory

Saúl Ibarra Corretgéc5eac63da155
diff --git a/react/features/app/components/App.native.js b/react/features/app/components/App.native.js
index 43cbf6017a..5c467843e3 100644
--- a/react/features/app/components/App.native.js
+++ b/react/features/app/components/App.native.js
@@ -2,11 +2,11 @@
import { Linking } from 'react-native';
-import '../../audio-mode';
-import '../../background';
import { Platform } from '../../base/react';
-import '../../full-screen';
-import '../../wake-lock';
+import '../../mobile/audio-mode';
+import '../../mobile/background';
+import '../../mobile/full-screen';
+import '../../mobile/wake-lock';
import { AbstractApp } from './AbstractApp';
diff --git a/react/features/audio-mode/index.js b/react/features/mobile/audio-mode/index.js
similarity index 100%
rename from react/features/audio-mode/index.js
rename to react/features/mobile/audio-mode/index.js
diff --git a/react/features/audio-mode/middleware.js b/react/features/mobile/audio-mode/middleware.js
similarity index 91%
rename from react/features/audio-mode/middleware.js
rename to react/features/mobile/audio-mode/middleware.js
index c5790939bb..78aae92537 100644
--- a/react/features/audio-mode/middleware.js
+++ b/react/features/mobile/audio-mode/middleware.js
@@ -2,13 +2,13 @@
import { NativeModules } from 'react-native';
-import { APP_WILL_MOUNT } from '../app';
+import { APP_WILL_MOUNT } from '../../app';
import {
CONFERENCE_FAILED,
CONFERENCE_LEFT,
CONFERENCE_WILL_JOIN
-} from '../base/conference';
-import { MiddlewareRegistry } from '../base/redux';
+} from '../../base/conference';
+import { MiddlewareRegistry } from '../../base/redux';
/**
* Middleware that captures conference actions and sets the correct audio mode
diff --git a/react/features/background/actionTypes.js b/react/features/mobile/background/actionTypes.js
similarity index 96%
rename from react/features/background/actionTypes.js
rename to react/features/mobile/background/actionTypes.js
index 142c82460a..23866c3e3e 100644
--- a/react/features/background/actionTypes.js
+++ b/react/features/mobile/background/actionTypes.js
@@ -1,4 +1,4 @@
-import { Symbol } from '../base/react';
+import { Symbol } from '../../base/react';
/**
* The type of redux action to set the AppState API change event listener.
diff --git a/react/features/background/actions.js b/react/features/mobile/background/actions.js
similarity index 98%
rename from react/features/background/actions.js
rename to react/features/mobile/background/actions.js
index f787422bd6..ff1d7807ea 100644
--- a/react/features/background/actions.js
+++ b/react/features/mobile/background/actions.js
@@ -1,4 +1,4 @@
-import { setVideoMuted } from '../base/media';
+import { setVideoMuted } from '../../base/media';
import {
_SET_APP_STATE_LISTENER,
diff --git a/react/features/background/index.js b/react/features/mobile/background/index.js
similarity index 100%
rename from react/features/background/index.js
rename to react/features/mobile/background/index.js
diff --git a/react/features/background/middleware.js b/react/features/mobile/background/middleware.js
similarity index 97%
rename from react/features/background/middleware.js
rename to react/features/mobile/background/middleware.js
index a96dac3586..3df5f28fca 100644
--- a/react/features/background/middleware.js
+++ b/react/features/mobile/background/middleware.js
@@ -6,8 +6,8 @@ import type { Dispatch } from 'redux';
import {
APP_WILL_MOUNT,
APP_WILL_UNMOUNT
-} from '../app';
-import { MiddlewareRegistry } from '../base/redux';
+} from '../../app';
+import { MiddlewareRegistry } from '../../base/redux';
import {
_setAppStateListener,
diff --git a/react/features/background/reducer.js b/react/features/mobile/background/reducer.js
similarity index 92%
rename from react/features/background/reducer.js
rename to react/features/mobile/background/reducer.js
index c99ce87fcd..9ad8191daf 100644
--- a/react/features/background/reducer.js
+++ b/react/features/mobile/background/reducer.js
@@ -1,4 +1,4 @@
-import { ReducerRegistry } from '../base/redux';
+import { ReducerRegistry } from '../../base/redux';
import {
_SET_APP_STATE_LISTENER,
diff --git a/react/features/full-screen/index.js b/react/features/mobile/full-screen/index.js
similarity index 100%
rename from react/features/full-screen/index.js
rename to react/features/mobile/full-screen/index.js
diff --git a/react/features/full-screen/middleware.js b/react/features/mobile/full-screen/middleware.js
similarity index 94%
rename from react/features/full-screen/middleware.js
rename to react/features/mobile/full-screen/middleware.js
index b2faa3d49c..377ed4c7b3 100644
--- a/react/features/full-screen/middleware.js
+++ b/react/features/mobile/full-screen/middleware.js
@@ -8,9 +8,9 @@ import {
CONFERENCE_FAILED,
CONFERENCE_LEFT,
CONFERENCE_WILL_JOIN
-} from '../base/conference';
-import { Platform } from '../base/react';
-import { MiddlewareRegistry } from '../base/redux';
+} from '../../base/conference';
+import { Platform } from '../../base/react';
+import { MiddlewareRegistry } from '../../base/redux';
/**
* Middleware that captures conference actions and activates or deactivates the
diff --git a/react/features/wake-lock/index.js b/react/features/mobile/wake-lock/index.js
similarity index 100%
rename from react/features/wake-lock/index.js
rename to react/features/mobile/wake-lock/index.js
diff --git a/react/features/wake-lock/middleware.js b/react/features/mobile/wake-lock/middleware.js
similarity index 93%
rename from react/features/wake-lock/middleware.js
rename to react/features/mobile/wake-lock/middleware.js
index cb8750258f..bc57e27e2c 100644
--- a/react/features/wake-lock/middleware.js
+++ b/react/features/mobile/wake-lock/middleware.js
@@ -4,8 +4,8 @@ import {
CONFERENCE_FAILED,
CONFERENCE_JOINED,
CONFERENCE_LEFT
-} from '../base/conference';
-import { MiddlewareRegistry } from '../base/redux';
+} from '../../base/conference';
+import { MiddlewareRegistry } from '../../base/redux';
/**
* Middleware that captures conference actions and activates or deactivates the