Skip to content
Discussion options

You must be logged in to vote

@mike24dzy

Add "./plugins/withPodfile", to your expo.plugins array in app.json

/plugins/withPodfile.js

const { withDangerousMod } = require('@expo/config-plugins')
const fs = require('fs')
const path = require('path')

const PREPEND_LINE = '$RNFirebaseAnalyticsEnableAdSupport = true'

/**
 *
 * @param {import('expo/config-plugins').ExportedConfig} config
 * @returns {import('expo/config-plugins').ExportedConfigWithProps}
 */
module.exports = config => {
  return withDangerousMod(config, [
    'ios',
    config => {
      const file = path.join(
        config.modRequest.platformProjectRoot,
        'Podfile'
      )

      const contents = fs
        .readFileSync(file, 'utf-8')
        .…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mike24dzy
Comment options

Answer selected by zholmes1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants