expo-font 11.10.0 → 11.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 11.10.2 — 2024-01-18
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 11.10.1 — 2024-01-10
18
+
19
+ ### 🎉 New features
20
+
21
+ - Added support for macOS platform. ([#26242](https://github.com/expo/expo/pull/26242) by [@tsapeta](https://github.com/tsapeta))
22
+
13
23
  ## 11.10.0 — 2023-12-12
14
24
 
15
25
  ### 🎉 New features
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '11.10.0'
6
+ version = '11.10.2'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.font"
95
95
  defaultConfig {
96
96
  versionCode 29
97
- versionName "11.10.0"
97
+ versionName "11.10.2"
98
98
  }
99
99
  }
100
100
 
@@ -1,6 +1,5 @@
1
1
  {
2
- "name": "expo-font",
3
- "platforms": ["ios", "android", "web"],
2
+ "platforms": ["apple", "android", "web"],
4
3
  "android": {
5
4
  "modules": ["expo.modules.font.FontLoaderModule"]
6
5
  }
@@ -1,7 +1,7 @@
1
1
  // Copyright 2015-present 650 Industries. All rights reserved.
2
2
 
3
- #import <UIKit/UIKit.h>
4
3
  #import <Foundation/Foundation.h>
4
+ #import <ExpoModulesCore/Platform.h>
5
5
 
6
6
  static const char *EXFontAssocKey = "EXFont";
7
7
 
@@ -105,6 +105,7 @@ EX_EXPORT_METHOD_AS(loadAsync,
105
105
  * Queries custom native font names from the Info.plist `UIAppFonts`.
106
106
  */
107
107
  - (NSArray<NSString *> *)queryCustomNativeFonts {
108
+ #if TARGET_OS_IOS || TARGET_OS_TV
108
109
  // [0] Read from main bundle's Info.plist
109
110
  NSArray *fontFilePaths = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIAppFonts"];
110
111
  NSMutableSet<NSString *> *fontFamilies = [[NSMutableSet alloc] init];
@@ -138,6 +139,10 @@ EX_EXPORT_METHOD_AS(loadAsync,
138
139
 
139
140
  // [3] Return as array
140
141
  return [fontNames allObjects];
142
+ #elif TARGET_OS_OSX
143
+ // TODO: Add support for `ATSApplicationFontsPath` key in Info.plist
144
+ return @[];
145
+ #endif
141
146
  }
142
147
 
143
148
  @end
@@ -10,7 +10,11 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platforms = { :ios => '13.4', :tvos => '13.4'}
13
+ s.platforms = {
14
+ :ios => '13.4',
15
+ :osx => '10.15',
16
+ :tvos => '13.4'
17
+ }
14
18
  s.source = { git: 'https://github.com/expo/expo.git' }
15
19
  s.static_framework = true
16
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-font",
3
- "version": "11.10.0",
3
+ "version": "11.10.2",
4
4
  "description": "Load fonts at runtime and use them in React Native components.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "expo": "*"
44
44
  },
45
- "gitHead": "6aca7ce098ddc667776a3d7cf612adbb985e264a"
45
+ "gitHead": "102899632731658eecba006c0d1c79b98ba8f5f7"
46
46
  }