[Gekidou] compass icons (#5940)

This commit is contained in:
Elias Nahum 2022-02-08 16:16:30 -03:00 committed by GitHub
parent 8cb7dd2fa9
commit 98fa1b0a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 815 additions and 3592 deletions

2
.gitignore vendored
View file

@ -8,6 +8,8 @@ tmp/
.env
env.d.ts
*/**/compass-icons.ttf
# OSX
#
.DS_Store

View file

@ -1,10 +1,9 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fontelloConfig from '@mattermost/compass-icons/config.json';
import {createIconSetFromFontello} from 'react-native-vector-icons';
import fontelloConfig from '@assets/compass-icons.json';
const CompassIcon = createIconSetFromFontello(fontelloConfig, 'compass-icons',
'compass-icons.ttf');

File diff suppressed because it is too large Load diff

Binary file not shown.

809
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,6 +13,7 @@
"@formatjs/intl-numberformat": "7.4.1",
"@formatjs/intl-pluralrules": "4.3.1",
"@formatjs/intl-relativetimeformat": "9.5.1",
"@mattermost/compass-icons": "0.1.21",
"@mattermost/react-native-emm": "1.1.8",
"@mattermost/react-native-network-client": "github:mattermost/react-native-network-client",
"@mattermost/react-native-paste-input": "0.3.7",

View file

@ -7,5 +7,7 @@ rm -rf node_modules
rm -rf dist
rm -rf ios/build
rm -rf android/app/build
rm assets/fonts/compass-icons.ttf
rm android/app/src/main/assets/fonts/compass-icons.ttf
echo Cleanup finished

View file

@ -10,6 +10,16 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
npm run pod-install &> /dev/null
fi
COMPASS_ICONS="node_modules/@mattermost/compass-icons/font/compass-icons.ttf"
if [ -z "$COMPASS_ICONS" ]; then
echo "Compass Icons font not found"
exit 1
else
echo "Configuring Compass Icons font"
cp "$COMPASS_ICONS" "assets/fonts/"
cp "$COMPASS_ICONS" "android/app/src/main/assets/fonts"
fi
ASSETS=$(node scripts/generate-assets.js)
if [ -z "$ASSETS" ]; then
echo "Error Generating app assets"