-
Notifications
You must be signed in to change notification settings - Fork 13
/
settings.gradle
29 lines (24 loc) · 1.43 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
// This project contains two distinct applications:
// 1) the CBL-Android-EE source and the code to build, unit-test and publish it to maven
// 2) an independent application that runs automated tests on the application build in #1
//
// The two apps are mutually exclusive: the test app is built and run only by CI machines
// during the release process. All other work in this repo will use only the "lib" module.
// Separating the two prevents confusing build failures in the test app, while working
// with the library.
// The crazy hack below could be avoided by separating the test app into a separate project.
// The only arguments for *not* doing this is that separating the two would require
// separate directories for test projects (separate git repos?) and keeping the build scripts
// for the test projects in sync
//
// normal source development
def module = "lib"
// use the test application, instead, if testing
if (hasProperty("automatedTests") && automatedTests.toBoolean()) { module = 'test' }
include "ce:android:lib", "ee:android:lib", "ce:android-ktx:${module}", "ee:android-ktx:${module}", "ce:java:${module}", "ee:java:${module}"
project(":ee:android:lib").name = "ee_android"
project(":ce:android:lib").name = "ce_android"
project(":ee:android-ktx:${module}").name = "ee_android-ktx"
project(":ce:android-ktx:${module}").name = "ce_android-ktx"
project(":ee:java:${module}").name = "ee_java"
project(":ce:java:${module}").name = "ce_java"