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: Created March 19, 2018, 11:28 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
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'))
+ }
+ }
}
}
}
« adblockplussbrowser/AndroidManifest.xml ('K') | « adblockplussbrowser/AndroidManifest.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld