forked from forcedotcom/SalesforceMobileSDK-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
34 lines (32 loc) · 1.75 KB
/
settings.gradle.kts
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
val nodeModulesMsdk = File("${rootProject.projectDir}/libs/SalesforceReact/node_modules/react-native/android") // For stand-alone MSDK builds.
val nodeModulesTemplate = File("${rootProject.projectDir}/../../node_modules/react-native/android") // For template app builds.
val hasNodeModules = nodeModulesMsdk.exists() || nodeModulesTemplate.exists()
include("libs:SalesforceAnalytics")
include("libs:SalesforceSDK")
include("libs:SmartStore")
include("libs:MobileSync")
include("libs:SalesforceHybrid")
if (hasNodeModules) {
include("libs:SalesforceReact")
} else {
logger.warn("Skipping `SalesforceReact` module since local node repository is missing. Has `yarn install` been run in the directory containing `package.json`?")
}
include("hybrid:HybridSampleApps:AccountEditor")
include("native:NativeSampleApps:AppConfigurator")
include("native:NativeSampleApps:ConfiguredApp")
include("native:NativeSampleApps:MobileSyncExplorer")
include("hybrid:HybridSampleApps:MobileSyncExplorerHybrid")
include("native:NativeSampleApps:RestExplorer")
dependencyResolutionManagement {
repositories {
mavenLocal()
// All of React Native (JS, Objective-C sources, Android binaries) is installed from NPM.
maven("${rootProject.projectDir}/libs/SalesforceReact/node_modules/react-native/android") // For stand-alone MSDK builds.
maven("${rootProject.projectDir}/../../node_modules/react-native/android") // For template app builds.
// Android JSC is installed from NPM.
maven("${rootProject.projectDir}/libs/SalesforceReact/node_modules/jsc-android/dist") // For stand-alone MSDK builds.
maven("${rootProject.projectDir}/../../node_modules/jsc-android/dist") // For template app builds.
google()
mavenCentral()
}
}