Set default app scheme to mattermost (#3827)

Was originally set to `mattermost-beta` as per #3767 .
This commit is contained in:
Amit Uttam 2020-01-20 16:14:19 -03:00 committed by Elias Nahum
parent febbbe9f36
commit 331cfcc372
6 changed files with 8 additions and 8 deletions

View file

@ -39,7 +39,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="mattermost-beta" />
<data android:scheme="mattermost" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />

View file

@ -14,7 +14,7 @@ jest.mock('react-intl');
describe('PostList', () => {
const serverURL = 'https://server-url.fake';
const deeplinkRoot = 'mattermost-beta://server-url.fake';
const deeplinkRoot = 'mattermost://server-url.fake';
const baseProps = {
actions: {

View file

@ -107,7 +107,7 @@ describe('UrlUtils', () => {
describe('matchDeepLink', () => {
const SITE_URL = 'http://localhost:8065';
const SERVER_URL = 'http://localhost:8065';
const DEEPLINK_URL_ROOT = 'mattermost-beta://localhost:8065';
const DEEPLINK_URL_ROOT = 'mattermost://localhost:8065';
const tests = [
{name: 'should return null if all inputs are empty', input: {url: '', serverURL: '', siteURL: ''}, expected: null},

View file

@ -394,7 +394,7 @@ platform :ios do
)
# Set the deep link prefix
app_scheme = ENV['APP_SCHEME'] || 'mattermost-beta'
app_scheme = ENV['APP_SCHEME'] || 'mattermost'
update_info_plist(
xcodeproj: './ios/Mattermost.xcodeproj',
plist_path: 'Mattermost/Info.plist',
@ -597,10 +597,10 @@ platform :android do
android_change_package_identifier(newIdentifier: package_id, manifest: './android/app/src/main/AndroidManifest.xml')
android_update_application_id(app_folder_name: 'android/app', application_id: package_id)
app_scheme = ENV['APP_SCHEME'] || 'mattermost-beta'
app_scheme = ENV['APP_SCHEME'] || 'mattermost'
find_replace_string(
path_to_file: "./android/app/src/main/AndroidManifest.xml",
old_string: 'scheme="mattermost-beta"',
old_string: 'scheme="mattermost"',
new_string: "scheme=\'#{app_scheme}\'"
)

View file

@ -5,7 +5,7 @@ export BRANCH_TO_BUILD=master
export GIT_LOCAL_BRANCH=build
export APP_NAME="Mattermost Beta"
export APP_SCHEME=mattermost-beta
export APP_SCHEME=mattermost
#export INCREMENT_BUILD_NUMBER=false
## This sets the version number ex: 1.22.0 if not set it uses the one in the code base

View file

@ -29,7 +29,7 @@
<string>com.mattermost</string>
<key>CFBundleURLSchemes</key>
<array>
<string>mattermost-beta</string>
<string>mattermost</string>
</array>
</dict>
</array>