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"
37 // Set the Android SDK location. This is the *least specific* mechanism, which
38 // is unfortunate: we'd prefer to use the *most specific* mechanism. That is,
39 // local.properties (first 'sdk.dir', then 'android.dir') and then the
40 // environment variable ANDROID_HOME will override this. That's unfortunate,
41 // but it's hard to automatically arrange better.
42 System.setProperty('android.home', gradle.mozconfig.substs.ANDROID_SDK_ROOT)
44 include ':annotations', ':messaging_example', ':port_messaging_example'
46 include ':geckoview_example'
47 include ':test_runner'
49 include ':android-components'
50 include ':samples-browser'
52 include ':mozilla-lint-rules'
53 include ':focus-android'
54 include ':service-telemetry'
56 project(':annotations').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/annotations")
57 project(':geckoview').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview")
58 project(':geckoview_example').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview_example")
59 project(':test_runner').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/test_runner")
60 project(':exoplayer2').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/exoplayer2")
61 project(':android-components').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components")
62 project(':samples-browser').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/android-components/samples/browser")
63 project(':fenix').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/fenix/app")
64 project(':service-telemetry').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/service-telemetry")
65 project(':focus-android').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/focus-android/app")
67 if (hasProperty("androidFormatLintTest")) {
68 include ':androidFormatLintTest'
69 project(':androidFormatLintTest').projectDir = new File("${gradle.mozconfig.topsrcdir}/tools/lint/test/files/android-format")
72 project(':messaging_example').projectDir = new File('mobile/android/examples/messaging_example/app')
73 project(':port_messaging_example').projectDir = new File('mobile/android/examples/port_messaging_example/app')