File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @sqliteai/todoapp" ,
3- "version" : " 1.0.4 " ,
3+ "version" : " 1.0.5 " ,
44 "description" : " An Expo template for building apps with the SQLite CloudSync extension" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change 1- const { withDangerousMod, withXcodeProject } = require ( '@expo/config-plugins' ) ;
1+ const { withDangerousMod, withXcodeProject, withInfoPlist } = require ( '@expo/config-plugins' ) ;
22const fs = require ( 'fs' ) ;
33const path = require ( 'path' ) ;
44const https = require ( 'https' ) ;
@@ -277,7 +277,20 @@ const withCloudSync = (config) => {
277277
278278 // iOS setup - add to Xcode project
279279 config = withCloudSyncFramework ( config ) ;
280-
280+
281+ // iOS setup - register icon fonts in Info.plist
282+ config = withInfoPlist ( config , ( config ) => {
283+ const fonts = config . modResults . UIAppFonts || [ ] ;
284+ if ( ! fonts . includes ( 'FontAwesome.ttf' ) ) {
285+ fonts . push ( 'FontAwesome.ttf' ) ;
286+ }
287+ if ( ! fonts . includes ( 'MaterialDesignIcons.ttf' ) ) {
288+ fonts . push ( 'MaterialDesignIcons.ttf' ) ;
289+ }
290+ config . modResults . UIAppFonts = fonts ;
291+ return config ;
292+ } ) ;
293+
281294 return config ;
282295} ;
283296
You can’t perform that action at this time.
0 commit comments