2 apply from: file('mobile/android/gradle/mozconfig.gradle')
5 gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
8 if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
9 allowInsecureProtocol = true
15 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/config")
16 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/dependencies")
17 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/android-components/plugins/publicsuffixlist")
18 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/fenix/plugins/apksize")
19 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/fenix/plugins/fenixdependencies")
20 includeBuild("${rootProject.projectDir.absolutePath}/mobile/android/focus-android/plugins/focusdependencies")
24 id "mozac.ConfigPlugin"
25 id 'mozac.DependenciesPlugin'
27 id 'FenixDependenciesPlugin'
28 id 'FocusDependenciesPlugin'
31 // You might think topsrcdir is '.', but that's not true when the Gradle build
32 // is launched from within IntelliJ.
33 ext.topsrcdir = rootProject.projectDir.absolutePath
35 apply from: "${topsrcdir}/mobile/android/shared-settings.gradle"
36 apply from: "${topsrcdir}/mobile/android/autopublish-settings.gradle"
38 // Set the Android SDK location. This is the *least specific* mechanism, which
39 // is unfortunate: we'd prefer to use the *most specific* mechanism. That is,
40 // local.properties (first 'sdk.dir', then 'android.dir') and then the
41 // environment variable ANDROID_HOME will override this. That's unfortunate,
42 // but it's hard to automatically arrange better.
43 System.setProperty('android.home', gradle.mozconfig.substs.ANDROID_SDK_ROOT)
45 include ':annotations', ':messaging_example', ':port_messaging_example'
47 include ':geckoview_example'
48 include ':test_runner'
50 include ':android-components'
51 include ':samples-browser'
53 include ':mozilla-lint-rules'
54 include ':focus-android'
55 include ':service-telemetry'
57 project(':annotations').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/annotations")
58 project(':geckoview').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview")
59 project(':geckoview_example').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview_example")
60 project(':test_runner').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/test_runner")
61 project(':exoplayer2').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/exoplayer2")
62 project(':android-components').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components")
63 project(':samples-browser').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components/samples/browser")
64 project(':fenix').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/fenix/app")
65 project(':service-telemetry').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/service-telemetry")
66 project(':focus-android').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/app")
68 if (hasProperty("androidFormatLintTest")) {
69 include ':androidFormatLintTest'
70 project(':androidFormatLintTest').projectDir = new File("${gradle.mozconfig.topsrcdir}/tools/lint/test/files/android-format")
73 project(':messaging_example').projectDir = new File('mobile/android/examples/messaging_example/app')
74 project(':port_messaging_example').projectDir = new File('mobile/android/examples/port_messaging_example/app')