From f31e65b8b0bcf689dc4d52703252940444f0c6be Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 27 Jan 2026 16:40:41 +0200 Subject: [PATCH] replace config plugin with extraPods --- app.config.js | 8 +++++++- plugins/withMCEmojiPickerFork.js | 30 ------------------------------ 2 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 plugins/withMCEmojiPickerFork.js diff --git a/app.config.js b/app.config.js index ef3df27b91..b428c23d58 100644 --- a/app.config.js +++ b/app.config.js @@ -255,6 +255,13 @@ module.exports = function (_config) { deploymentTarget: '15.1', buildReactNativeFromSource: true, ccacheEnabled: IS_DEV, + extraPods: [ + { + name: 'MCEmojiPicker', + git: 'https://github.com/bluesky-social/MCEmojiPicker.git', + branch: 'main', + }, + ], }, android: { compileSdkVersion: 35, @@ -289,7 +296,6 @@ module.exports = function (_config) { './plugins/withAndroidNoJitpackPlugin.js', './plugins/shareExtension/withShareExtensions.js', './plugins/notificationsExtension/withNotificationsExtension.js', - './plugins/withMCEmojiPickerFork.js', [ 'expo-font', { diff --git a/plugins/withMCEmojiPickerFork.js b/plugins/withMCEmojiPickerFork.js deleted file mode 100644 index 052cf24b42..0000000000 --- a/plugins/withMCEmojiPickerFork.js +++ /dev/null @@ -1,30 +0,0 @@ -const {withPodfile} = require('@expo/config-plugins') - -const POD_LINE = - "pod 'MCEmojiPicker', :git => 'https://github.com/bluesky-social/MCEmojiPicker.git', :branch => 'main'" - -module.exports = function withMCEmojiPickerFork(config) { - return withPodfile(config, config => { - const contents = config.modResults.contents - - // Check if already added - if (contents.includes(POD_LINE)) { - return config - } - - // Insert after use_expo_modules! - const anchor = 'use_expo_modules!' - if (!contents.includes(anchor)) { - throw new Error( - `Cannot find "${anchor}" in Podfile to insert MCEmojiPicker fork`, - ) - } - - config.modResults.contents = contents.replace( - anchor, - `${anchor}\n\n # Use maintained fork of MCEmojiPicker\n ${POD_LINE}`, - ) - - return config - }) -}