Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: adblockplussbrowser/build.gradle

Issue 29727633: Issue 6502 - Add Chinese build variant (Closed)
Patch Set: Reverting changes in package name due to an error Created March 20, 2018, 12:10 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « adblockplussbrowser/AndroidManifest.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblockplussbrowser/build.gradle
===================================================================
--- a/adblockplussbrowser/build.gradle
+++ b/adblockplussbrowser/build.gradle
@@ -35,6 +35,19 @@
}
}
+ flavorDimensions "region"
+
+ productFlavors {
+ world {
+ dimension "region"
+ }
+
+ cn {
+ dimension "region"
+ applicationIdSuffix ".cn"
+ }
+ }
+
testOptions {
unitTests {
includeAndroidResources = true
@@ -42,10 +55,14 @@
}
afterEvaluate { project ->
- project.tasks.generateReleaseResources << {
- updateBundledLists()
- println('Bundled lists updated at ' + new Date().format('dd MMM yyyy, HH:mm:ss zzz'))
+ project.tasks.all { task ->
+ if (task.name.matches("generate.*Release.*Resources")) {
+ task.doLast {
+ updateBundledLists()
+ println('Bundled lists updated at ' + new Date().format('dd MMM yyyy, HH:mm:ss zzz'))
+ }
+ }
}
}
}
« no previous file with comments | « adblockplussbrowser/AndroidManifest.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld