-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: emphasize bundled
@expo/*
packages and limit imports (#222)
- Loading branch information
Showing
11 changed files
with
92 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* eslint-disable import/first,import/order */ | ||
|
||
/** | ||
* Reuse the `ModPlatform` type from the Config Plugins package. | ||
* This outlines the platforms we can expect from the Config Plugins. | ||
*/ | ||
export type { ModPlatform } from '@expo/config-plugins/build/Plugin.types'; | ||
|
||
/** | ||
* Use a bundled version of the Gradle properties formatter. | ||
* This is used when previewing the project's Gradle properties. | ||
* The library itself likely won't change much, so it's safe to only rely on the bundled version. | ||
*/ | ||
export { propertiesListToString as formatGradleProperties } from '@expo/config-plugins/build/android/Properties'; | ||
|
||
/** | ||
* Use a bundled version of the XML formatter. | ||
* This is used when previewing XML files within the project. | ||
* The library itself likely won't change much, so it's safe to only rely on the bundled version. | ||
*/ | ||
export { format as formatXml } from '@expo/config-plugins/build/utils/XML'; | ||
|
||
/** | ||
* Use a bundled version of the Config Plugins mod compiler. | ||
* This is used to "compile" or run the plugins on a manifest. | ||
* | ||
* @note This bundled package is slightly outdated, attempt to load from `npx expo config` instead. | ||
*/ | ||
export { compileModsAsync } from '@expo/config-plugins/build/plugins/mod-compiler'; | ||
|
||
/** | ||
* Use a bundled version of the Config Plugins resolver. | ||
* This is used when validating the project's app manifest. | ||
* | ||
* @note This bundled package is slightly outdated and should be loaded from the project where possible. | ||
*/ | ||
export { | ||
resolveConfigPluginFunction, | ||
resolveConfigPluginFunctionWithInfo, | ||
} from '@expo/config-plugins/build/utils/plugin-resolver'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable import/first,import/order */ | ||
|
||
/** | ||
* Use a bundled version of the Expo Config package. | ||
* This is used to retrieve the app manifest from a project. | ||
* | ||
* @note This bundled package is slightly outdated, attempt to load from `npx expo config` instead. | ||
*/ | ||
export { type ExpoConfig, getConfig } from '@expo/config/build/Config'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable import/first,import/order */ | ||
|
||
/** | ||
* Use a bundled version of the plist formatter. | ||
* This is used when previewing iOS plist files within the project. | ||
* The library itself likely won't change much, so it's safe to only rely on the bundled version. | ||
*/ | ||
import plist from '@expo/plist'; | ||
export const formatPlist = plist.build; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable import/first,import/order */ | ||
|
||
/** | ||
* Use a bundled version of the prebuild config generator. | ||
* This is used to retrieve the config for Config Plugins. | ||
* | ||
* @note This bundled package is slightly outdated, attempt to load from `npx expo config` instead. | ||
*/ | ||
export { getPrebuildConfigAsync } from '@expo/prebuild-config/build/getPrebuildConfig'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters