-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
settings.gradle
49 lines (42 loc) · 1.89 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import groovy.json.JsonSlurper
apply from: '../../../node_modules/react-native-unimodules/gradle.groovy'
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
applyNativeModulesSettingsGradle(settings)
// Unimodules
// [Custom] load the excluded unimodules from the package.json to ensure
// the iOS and Android builds have the same modules.
def packageJsonFile = new File(rootProject.projectDir, '../package.json')
def packageJson = new JsonSlurper().parseText(packageJsonFile.text)
def excludedUnimodules = packageJson.excludedUnimodules != null ? packageJson.excludedUnimodules : []
// Include unimodules.
includeUnimodulesProjects(
modulesPaths : [
'../../../../packages',
],
configuration: 'api',
target : 'react-native',
// [Custom] Remove `expo-task-manager` which doesn't work on Android
// "expo-task-manager",
// "unimodules-task-manager-interface",
// "expo-background-fetch",
// "expo-location",
// [Custom] Remove branch
// "expo-branch",
// [Custom] Remove the camera
// "expo-camera",
// "expo-face-detector",
// "unimodules-face-detector-interface",
// "expo-payments-stripe",
// [Custom] FBSDK adds a lot of time to the pod install
// "expo-facebook",
// "expo-ads-facebook",
// [Custom] To avoid dealing with this error:
// 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
// "expo-ads-admob",
// [Custom] Remove non-unimodules
// "expo-video-thumbnails",
// "expo-module-template"
exclude : excludedUnimodules
)
rootProject.name = 'BareExpo'
include ':app'