fork mcemojipicker
This commit is contained in:
@@ -289,6 +289,7 @@ module.exports = function (_config) {
|
|||||||
'./plugins/withAndroidNoJitpackPlugin.js',
|
'./plugins/withAndroidNoJitpackPlugin.js',
|
||||||
'./plugins/shareExtension/withShareExtensions.js',
|
'./plugins/shareExtension/withShareExtensions.js',
|
||||||
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
||||||
|
'./plugins/withMCEmojiPickerFork.js',
|
||||||
[
|
[
|
||||||
'expo-font',
|
'expo-font',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
|
|||||||
s.static_framework = true
|
s.static_framework = true
|
||||||
|
|
||||||
s.dependency 'ExpoModulesCore'
|
s.dependency 'ExpoModulesCore'
|
||||||
s.dependency 'MCEmojiPicker', '1.2.3'
|
s.dependency 'MCEmojiPicker'
|
||||||
|
|
||||||
# Swift/Objective-C compatibility
|
# Swift/Objective-C compatibility
|
||||||
s.pod_target_xcconfig = {
|
s.pod_target_xcconfig = {
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user