This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withAppBuildGradle } from '@expo/config-plugins'; | |
const withFFmpegPackageOptions = (config) => { | |
return withAppBuildGradle(config, async config => { | |
const packagingOptions = | |
"\nandroid {\n \ | |
packagingOptions {\n \ | |
pickFirst 'lib/x86/libc++_shared.so'\n \ | |
pickFirst 'lib/x86_64/libc++_shared.so'\n \ | |
pickFirst 'lib/armeabi-v7a/libc++_shared.so'\n \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withProjectBuildGradle } from '@expo/config-plugins'; | |
const withFFmpegPackage = (config) => { | |
return withProjectBuildGradle(config, async config => { | |
const newContents = config.modResults.contents.replace( | |
'targetSdkVersion = 30\n', | |
'targetSdkVersion = 30\nreactNativeFFmpegPackage = "min-gpl-lts"\n' | |
); | |
config.modResults.contents = newContents | |
console.log(config); |