diff --git a/app.plugin.js b/app.plugin.js new file mode 100644 index 00000000..97f2aaff --- /dev/null +++ b/app.plugin.js @@ -0,0 +1 @@ +module.exports = require("./plugin/withDidomi"); diff --git a/package.json b/package.json index 09d74e29..ed886cbe 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "!ios/build", "!**/__tests__", "!**/__fixtures__", - "!**/__mocks__" + "!**/__mocks__", + "app.plugin.js", + "plugin/" ], "workspaces": [ ".", @@ -86,5 +88,13 @@ } ] ] + }, + "dependencies": { + "@expo/config-plugins": "^54.0.2" + }, + "expo": { + "plugins": [ + "./plugin/withDidomi.js" + ] } } diff --git a/plugin/withDidomi.js b/plugin/withDidomi.js new file mode 100644 index 00000000..ba3383d8 --- /dev/null +++ b/plugin/withDidomi.js @@ -0,0 +1,13 @@ +const { createRunOncePlugin } = require("@expo/config-plugins"); + +const packageInfo = require("../package.json"); + +const withDidomi = (config) => { + return config; +}; + +module.exports = createRunOncePlugin( + withDidomi, + packageInfo.name, + packageInfo.version +)