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] Don't bundle fonts we don't use

Saúl Ibarra Corretgé011a46ce2d04
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index dfefe933f5..b6d9d2b5e4 100644
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -114,11 +114,10 @@ android.libraryVariants.all { def variant ->
def assetsDir = variant.mergeAssets.outputDir
variant.mergeAssets.doLast {
- // Bundle fonts in react-native-vector-icons
+ // Bundle fonts
//
copy {
from("${projectDir}/../../fonts/jitsi.ttf")
- from("${projectDir}/../../node_modules/react-native-vector-icons/Fonts/")
into("${assetsDir}/fonts")
}
diff --git a/ios/sdk/sdk.xcodeproj/project.pbxproj b/ios/sdk/sdk.xcodeproj/project.pbxproj
index 2108d2a3d3..1aa5def589 100644
--- a/ios/sdk/sdk.xcodeproj/project.pbxproj
+++ b/ios/sdk/sdk.xcodeproj/project.pbxproj
@@ -285,6 +285,7 @@
0BD906E31EC0C00300C8C18E /* Resources */,
0BCA49651EC4B77500B793EE /* Package React bundle */,
C7BC10B338C94EEB98048E64 /* [CP] Copy Pods Resources */,
+ 0B64F7BE2175DFEA005009CD /* Remove unneeded fonts */,
);
buildRules = (
);
@@ -350,6 +351,24 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 0B64F7BE2175DFEA005009CD /* Remove unneeded fonts */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ name = "Remove unneeded fonts";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# We need to manually do this because react-native-vecotr-icons lists fonts as resources in the Pod spec file\n# so they are automatically added.\n\nshopt -s extglob\n\nrm -f ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/!(jitsi).ttf\n";
+ };
0BCA49651EC4B77500B793EE /* Package React bundle */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
diff --git a/ios/sdk/src/Info.plist b/ios/sdk/src/Info.plist
index eae7641352..0b9c0fb0f6 100644
--- a/ios/sdk/src/Info.plist
+++ b/ios/sdk/src/Info.plist
@@ -20,7 +20,6 @@
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>JitsiMeetFonts</key>
<array>
- <string>FontAwesome.ttf</string>
<string>jitsi.ttf</string>
</array>
<key>LSApplicationQueriesSchemes</key>