Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
ed6c36ad
Commit
ed6c36ad
authored
Oct 24, 2019
by
Jan-Erik Rediger
Browse files
Allow Glean to be substituted for local development
parent
50a2f280
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings.gradle
View file @
ed6c36ad
...
...
@@ -48,6 +48,7 @@ gradle.projectsLoaded { ->
Properties
localProperties
=
null
;
String
settingAppServicesPath
=
"substitutions.application-services.dir"
;
String
settingGleanPath
=
"substitutions.glean.dir"
;
if
(
file
(
'local.properties'
).
canRead
())
{
localProperties
=
new
Properties
()
...
...
@@ -71,4 +72,19 @@ if (localProperties != null) {
}
else
{
logger
.
lifecycle
(
"Local configuration: application-services substitution path missing. You may specify it via '$settingAppServicesPath' setting."
)
}
String
gleanLocalPath
=
localProperties
.
getProperty
(
settingGleanPath
);
if
(
gleanLocalPath
!=
null
)
{
logger
.
lifecycle
(
"Local configuration: substituting glean module from path: $gleanLocalPath"
)
includeBuild
(
gleanLocalPath
)
{
dependencySubstitution
{
substitute
module
(
'org.mozilla.telemetry:glean'
)
with
project
(
':glean'
)
substitute
module
(
'org.mozilla.telemetry:glean-forUnitTests'
)
with
project
(
':glean'
)
}
}
}
else
{
logger
.
lifecycle
(
"Local configuration: glean substitution path missing. You may specify it via '$settingGleanPath' setting."
)
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment