expo-localization 14.8.2 → 14.8.4

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
+ ## 14.8.4 — 2024-04-15
14
+
15
+ ### 💡 Others
16
+
17
+ - [iOS] Add privacy manifest describing required reason API usage. ([#27770](https://github.com/expo/expo/pull/27770) by [@aleqsio](https://github.com/aleqsio))
18
+
19
+ ## 14.8.3 — 2024-01-18
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 14.8.2 — 2024-01-10
14
24
 
15
25
  _This version does not introduce any user-facing 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 = '14.8.2'
6
+ version = '14.8.4'
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.localization"
95
95
  defaultConfig {
96
96
  versionCode 22
97
- versionName "14.8.2"
97
+ versionName "14.8.4"
98
98
  }
99
99
  }
100
100
 
@@ -1,10 +1,9 @@
1
1
  {
2
- "name": "expo-localization",
3
- "platforms": ["ios", "android", "tvos"],
4
- "ios": {
5
- "modulesClassNames": ["LocalizationModule"]
2
+ "platforms": ["apple", "android"],
3
+ "apple": {
4
+ "modules": ["LocalizationModule"]
6
5
  },
7
6
  "android": {
8
- "modulesClassNames": ["expo.modules.localization.LocalizationModule"]
7
+ "modules": ["expo.modules.localization.LocalizationModule"]
9
8
  }
10
9
  }
@@ -22,6 +22,8 @@ Pod::Spec.new do |s|
22
22
  'DEFINES_MODULE' => 'YES',
23
23
  'SWIFT_COMPILATION_MODE' => 'wholemodule'
24
24
  }
25
+
26
+ s.resource_bundles = {'ExpoLocalization_privacy' => ['PrivacyInfo.xcprivacy']}
25
27
 
26
28
  if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
27
29
  s.source_files = "**/*.h"
@@ -57,6 +57,7 @@ public class LocalizationModule: Module {
57
57
  // These keys are used by React Native here: https://github.com/facebook/react-native/blob/main/React/Modules/RCTI18nUtil.m
58
58
  // We set them before React loads to ensure it gets rendered correctly the first time the app is opened.
59
59
  // On iOS we need to set both forceRTL and allowRTL so apps don't have to include localization strings.
60
+ // Uses required reason API based on the following reason: CA92.1
60
61
  UserDefaults.standard.set(supportsRTL, forKey: "RCTI18nUtil_allowRTL")
61
62
  UserDefaults.standard.set(supportsRTL ? isRTLPreferredForCurrentLocale() : false, forKey: "RCTI18nUtil_forceRTL")
62
63
  UserDefaults.standard.synchronize()
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>NSPrivacyCollectedDataTypes</key>
6
+ <array>
7
+ </array>
8
+ <key>NSPrivacyTracking</key>
9
+ <false/>
10
+ <key>NSPrivacyTrackingDomains</key>
11
+ <array/>
12
+ <key>NSPrivacyAccessedAPITypes</key>
13
+ <array>
14
+ <dict>
15
+ <key>NSPrivacyAccessedAPIType</key>
16
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
17
+ <key>NSPrivacyAccessedAPITypeReasons</key>
18
+ <array>
19
+ <string>CA92.1</string>
20
+ </array>
21
+ </dict>
22
+ </array>
23
+ </dict>
24
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-localization",
3
- "version": "14.8.2",
3
+ "version": "14.8.4",
4
4
  "description": "Provides an interface for native user localization information.",
5
5
  "main": "build/Localization.js",
6
6
  "types": "build/Localization.d.ts",
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "expo": "*"
49
49
  },
50
- "gitHead": "ca014bf2516c7644ef303f4c21fdd68de4d99f76"
50
+ "gitHead": "88a8226609b870c0635c39da43ac8306c4dc7031"
51
51
  }