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

Side by Side Diff: build.gradle

Issue 29782630: Issue 6000 - Rename "libadblockplus-android" (Closed)
Patch Set: Created May 15, 2018, 9:30 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « adblock-android/src/org/adblockplus/libadblockplus/android/Utils.java ('k') | dependencies » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import java.util.regex.Matcher 1 import java.util.regex.Matcher
2 import java.util.regex.Pattern 2 import java.util.regex.Pattern
3 3
4 // ABI flavor of "libadblockplus-android" module 4 // ABI flavor of "adblock-android" module
5 def getAbiFlavor() { 5 def getAbiFlavor() {
6 Gradle gradle = getGradle() 6 Gradle gradle = getGradle()
7 String taskReqStr = gradle.getStartParameter().getTaskRequests().toString() 7 String taskReqStr = gradle.getStartParameter().getTaskRequests().toString()
8 8
9 Pattern pattern; 9 Pattern pattern;
10 10
11 if (taskReqStr.contains("assemble")) { 11 if (taskReqStr.contains("assemble")) {
12 pattern = Pattern.compile("assemble(Abi_\\w{2,3})(Release|Debug)*(\\w*)") 12 pattern = Pattern.compile("assemble(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
13 } else { 13 } else {
14 pattern = Pattern.compile("generate(Abi_\\w{2,3})(Release|Debug)*(\\w*)") 14 pattern = Pattern.compile("generate(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
(...skipping 24 matching lines...) Expand all
39 println "[Configuration] Building project in ${gradleBuildDir}" 39 println "[Configuration] Building project in ${gradleBuildDir}"
40 allprojects { 40 allprojects {
41 buildDir = "${gradleBuildDir}/${project.name}" 41 buildDir = "${gradleBuildDir}/${project.name}"
42 } 42 }
43 } 43 }
44 44
45 subprojects { 45 subprojects {
46 task listAllDependencies(type: DependencyReportTask) {} 46 task listAllDependencies(type: DependencyReportTask) {}
47 } 47 }
48 48
49 println "[Configuration] Using libadblockplus-android ABI flavor: " + getAbiFlav or() 49 println "[Configuration] Using adblock-android ABI flavor: " + getAbiFlavor()
OLDNEW
« no previous file with comments | « adblock-android/src/org/adblockplus/libadblockplus/android/Utils.java ('k') | dependencies » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld