@expo-oh/expo-constants 0.0.0-stage → 18.0.14

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.
Files changed (71) hide show
  1. package/.eslintrc.js +2 -0
  2. package/CHANGELOG.md +606 -0
  3. package/LICENSE +21 -0
  4. package/README.md +35 -2
  5. package/android/build.gradle +27 -0
  6. package/android/src/main/AndroidManifest.xml +3 -0
  7. package/android/src/main/java/expo/modules/constants/ConstantsModule.kt +20 -0
  8. package/android/src/main/java/expo/modules/constants/ConstantsPackage.kt +11 -0
  9. package/android/src/main/java/expo/modules/constants/ConstantsService.kt +96 -0
  10. package/build/Constants.d.ts +5 -0
  11. package/build/Constants.d.ts.map +1 -0
  12. package/build/Constants.js +189 -0
  13. package/build/Constants.js.map +1 -0
  14. package/build/Constants.server.d.ts +5 -0
  15. package/build/Constants.server.d.ts.map +1 -0
  16. package/build/Constants.server.js +50 -0
  17. package/build/Constants.server.js.map +1 -0
  18. package/build/Constants.types.d.ts +223 -0
  19. package/build/Constants.types.d.ts.map +1 -0
  20. package/build/Constants.types.js +29 -0
  21. package/build/Constants.types.js.map +1 -0
  22. package/build/ExponentConstants.d.ts +3 -0
  23. package/build/ExponentConstants.d.ts.map +1 -0
  24. package/build/ExponentConstants.js +3 -0
  25. package/build/ExponentConstants.js.map +1 -0
  26. package/build/ExponentConstants.web.d.ts +4 -0
  27. package/build/ExponentConstants.web.d.ts.map +1 -0
  28. package/build/ExponentConstants.web.js +103 -0
  29. package/build/ExponentConstants.web.js.map +1 -0
  30. package/expo-module.config.json +23 -0
  31. package/harmony/README.md +57 -0
  32. package/harmony/example/app.json +8 -0
  33. package/harmony/example/native/cpp/LaneBConstantsOraclePackage.h +32 -0
  34. package/harmony/example/native/ets/LaneBConstantsOracle.ets +66 -0
  35. package/harmony/example/public-checks.js +55 -0
  36. package/harmony/index.ets +1 -0
  37. package/harmony/src/main/cpp/CMakeLists.txt +10 -0
  38. package/harmony/src/main/cpp/ExponentConstantsPackage.h +29 -0
  39. package/harmony/src/main/cpp/ExponentConstantsTurboModule.cpp +14 -0
  40. package/harmony/src/main/cpp/ExponentConstantsTurboModule.h +13 -0
  41. package/harmony/src/main/ets/ConstantsData.ts +60 -0
  42. package/harmony/src/main/ets/ExponentConstantsPackage.ets +20 -0
  43. package/harmony/src/main/ets/ExponentConstantsTurboModule.ets +97 -0
  44. package/harmony/tests/constants-data.test.mjs +54 -0
  45. package/harmony/tests/rnoh/CMakeLists.txt +17 -0
  46. package/harmony/tests/rnoh/PackageCompileTest.cpp +17 -0
  47. package/harmony-upstream.json +7 -0
  48. package/ios/ConstantsModule.swift +25 -0
  49. package/ios/EXConstants.podspec +57 -0
  50. package/ios/EXConstantsInstallationIdProvider.h +14 -0
  51. package/ios/EXConstantsInstallationIdProvider.m +108 -0
  52. package/ios/EXConstantsService.h +23 -0
  53. package/ios/EXConstantsService.m +132 -0
  54. package/ios/PrivacyInfo.xcprivacy +24 -0
  55. package/jest-rsc.config.js +1 -0
  56. package/package.json +57 -4
  57. package/scripts/build/getAppConfig.d.ts +1 -0
  58. package/scripts/build/getAppConfig.js +29 -0
  59. package/scripts/get-app-config-android.gradle +47 -0
  60. package/scripts/get-app-config-ios.sh +35 -0
  61. package/scripts/getAppConfig.js +1 -0
  62. package/scripts/jest.config.js +1 -0
  63. package/scripts/src/getAppConfig.ts +28 -0
  64. package/scripts/tsconfig.json +9 -0
  65. package/scripts/with-node.sh +44 -0
  66. package/src/Constants.server.ts +93 -0
  67. package/src/Constants.ts +257 -0
  68. package/src/Constants.types.ts +253 -0
  69. package/src/ExponentConstants.ts +3 -0
  70. package/src/ExponentConstants.web.ts +103 -0
  71. package/tsconfig.json +9 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,2 @@
1
+ // @generated by expo-module-scripts
2
+ module.exports = require('expo-module-scripts/eslintrc.base.js');
package/CHANGELOG.md ADDED
@@ -0,0 +1,606 @@
1
+ # Changelog
2
+
3
+ ## Unpublished
4
+
5
+ ### 🛠 Breaking changes
6
+
7
+ ### 🎉 New features
8
+
9
+ ### 🐛 Bug fixes
10
+
11
+ ### 💡 Others
12
+
13
+ ## 18.0.14 — 2026-08-17
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 18.0.13 — 2026-01-06
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
21
+ ## 18.0.12 — 2025-12-12
22
+
23
+ _This version does not introduce any user-facing changes._
24
+
25
+ ## 18.0.11 — 2025-12-05
26
+
27
+ _This version does not introduce any user-facing changes._
28
+
29
+ ## 18.0.10 — 2025-10-21
30
+
31
+ _This version does not introduce any user-facing changes._
32
+
33
+ ## 18.0.9 — 2025-09-16
34
+
35
+ _This version does not introduce any user-facing changes._
36
+
37
+ ## 18.0.8 — 2025-09-10
38
+
39
+ _This version does not introduce any user-facing changes._
40
+
41
+ ## 18.0.7 — 2025-09-02
42
+
43
+ _This version does not introduce any user-facing changes._
44
+
45
+ ## 18.0.6 — 2025-08-31
46
+
47
+ _This version does not introduce any user-facing changes._
48
+
49
+ ## 18.0.5 — 2025-08-27
50
+
51
+ _This version does not introduce any user-facing changes._
52
+
53
+ ## 18.0.4 — 2025-08-25
54
+
55
+ _This version does not introduce any user-facing changes._
56
+
57
+ ## 18.0.3 — 2025-08-21
58
+
59
+ _This version does not introduce any user-facing changes._
60
+
61
+ ## 18.0.2 — 2025-08-16
62
+
63
+ _This version does not introduce any user-facing changes._
64
+
65
+ ## 18.0.1 — 2025-08-15
66
+
67
+ _This version does not introduce any user-facing changes._
68
+
69
+ ## 18.0.0 — 2025-08-13
70
+
71
+ ### 🐛 Bug fixes
72
+
73
+ - Remove invalid import from expo-dev-launcher. ([#37558](https://github.com/expo/expo/pull/37558) by [@douglowder](https://github.com/douglowder))
74
+ - Fix check-packages warning. ([#37570](https://github.com/expo/expo/pull/37570) by [@douglowder](https://github.com/douglowder))
75
+
76
+ ### 💡 Others
77
+
78
+ - [iOS] forward PROJECT_ROOT env var to app config script ([#38208](https://github.com/expo/expo/pull/38208) by [@gabrieldonadel](https://github.com/gabrieldonadel))
79
+
80
+ ## 17.1.7 - 2025-07-03
81
+
82
+ _This version does not introduce any user-facing changes._
83
+
84
+ ## 17.1.6 — 2025-05-06
85
+
86
+ _This version does not introduce any user-facing changes._
87
+
88
+ ## 17.1.5 — 2025-05-01
89
+
90
+ _This version does not introduce any user-facing changes._
91
+
92
+ ## 17.1.4 — 2025-04-30
93
+
94
+ _This version does not introduce any user-facing changes._
95
+
96
+ ## 17.1.3 — 2025-04-25
97
+
98
+ _This version does not introduce any user-facing changes._
99
+
100
+ ## 17.1.2 — 2025-04-14
101
+
102
+ _This version does not introduce any user-facing changes._
103
+
104
+ ## 17.1.1 — 2025-04-09
105
+
106
+ _This version does not introduce any user-facing changes._
107
+
108
+ ## 17.1.0 — 2025-04-04
109
+
110
+ ### 🛠 Breaking changes
111
+
112
+ - Bump minimum macOS version to 11.0. ([#34980](https://github.com/expo/expo/pull/34980) by [@gabrieldonadel](https://github.com/gabrieldonadel))
113
+
114
+ ### 🐛 Bug fixes
115
+
116
+ - Add missing types to package exports ([#35223](https://github.com/expo/expo/pull/35223) by [@timostroehlein](https://github.com/timostroehlein))
117
+
118
+ ### 💡 Others
119
+
120
+ - [android][ios] Updated Gradle build and Podspec files to ensure app.json/app.config.js values are correctly updated during each native build. ([#34228](https://github.com/expo/expo/pull/34228) by [@chrfalch](https://github.com/chrfalch))
121
+ - [Android] Started using expo modules gradle plugin. ([#34176](https://github.com/expo/expo/pull/34176) by [@lukmccall](https://github.com/lukmccall))
122
+
123
+ ## 17.0.8 - 2025-03-11
124
+
125
+ ### 🐛 Bug fixes
126
+
127
+ - [iOS] Fix pod install in older CocoaPods versions ([#35181](https://github.com/expo/expo/pull/35181) by [@gabrieldonadel](https://github.com/gabrieldonadel))
128
+
129
+ ## 17.0.7 - 2025-02-19
130
+
131
+ _This version does not introduce any user-facing changes._
132
+
133
+ ## 17.0.6 - 2025-02-14
134
+
135
+ _This version does not introduce any user-facing changes._
136
+
137
+ ## 17.0.4 - 2025-01-10
138
+
139
+ _This version does not introduce any user-facing changes._
140
+
141
+ ## 17.0.3 — 2024-11-14
142
+
143
+ _This version does not introduce any user-facing changes._
144
+
145
+ ## 17.0.2 — 2024-10-28
146
+
147
+ _This version does not introduce any user-facing changes._
148
+
149
+ ## 17.0.1 — 2024-10-22
150
+
151
+ ### 💡 Others
152
+
153
+ - Fixed check-package test errors. ([#32232](https://github.com/expo/expo/pull/32232) by [@kudo](https://github.com/kudo))
154
+
155
+ ## 17.0.0 — 2024-10-22
156
+
157
+ ### 🛠 Breaking changes
158
+
159
+ - Bumped iOS and tvOS deployment target to 15.1. ([#30840](https://github.com/expo/expo/pull/30840) by [@tsapeta](https://github.com/tsapeta))
160
+
161
+ ### 🎉 New features
162
+
163
+ - Add support for React Server environments. ([#30586](https://github.com/expo/expo/pull/30586) by [@EvanBacon](https://github.com/EvanBacon))
164
+
165
+ ### 🐛 Bug fixes
166
+
167
+ - Add missing `react-native` peer dependencies for isolated modules. ([#30464](https://github.com/expo/expo/pull/30464) by [@byCedric](https://github.com/byCedric))
168
+ - Only import from `expo/config` to follow proper dependency chains. ([#30501](https://github.com/expo/expo/pull/30501) by [@byCedric](https://github.com/byCedric))
169
+
170
+ ### 💡 Others
171
+
172
+ - Deprecate `Constants.appOwnership`. ([#30021](https://github.com/expo/expo/pull/30021) by [@amandeepmittal](https://github.com/amandeepmittal))
173
+ - Removed all `NativeModulesProxy` occurrences. ([#31496](https://github.com/expo/expo/pull/31496) by [@reichhartd](https://github.com/reichhartd))
174
+
175
+ ## 16.0.2 - 2024-05-29
176
+
177
+ ### 🐛 Bug fixes
178
+
179
+ - Source env when creating app config. ([#29099](https://github.com/expo/expo/pull/29099) by [@brentvatne](https://github.com/brentvatne))
180
+
181
+ ## 16.0.1 — 2024-04-23
182
+
183
+ _This version does not introduce any user-facing changes._
184
+
185
+ ## 16.0.0 — 2024-04-18
186
+
187
+ ### 🛠 Breaking changes
188
+
189
+ - Remove deprecated installationId, isDevice, nativeAppVersion, nativeBuildVersion, platform.platform, platform.systemVersion, platform.userInterfaceIdiom properties. ([#26329](https://github.com/expo/expo/pull/26329) by [@aleqsio](https://github.com/aleqsio))
190
+
191
+ ### 💡 Others
192
+
193
+ - [iOS] Add privacy manifest describing required reason API usage. ([#27770](https://github.com/expo/expo/pull/27770) by [@aleqsio](https://github.com/aleqsio))
194
+ - [expo-updates] Migrate to requireNativeModule/requireOptionalNativeModule. ([#25648](https://github.com/expo/expo/pull/25648) by [@wschurman](https://github.com/wschurman))
195
+ - Remove most of Constants.appOwnership. ([#26313](https://github.com/expo/expo/pull/26313) by [@wschurman](https://github.com/wschurman))
196
+ - Improve updates types and clarity in expo-asset. ([#26337](https://github.com/expo/expo/pull/26337) by [@wschurman](https://github.com/wschurman))
197
+ - Removed deprecated backward compatible Gradle settings. ([#28083](https://github.com/expo/expo/pull/28083) by [@kudo](https://github.com/kudo))
198
+
199
+ ## 15.4.5 - 2024-01-18
200
+
201
+ _This version does not introduce any user-facing changes._
202
+
203
+ ## 15.4.4 - 2024-01-15
204
+
205
+ ### 🐛 Bug fixes
206
+
207
+ - Fixed build error on AGP 8.2. ([#26362](https://github.com/expo/expo/pull/26362) by [@kudo](https://github.com/kudo))
208
+
209
+ ## 15.4.3 - 2024-01-10
210
+
211
+ ### 🎉 New features
212
+
213
+ - Added support for macOS platform. ([#26233](https://github.com/expo/expo/pull/26233) by [@tsapeta](https://github.com/tsapeta))
214
+
215
+ ## 15.4.2 - 2023-12-19
216
+
217
+ _This version does not introduce any user-facing changes._
218
+
219
+ ## 15.4.1 — 2023-12-13
220
+
221
+ _This version does not introduce any user-facing changes._
222
+
223
+ ## 15.4.0 — 2023-12-12
224
+
225
+ ### 💡 Others
226
+
227
+ - Drop `crypto` usage on web. ([#25411](https://github.com/expo/expo/pull/25411) by [@EvanBacon](https://github.com/EvanBacon))
228
+
229
+ ## 15.3.0 — 2023-11-14
230
+
231
+ ### 🛠 Breaking changes
232
+
233
+ - Bumped iOS deployment target to 13.4. ([#25063](https://github.com/expo/expo/pull/25063) by [@gabrieldonadel](https://github.com/gabrieldonadel))
234
+ - On `Android` bump `compileSdkVersion` and `targetSdkVersion` to `34`. ([#24708](https://github.com/expo/expo/pull/24708) by [@alanjhughes](https://github.com/alanjhughes))
235
+
236
+ ## 15.2.0 — 2023-10-17
237
+
238
+ _This version does not introduce any user-facing changes._
239
+
240
+ ## 15.1.0 — 2023-09-15
241
+
242
+ ### 🎉 New features
243
+
244
+ - Added support for Apple tvOS. ([#24329](https://github.com/expo/expo/pull/24329) by [@douglowder](https://github.com/douglowder))
245
+
246
+ ### 💡 Others
247
+
248
+ - Use dedicated `requireOptionalNativeModule` instead of try-catching `requireNativeModule`. ([#24262](https://github.com/expo/expo/pull/24262) by [@tsapeta](https://github.com/tsapeta))
249
+
250
+ ## 15.0.0 — 2023-09-04
251
+
252
+ ### 🛠 Breaking changes
253
+
254
+ - Change source of truth for constants types. ([#24049](https://github.com/expo/expo/pull/24049) by [@wschurman](https://github.com/wschurman))
255
+ - Remove classic manifest types. ([#24053](https://github.com/expo/expo/pull/24053) by [@wschurman](https://github.com/wschurman))
256
+ - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate))
257
+
258
+ ### 🎉 New features
259
+
260
+ - Added support for React Native 0.73. ([#24018](https://github.com/expo/expo/pull/24018) by [@kudo](https://github.com/kudo))
261
+
262
+ ## 14.5.1 — 2023-08-02
263
+
264
+ ### 🛠 Breaking changes
265
+
266
+ - Drop support for `logUrl` which sent console logs to the legacy `expo-cli`. ([#18596](https://github.com/expo/expo/pull/18596) by [@EvanBacon](https://github.com/EvanBacon))
267
+
268
+ ## 14.5.0 — 2023-07-28
269
+
270
+ ### 🐛 Bug fixes
271
+
272
+ - Fix task ':expo-constants:packageDebugAssets' uses this output of task ':expo-constants:copyReleaseExpoConfig' without declaring an explicit or implicit dependency when running `gradlew test` on Android. ([#23511](https://github.com/expo/expo/pull/23511) by [@lukmccall](https://github.com/lukmccall))
273
+
274
+ ### 💡 Others
275
+
276
+ - Fork `uuid@3.4.0` and move into `expo-modules-core`. Remove the original dependency. ([#23249](https://github.com/expo/expo/pull/23249) by [@alanhughes](https://github.com/alanjhughes))
277
+
278
+ ## 14.4.2 — 2023-06-24
279
+
280
+ ### 💡 Others
281
+
282
+ - Remove the long-deprecated `Constants.deviceYearClass` and `Constants.platform.ios.model`. These properties now live on `expo-device`. ([#23068](https://github.com/expo/expo/pull/23068) by [@brentvatne](https://github.com/brentvatne))
283
+
284
+ ## 14.4.1 — 2023-06-22
285
+
286
+ _This version does not introduce any user-facing changes._
287
+
288
+ ## 14.4.0 — 2023-06-13
289
+
290
+ ### 🐛 Bug fixes
291
+
292
+ - Fixed Android build warnings for Gradle version 8. ([#22537](https://github.com/expo/expo/pull/22537), [#22609](https://github.com/expo/expo/pull/22609) by [@kudo](https://github.com/kudo))
293
+
294
+ ## 14.3.0 — 2023-05-08
295
+
296
+ ### 💡 Others
297
+
298
+ - Warn on use of Constants.manifest. ([#22247](https://github.com/expo/expo/pull/22247) by [@wschurman](https://github.com/wschurman))
299
+
300
+ ## 14.2.1 — 2023-02-09
301
+
302
+ _This version does not introduce any user-facing changes._
303
+
304
+ ## 14.2.0 — 2023-02-03
305
+
306
+ ### 💡 Others
307
+
308
+ - On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall))
309
+
310
+ ## 14.1.0 — 2022-12-30
311
+
312
+ ### 🎉 New features
313
+
314
+ - Migrated Android implementation to Expo Modules API. ([#19974](https://github.com/expo/expo/pull/19974) by [@alanhughes](https://github.com/alanjhughes))
315
+
316
+ ### 🐛 Bug fixes
317
+
318
+ - Fix the list of platform keys in expo-module.config.json ([#20017](https://github.com/expo/expo/pull/20017) by [@alanjhughes](https://github.com/alanjhughes))
319
+
320
+ ## 14.0.2 — 2022-10-30
321
+
322
+ _This version does not introduce any user-facing changes._
323
+
324
+ ## 14.0.1 — 2022-10-28
325
+
326
+ _This version does not introduce any user-facing changes._
327
+
328
+ ## 14.0.0 — 2022-10-06
329
+
330
+ ### 🛠 Breaking changes
331
+
332
+ - Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta))
333
+
334
+ ### 🐛 Bug fixes
335
+
336
+ - Fixed _with-node.sh_ doesn't keep quotes when passing arguments to Node.js and caused build errors when there are spaces in target name. ([#18741](https://github.com/expo/expo/pull/18741) by [@kudo](https://github.com/kudo))
337
+
338
+ ### 💡 Others
339
+
340
+ - Refactored inline Android emulator checks to use enhanced checking in `EmulatorUtilities.isRunningOnEmulator()`. ([#16177](https://github.com/expo/expo/pull/16177)) by [@kbrandwijk](https://github.com/kbrandwijk), [@keith-kurak](https://github.com/keith-kurak))
341
+
342
+ ## 13.2.3 — 2022-07-25
343
+
344
+ ### 🐛 Bug fixes
345
+
346
+ - Deprecated the unreliable `source-login-scripts.sh` and sourcing the Node.js binary path from `.xcode.env` and `.xcode.env.local`. ([#18330](https://github.com/expo/expo/pull/18330) by [@kudo](https://github.com/kudo))
347
+
348
+ ## 13.2.2 — 2022-07-16
349
+
350
+ _This version does not introduce any user-facing changes._
351
+
352
+ ## 13.2.1 — 2022-07-11
353
+
354
+ _This version does not introduce any user-facing changes._
355
+
356
+ ## 13.2.0 — 2022-07-07
357
+
358
+ ### 🎉 New features
359
+
360
+ - Add getter for expo client config. ([#17865](https://github.com/expo/expo/pull/17865) by [@wschurman](https://github.com/wschurman))
361
+
362
+ ### 🐛 Bug fixes
363
+
364
+ - Improved support of nvm sourcing in iOS shell scripts. ([#17109](https://github.com/expo/expo/pull/17109) by [@liamronancb](https://github.com/liamronancb))
365
+ - Fixed `source-login-scripts.sh` ~/zlogin typo. ([#17622](https://github.com/expo/expo/pull/17622) by [@vrgimael](https://github.com/vrgimael))
366
+
367
+ ## 13.1.0 — 2022-04-18
368
+
369
+ ### 🐛 Bug fixes
370
+
371
+ - Fixed iOS script phase build error when `extendedglob` is enabled in zsh config. ([#17024](https://github.com/expo/expo/pull/17024) by [@kudo](https://github.com/kudo))
372
+
373
+ ### 💡 Others
374
+
375
+ - Updated `@expo/config` from `6.0.6` to `6.0.14` ([#15621](https://github.com/expo/expo/pull/15621) by [@EvanBacon](https://github.com/EvanBacon))
376
+
377
+ ### ⚠️ Notices
378
+
379
+ - On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
380
+
381
+ ## 13.0.2 - 2022-02-01
382
+
383
+ ### 🐛 Bug fixes
384
+
385
+ - Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
386
+
387
+ ## 13.0.1 — 2022-01-20
388
+
389
+ ### 🐛 Bug fixes
390
+
391
+ - Fix the `PhaseScriptExecution` build errors when the `source_login_scripts.sh` failed to load. ([#15890](https://github.com/expo/expo/pull/15890) by [@kudo](https://github.com/kudo))
392
+
393
+ ## 13.0.0 — 2021-12-03
394
+
395
+ ### 🛠 Breaking changes
396
+
397
+ - Remove deprecated `Constants.deviceId`. ([#15280](https://github.com/expo/expo/pull/15280) by [@Simek](https://github.com/Simek))
398
+ - Remove legacy `Constants.linkingUrl` alias. ([#15280](https://github.com/expo/expo/pull/15280) by [@Simek](https://github.com/Simek))
399
+
400
+ ### 💡 Others
401
+
402
+ - Add missing `null` to the `Constants.buildNumber` type. ([#15280](https://github.com/expo/expo/pull/15280) by [@Simek](https://github.com/Simek))
403
+
404
+ ## 12.2.0 — 2021-11-17
405
+
406
+ ### 🐛 Bug fixes
407
+
408
+ - Fix NODE_BINARY not found build error when using nvm via zsh ([#14895](https://github.com/expo/expo/pull/14895) by [@filipengberg](https://github.com/filipengberg))
409
+
410
+ ### 💡 Others
411
+
412
+ - Extract nested objects from current types to new, separate types - `ExpoGoPackagerOpts` and `ManifestExtra`. ([#15113](https://github.com/expo/expo/pull/15113) by [@Simek](https://github.com/Simek))
413
+
414
+ ## 12.1.3 — 2021-10-22
415
+
416
+ ### 🐛 Bug fixes
417
+
418
+ - Don't include fonts from family "System Font" (introduced by iOS 15) ([#14577](https://github.com/expo/expo/pull/14577) by [@brentvatne](https://github.com/brentvatne))
419
+ - Fix `Constants.deviceId has been deprecated in favor of generating and storing your own ID.` warnings in classic react-native projects. ([#14837](https://github.com/expo/expo/pull/14837) by [@kudo](https://github.com/kudo))
420
+
421
+ ## 12.1.2 — 2021-10-21
422
+
423
+ _This version does not introduce any user-facing changes._
424
+
425
+ ## 12.1.1 — 2021-10-15
426
+
427
+ ### 🛠 Breaking changes
428
+
429
+ - Deprecated `Constants.deviceYearClass`, moved to `expo-device` - `Device.deviceYearClass` ([#14691](https://github.com/expo/expo/pull/14691) by [@EvanBacon](https://github.com/EvanBacon))
430
+ - Deprecated `Constants.platform.ios.model`, moved to `expo-device` - `Device.modelName` ([#14691](https://github.com/expo/expo/pull/14691) by [@EvanBacon](https://github.com/EvanBacon))
431
+
432
+ ### 🎉 New features
433
+
434
+ - Added support for iOS 15.0 devices ([#14640](https://github.com/expo/expo/pull/14640) by [@EvanBacon](https://github.com/EvanBacon))
435
+
436
+ ## 12.1.0 — 2021-10-01
437
+
438
+ ### 🐛 Bug fixes
439
+
440
+ - Don't include fonts from family "System Font" (introduced by iOS 15) ([#14577](https://github.com/expo/expo/pull/14577) by [@brentvatne](https://github.com/brentvatne))
441
+
442
+ ## 12.0.0 — 2021-09-28
443
+
444
+ ### 🛠 Breaking changes
445
+
446
+ - Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach))
447
+
448
+ ### 🐛 Bug fixes
449
+
450
+ - Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo))
451
+
452
+ ### 💡 Others
453
+
454
+ - Rewrite Android code to Kotlin. ([#14434](https://github.com/expo/expo/pull/14434) by [@kkafar](https://github.com/kkafar))
455
+ - Updated `@expo/config-plugins` ([#14443](https://github.com/expo/expo/pull/14443) by [@EvanBacon](https://github.com/EvanBacon))
456
+
457
+ ## 11.1.0 — 2021-09-08
458
+
459
+ ### 🎉 New features
460
+
461
+ - Use stable manifest ID where applicable. ([#12964](https://github.com/expo/expo/pull/12964) by [@wschurman](https://github.com/wschurman))
462
+ - Update JS code to read manifest2 when manifest is not available. ([#13602](https://github.com/expo/expo/pull/13602) by [@wschurman](https://github.com/wschurman))
463
+ - Update location of EAS projectId in new manifest. ([#13739](https://github.com/expo/expo/pull/13739) by [@wschurman](https://github.com/wschurman))
464
+ - Update location of scopeKey in new manifest. ([#13817](https://github.com/expo/expo/pull/13817) by [@wschurman](https://github.com/wschurman))
465
+
466
+ ### 🐛 Bug fixes
467
+
468
+ - fix `__dir__` absolute path in script_phase making an inconsistent Podfile.lock. ([#13610](https://github.com/expo/expo/pull/13610) by [@kudo](https://github.com/kudo))
469
+ - Fix `PROJECT_ROOT` path resolution in `get-app-config-ios.sh`. ([#13439](https://github.com/expo/expo/pull/13439) by [@ajsmth](https://github.com/ajsmth))
470
+ - Fix app.config not generated. ([#13667](https://github.com/expo/expo/pull/13667) by [@kudo](https://github.com/kudo))
471
+ - Fix build phase error in xcode for nodejs possibly not found in nvm. ([#14047](https://github.com/expo/expo/pull/14047) by [@kudo](https://github.com/kudo))
472
+
473
+ ### ⚠️ Notices
474
+
475
+ - Modularized expo-constants without further app setup. ([#13424](https://github.com/expo/expo/pull/13424) by [@kudo](https://github.com/kudo))
476
+
477
+ ## 11.0.2 — 2021-09-02
478
+
479
+ ### 💡 Others
480
+
481
+ - Skip running build scripts during iOS debug builds and add support for `SKIP_BUNDLING`/`FORCE_BUNDLING` environment variables. ([#14116](https://github.com/expo/expo/pull/14116) by [@fson](https://github.com/fson))
482
+
483
+ ## 11.0.1 — 2021-06-22
484
+
485
+ _This version does not introduce any user-facing changes._
486
+
487
+ ## 11.0.0 — 2021-06-16
488
+
489
+ ### 🛠 Breaking changes
490
+
491
+ - Add new manifest2 field and make existing field optional. ([#12817](https://github.com/expo/expo/pull/12817) by [@wschurman](https://github.com/wschurman))
492
+ - Update `@expo/config` to include `originalFullName` in embedded config manifest. [Related PR on expo-cli](https://github.com/expo/expo-cli/pull/3494).
493
+
494
+ ### 🐛 Bug fixes
495
+
496
+ - Enable kotlin in all modules. ([#12716](https://github.com/expo/expo/pull/12716) by [@wschurman](https://github.com/wschurman))
497
+ - Ensure classic manifest originalFullName is used over id. ([#12955](https://github.com/expo/expo/pull/12955) by [@wschurman](https://github.com/wschurman))
498
+
499
+ ### 💡 Others
500
+
501
+ - Migrated module interface from `unimodules-constants-interface` to `expo-modules-core`. ([#12876](https://github.com/expo/expo/pull/12876) by [@tsapeta](https://github.com/tsapeta))
502
+ - Build Android code using Java 8 to fix Android instrumented test build error. ([#12939](https://github.com/expo/expo/pull/12939) by [@kudo](https://github.com/kudo))
503
+ - Inherit env vars in get-app-config-android.gradle. ([#13208](https://github.com/expo/expo/pull/13208) by [@jakub-gonet](https://github.com/jakub-gonet))
504
+
505
+ ## 10.1.3 — 2021-04-13
506
+
507
+ _This version does not introduce any user-facing changes._
508
+
509
+ ## 10.1.2 — 2021-04-09
510
+
511
+ ### 🛠 Breaking changes
512
+
513
+ - Remove the `xde` property from `Constants.manifest`. ([#12438](https://github.com/expo/expo/pull/12438) by [@fson](https://github.com/fson))
514
+ - Update `@expo/config` to include `currentFullName` in embedded config manifest. [Related PR on expo-cli](https://github.com/expo/expo-cli/pull/3376).
515
+
516
+ ## 10.1.1 — 2021-03-23
517
+
518
+ ### 🎉 New features
519
+
520
+ - Added new `Constants.__unsafeNoWarnManifest` property that behaves as `Constants.manifest` property, but suppresses warning upon no manifest available. ([#12237](https://github.com/expo/expo/pull/12237) by [@bbarthec](https://github.com/bbarthec))
521
+ > Warning: don't use this property, it's introduced for internal use only.
522
+
523
+ ## 10.1.0 — 2021-03-10
524
+
525
+ ### 🎉 New features
526
+
527
+ - Updated Android build configuration to target Android 11 (added support for Android SDK 30). ([#11647](https://github.com/expo/expo/pull/11647) by [@bbarthec](https://github.com/bbarthec))
528
+ - Use `@expo/config-types` package for `ExpoConfig` type. ([#11810](https://github.com/expo/expo/pull/11810) by [@EvanBacon](https://github.com/EvanBacon))
529
+
530
+ ### 🐛 Bug fixes
531
+
532
+ - Fixed support for Android Gradle plugin 4.1+ ([#11926](https://github.com/expo/expo/pull/11926) by [@esamelson](https://github.com/esamelson))
533
+ - Add deprecation messages for previously deprecated Constants fields. ([#11960](https://github.com/expo/expo/pull/11960) by [@ide](https://github.com/ide))
534
+
535
+ ## 10.0.1 — 2021-01-25
536
+
537
+ _This version does not introduce any user-facing changes._
538
+
539
+ ## 10.0.0 — 2021-01-15
540
+
541
+ ### 🛠 Breaking changes
542
+
543
+ - Dropped support for iOS 10.0 ([#11344](https://github.com/expo/expo/pull/11344) by [@tsapeta](https://github.com/tsapeta))
544
+
545
+ ### 🎉 New features
546
+
547
+ - Add support for new Apple devices to `platform.ios.deviceModel`. ([#11446](https://github.com/expo/expo/pull/11446) by [@sjchmiela](https://github.com/sjchmiela))
548
+ - Changed `Constants.platform.ios.model` nullability — it can now be `null`, if the value cannot be determined. ([#11445](https://github.com/expo/expo/pull/11445) by [@sjchmiela](https://github.com/sjchmiela))
549
+
550
+ ### 🐛 Bug fixes
551
+
552
+ - Removed `fbjs` dependency ([#11396](https://github.com/expo/expo/pull/11396) by [@cruzach](https://github.com/cruzach))
553
+ - Added support for simulators running on Apple ARM64 processors (previously, constants expected to be exported by native code were unavailable). ([#11445](https://github.com/expo/expo/pull/11445) by [@sjchmiela](https://github.com/sjchmiela))
554
+
555
+ ## 9.3.5 — 2020-12-11
556
+
557
+ ### 🐛 Bug fixes
558
+
559
+ - Add @expo/config to dependencies
560
+
561
+ ## 9.3.4 — 2020-12-09
562
+
563
+ ### 🐛 Bug fixes
564
+
565
+ - Fixed an issue where `Constants.manifest` was still undefined in debug Android builds in the bare workflow
566
+
567
+ ## 9.3.3 — 2020-12-02
568
+
569
+ _This version does not introduce any user-facing changes._
570
+
571
+ ## 9.3.2 — 2020-12-01
572
+
573
+ ### 🐛 Bug fixes
574
+
575
+ - Fixed the `getAppConfig.js` script to work with the latest version of `@expo/config`.
576
+
577
+ ## 9.3.1 — 2020-11-25
578
+
579
+ ### 🛠 Breaking changes
580
+
581
+ - Fixed `installationId` being backed up on Android which resulted in multiple devices having the same `installationId`. ([#11005](https://github.com/expo/expo/pull/11005) by [@sjchmiela](https://github.com/sjchmiela))
582
+ - Deprecated `.installationId` and `.deviceId` as these properties can be implemented in user space. Instead, implement the installation identifier on your own using `expo-application`'s `.androidId` on Android and a storage API like `expo-secure-store` on iOS and `localStorage` on Web. ([#10997](https://github.com/expo/expo/pull/10997) by [@sjchmiela](https://github.com/sjchmiela))
583
+
584
+ ## 9.3.0 — 2020-11-17
585
+
586
+ ### 🎉 New features
587
+
588
+ - Added `Constants.executionEnvironment` to distinguish between apps running in a bare, managed standalone, or App/Play Store development client environment. ([#10986](https://github.com/expo/expo/pull/10986) by [@esamelson](https://github.com/esamelson))
589
+ - Added script to embed app configuration into a bare app and export this object as `Constants.manifest`. ([#10948](https://github.com/expo/expo/pull/10948) and [#10949](https://github.com/expo/expo/pull/10949) by [@esamelson](https://github.com/esamelson))
590
+ - If `manifest` is defined on `expo-updates` then use it instead of `ExponentConstants.manifest` ([#10668](https://github.com/expo/expo/pull/10668) by [@esamelson](https://github.com/esamelson))
591
+ - Warn when developer attempts to access empty `Constants.manifest` in bare. Throw error when it is empty in managed. ([#11028](https://github.com/expo/expo/pull/11028) by [@esamelson](https://github.com/esamelson))
592
+ - Set `Contants.executionEnvironment` to `ExecutionEnvironment.Bare` on web.
593
+
594
+ ## 9.2.0 — 2020-08-18
595
+
596
+ _This version does not introduce any user-facing changes._
597
+
598
+ ## 9.1.1 — 2020-05-28
599
+
600
+ _This version does not introduce any user-facing changes._
601
+
602
+ ## 9.1.0 — 2020-05-27
603
+
604
+ ### 🐛 Bug fixes
605
+
606
+ - Fixed `uuid`'s deprecation of deep requiring ([#8114](https://github.com/expo/expo/pull/8114) by [@actuallymentor](https://github.com/actuallymentor))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,36 @@
1
- # Temporary Holding Version
1
+ # @expo-oh/expo-constants
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ HarmonyOS adaptation of expo-constants@18.0.14.
4
+
5
+ Install using the original dependency key:
6
+
7
+ `npm install --save-exact expo-constants@npm:@expo-oh/expo-constants@18.0.14`
8
+
9
+ Release: sdk54-expo-oh-harmony.0. See the repository release plan for supported capabilities. Upstream documentation follows.
10
+
11
+ # expo-constants
12
+
13
+ Provides system information that remains constant throughout the lifetime of your app.
14
+
15
+ # API documentation
16
+
17
+ - [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/constants/)
18
+ - [Documentation for the main branch](https://docs.expo.dev/versions/unversioned/sdk/constants/)
19
+
20
+ # Installation in managed Expo projects
21
+
22
+ For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/constants/).
23
+
24
+ # Installation in bare React Native projects
25
+
26
+ For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
27
+
28
+ ### Add the package to your npm dependencies
29
+
30
+ ```
31
+ npx expo install expo-constants
32
+ ```
33
+
34
+ # Contributing
35
+
36
+ Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).