fix: remove createPluginOnce

This commit is contained in:
Fernando Rojo authored and GitHub committed 2021-07-07 23:32:46 +00:00
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