2015-10-22 01:07:55 +03:00
|
|
|
// You might think topsrcdir is '.', but that's not true when the Gradle build
|
|
|
|
// is launched from within IntelliJ.
|
2023-12-08 00:19:37 +03:00
|
|
|
ext.topsrcdir = rootProject.projectDir.absolutePath
|
2015-10-22 01:07:55 +03:00
|
|
|
|
2023-12-08 00:19:37 +03:00
|
|
|
apply from: "${topsrcdir}/mobile/android/shared-settings.gradle"
|
2015-10-20 20:32:26 +03:00
|
|
|
|
2015-12-10 18:51:42 +03:00
|
|
|
// Set the Android SDK location. This is the *least specific* mechanism, which
|
|
|
|
// is unfortunate: we'd prefer to use the *most specific* mechanism. That is,
|
|
|
|
// local.properties (first 'sdk.dir', then 'android.dir') and then the
|
|
|
|
// environment variable ANDROID_HOME will override this. That's unfortunate,
|
|
|
|
// but it's hard to automatically arrange better.
|
2023-12-08 00:19:37 +03:00
|
|
|
System.setProperty('android.home', gradle.mozconfig.substs.ANDROID_SDK_ROOT)
|
2015-12-10 18:51:42 +03:00
|
|
|
|
2019-11-22 16:30:57 +03:00
|
|
|
include ':annotations', ':messaging_example', ':port_messaging_example'
|
2016-10-06 06:23:38 +03:00
|
|
|
include ':geckoview'
|
|
|
|
include ':geckoview_example'
|
2021-11-02 21:56:26 +03:00
|
|
|
include ':test_runner'
|
2022-01-11 22:16:02 +03:00
|
|
|
include ':exoplayer2'
|
2015-10-22 01:07:55 +03:00
|
|
|
|
2023-12-08 00:19:37 +03:00
|
|
|
project(':annotations').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/annotations")
|
|
|
|
project(':geckoview').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview")
|
|
|
|
project(':geckoview_example').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/geckoview_example")
|
|
|
|
project(':test_runner').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/test_runner")
|
|
|
|
project(':exoplayer2').projectDir = new File("${gradle.mozconfig.topsrcdir}/mobile/android/exoplayer2")
|
2015-10-22 01:07:55 +03:00
|
|
|
|
2022-11-18 03:55:03 +03:00
|
|
|
if (hasProperty("androidFormatLintTest")) {
|
|
|
|
include ':androidFormatLintTest'
|
2023-12-08 00:19:37 +03:00
|
|
|
project(':androidFormatLintTest').projectDir = new File("${gradle.mozconfig.topsrcdir}/tools/lint/test/files/android-format")
|
2022-11-18 03:55:03 +03:00
|
|
|
}
|
|
|
|
|
2019-11-22 16:30:57 +03:00
|
|
|
project(':messaging_example').projectDir = new File('mobile/android/examples/messaging_example/app')
|
2021-09-29 20:54:57 +03:00
|
|
|
project(':port_messaging_example').projectDir = new File('mobile/android/examples/port_messaging_example/app')
|