@peulda/expo-plugin-channel-io
Version:
Expo plugin for channel.io
22 lines (21 loc) • 991 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("expo/config-plugins");
const withAndroidChannelPlugin_1 = require("./android/withAndroidChannelPlugin");
const withChannelAppDelegate_1 = require("./ios/withChannelAppDelegate");
const withChannelInfoPlist_1 = require("./ios/withChannelInfoPlist");
const withChannelPodPlugin_1 = require("./ios/withChannelPodPlugin");
const withIosChannelPlugin = (config, props) => {
return (0, config_plugins_1.withPlugins)(config, [
[withChannelPodPlugin_1.withChannelPodPlugin, props],
withChannelAppDelegate_1.withChannelAppDelegate,
[withChannelInfoPlist_1.withChannelInfoPlist, props],
]);
};
const withChannelPlugin = (config, props = {}) => {
return (0, config_plugins_1.withPlugins)(config, [
[withIosChannelPlugin, props],
[withAndroidChannelPlugin_1.withAndroidChannelPlugin, props],
]);
};
exports.default = withChannelPlugin;