mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
fix: remove createPluginOnce
This commit is contained in:
1 parent
d96c0b2888
commit
68cf1c07b2
1 file changed
+2
-13
@@ -1,4 +1,4 @@
|
||||
import { ConfigPlugin, createRunOncePlugin, withAppBuildGradle } from "@expo/config-plugins";
|
||||
import { ConfigPlugin, withAppBuildGradle } from "@expo/config-plugins";
|
||||
|
||||
/**
|
||||
* Apply android-jsc-intl configuration for Expo SDK 42 projects.
|
||||
@@ -20,15 +20,4 @@ const withAndroidJscIntl: ConfigPlugin = (config) => {
|
||||
});
|
||||
};
|
||||
|
||||
const pkg = {
|
||||
// Prevent this plugin from being run more than once.
|
||||
// This pattern enables users to safely migrate off of this
|
||||
// out-of-tree `@config-plugins/android-jsc-intl` to a future
|
||||
// upstream plugin in `android-jsc-intl`
|
||||
name: "android-jsc-intl",
|
||||
// Indicates that this plugin is dangerously linked to a module,
|
||||
// and might not work with the latest version of that module.
|
||||
version: "UNVERSIONED",
|
||||
};
|
||||
|
||||
export default createRunOncePlugin(withAndroidJscIntl, pkg.name, pkg.version);
|
||||
export default withAndroidJscIntl
|
||||
Reference in new issue
Block a user