rn: drop support for no longer supported deployments

This commit is contained in:
Saúl Ibarra Corretgé 2018-12-18 12:49:19 +01:00 committed by Saúl Ibarra Corretgé
parent f35653b8fa
commit 342718f673
4 changed files with 1 additions and 58 deletions

View File

@ -23,11 +23,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:host="beta.hipchat.me" android:scheme="https" />
<data android:host="beta.meet.jit.si" android:scheme="https" />
<data android:host="chaos.hipchat.me" android:scheme="https" />
<data android:host="enso.me" android:scheme="https" />
<data android:host="hipchat.me" android:scheme="https" />
<data android:host="meet.jit.si" android:scheme="https" />
</intent-filter>
<intent-filter>

View File

@ -5,10 +5,6 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:beta.meet.jit.si</string>
<string>applinks:beta.hipchat.me</string>
<string>applinks:chaos.hipchat.me</string>
<string>applinks:enso.me</string>
<string>applinks:hipchat.me</string>
<string>applinks:meet.jit.si</string>
</array>
</dict>

View File

@ -17,11 +17,7 @@ import { ADD_KNOWN_DOMAINS } from './actionTypes';
* out of the Andorid manifest.
*/
export const DEFAULT_STATE = [
'beta.hipchat.me',
'beta.meet.jit.si',
'chaos.hipchat.me',
'enso.me',
'hipchat.me',
'meet.jit.si'
];

View File

@ -57,49 +57,6 @@ function _fixRoom(room: ?string) {
: room;
}
/**
* Fixes the hier-part of a specific URI (string) so that the URI is well-known.
* For example, certain Jitsi Meet deployments are not conventional but it is
* possible to translate their URLs into conventional.
*
* @param {string} uri - The URI (string) to fix the hier-part of.
* @private
* @returns {string}
*/
function _fixURIStringHierPart(uri) {
// Rewrite the specified URL in order to handle special cases such as
// hipchat.com and enso.me which do not follow the common pattern of most
// Jitsi Meet deployments.
// hipchat.com
let regex
= new RegExp(
`^${URI_PROTOCOL_PATTERN}//hipchat\\.com/video/call/`,
'gi');
let match: Array<string> | null = regex.exec(uri);
if (!match) {
// enso.me
regex
= new RegExp(
`^${URI_PROTOCOL_PATTERN}//enso\\.me/(?:call|meeting)/`,
'gi');
match = regex.exec(uri);
}
if (match) {
/* eslint-disable no-param-reassign, prefer-template */
uri
= match[1] /* protocol */
+ '//enso.hipchat.me/'
+ uri.substring(regex.lastIndex); /* room (name) */
/* eslint-enable no-param-reassign, prefer-template */
}
return uri;
}
/**
* Fixes the scheme part of a specific URI (string) so that it contains a
* well-known scheme such as HTTP(S). For example, the mobile app implements an
@ -316,9 +273,7 @@ export function parseURIString(uri: ?string) {
return undefined;
}
const obj
= parseStandardURIString(
_fixURIStringHierPart(_fixURIStringScheme(uri)));
const obj = parseStandardURIString(_fixURIStringScheme(uri));
// Add the properties that are specific to a Jitsi Meet resource (location)
// such as contextRoot, room: