expo-blur 12.9.0 → 12.9.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
+ ## 12.9.2 — 2024-02-16
14
+
15
+ ### 🎉 New features
16
+
17
+ - Added support for Apple tvOS. ([#26965](https://github.com/expo/expo/pull/26965) by [@douglowder](https://github.com/douglowder))
18
+
19
+ ## 12.9.1 — 2023-12-19
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 12.9.0 — 2023-11-14
14
24
 
15
25
  ### 🛠 Breaking changes
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '12.9.0'
6
+ version = '12.9.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.blur"
95
95
  defaultConfig {
96
96
  versionCode 1
97
- versionName "12.9.0"
97
+ versionName "12.9.2"
98
98
  }
99
99
 
100
100
  }
@@ -35,7 +35,7 @@ enum class TintStyle(val value: String) : Enumerable {
35
35
 
36
36
  PROMINENT,
37
37
  DEFAULT,
38
- SYSTEM_MATERIAL,
38
+ SYSTEM_MATERIAL
39
39
  -> DEFAULT.toColorInt(blurRadius)
40
40
 
41
41
  DARK,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-blur",
3
- "platforms": ["ios", "android"],
3
+ "platforms": ["ios", "tvos", "android"],
4
4
  "ios": {
5
5
  "modules": ["BlurViewModule"]
6
6
  },
@@ -10,7 +10,7 @@ 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.platform = :ios, '13.4'
13
+ s.platforms = { :ios => '13.4', :tvos => '13.4' }
14
14
  s.source = { git: 'https://github.com/expo/expo.git' }
15
15
  s.static_framework = true
16
16
 
@@ -24,6 +24,52 @@ public enum TintStyle: String, Enumerable {
24
24
  case systemChromeMaterialDark
25
25
 
26
26
  func toBlurEffect() -> UIBlurEffect.Style {
27
+ #if os(tvOS)
28
+ switch self {
29
+ case .default:
30
+ return .regular
31
+ case .extraLight:
32
+ return .extraLight
33
+ case .light:
34
+ return .light
35
+ case .regular:
36
+ return .regular
37
+ case .dark:
38
+ return .dark
39
+ case .prominent:
40
+ return .prominent
41
+ case .systemUltraThinMaterial:
42
+ return .regular
43
+ case .systemThinMaterial:
44
+ return .regular
45
+ case .systemMaterial:
46
+ return .regular
47
+ case .systemThickMaterial:
48
+ return .regular
49
+ case .systemChromeMaterial:
50
+ return .regular
51
+ case .systemUltraThinMaterialLight:
52
+ return .light
53
+ case .systemThinMaterialLight:
54
+ return .light
55
+ case .systemMaterialLight:
56
+ return .light
57
+ case .systemThickMaterialLight:
58
+ return .light
59
+ case .systemChromeMaterialLight:
60
+ return .light
61
+ case .systemUltraThinMaterialDark:
62
+ return .dark
63
+ case .systemThinMaterialDark:
64
+ return .dark
65
+ case .systemMaterialDark:
66
+ return .dark
67
+ case .systemThickMaterialDark:
68
+ return .dark
69
+ case .systemChromeMaterialDark:
70
+ return .dark
71
+ }
72
+ #else
27
73
  switch self {
28
74
  case .default:
29
75
  return .regular
@@ -68,5 +114,6 @@ public enum TintStyle: String, Enumerable {
68
114
  case .systemChromeMaterialDark:
69
115
  return .systemChromeMaterialDark
70
116
  }
117
+ #endif
71
118
  }
72
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-blur",
3
- "version": "12.9.0",
3
+ "version": "12.9.2",
4
4
  "description": "A component that renders a native blur view on iOS and falls back to a semi-transparent view on Android. A common usage of this is for navigation bars, tab bars, and modals.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "expo": "*"
45
45
  },
46
- "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
46
+ "gitHead": "6ceeb37fe2ccd9b290f9d717d9792c68487118b1"
47
47
  }