Bug 1822393 - Support Focus consuming GeckoView directly. r=owlish,geckoview-reviewers
[gecko.git] / settings.gradle
blob07becbd33c0754f0a546f843f88004262d233f3e
1 pluginManagement {
2     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/config")
3     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/dependencies")
4     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/publicsuffixlist")
5     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/fenix/plugins/apksize")
6     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/fenix/plugins/fenixdependencies")
7     includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/focus-android/plugins/focusdependencies")
10 plugins {
11     id "mozac.ConfigPlugin"
12     id 'mozac.DependenciesPlugin'
13     id 'ApkSizePlugin'
14     id 'FenixDependenciesPlugin'
15     id 'FocusDependenciesPlugin'
18 // You might think topsrcdir is '.', but that's not true when the Gradle build
19 // is launched from within IntelliJ.
20 ext.topsrcdir = rootProject.projectDir.absolutePath
22 apply from: "${topsrcdir}/mobile/android/shared-settings.gradle"
24 // Set the Android SDK location.  This is the *least specific* mechanism, which
25 // is unfortunate: we'd prefer to use the *most specific* mechanism.  That is,
26 // local.properties (first 'sdk.dir', then 'android.dir') and then the
27 // environment variable ANDROID_HOME will override this.  That's unfortunate,
28 // but it's hard to automatically arrange better.
29 System.setProperty('android.home', gradle.mozconfig.substs.ANDROID_SDK_ROOT)
31 include ':annotations', ':messaging_example', ':port_messaging_example'
32 include ':geckoview'
33 include ':geckoview_example'
34 include ':test_runner'
35 include ':exoplayer2'
36 include ':android-components'
37 include ':samples-browser'
38 include ':fenix'
39 include ':mozilla-lint-rules'
40 include ':focus-android'
41 include ':service-telemetry'
43 project(':annotations').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/annotations")
44 project(':geckoview').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview")
45 project(':geckoview_example').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview_example")
46 project(':test_runner').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/test_runner")
47 project(':exoplayer2').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/exoplayer2")
48 project(':android-components').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components")
49 project(':samples-browser').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components/samples/browser")
50 project(':fenix').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/fenix/app")
51 project(':service-telemetry').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/service-telemetry")
52 project(':focus-android').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/app")
54 if (hasProperty("androidFormatLintTest")) {
55     include ':androidFormatLintTest'
56     project(':androidFormatLintTest').projectDir = new File("${gradle.mozconfig.topsrcdir}/tools/lint/test/files/android-format")
59 project(':messaging_example').projectDir = new File('mobile/android/examples/messaging_example/app')
60 project(':port_messaging_example').projectDir = new File('mobile/android/examples/port_messaging_example/app')