GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — wire-android/build.gradle at master · plabon/wire-android Expand file tree/ Copy pathbuild.gradleMore file actions 305 lines (261 loc) · 11.2 KB / Copy pathbuild.gradleFile metadata and controls305 lines (261 loc) · 11.2 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { url "https://dl.bintray.com/wire-android/third-party" } jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.mutualmobile.gradle.plugins:dexinfo:0.1.2' classpath 'com.wire:gradle-android-scala-plugin:1.5.0' classpath 'com.google.gms:google-services:3.0.0' } } plugins { id "com.github.hierynomus.license" version "0.13.1" } license { header = file('LICENSE_HEADER') ext.year = Calendar.getInstance().get(Calendar.YEAR) ext.name = 'Wire Swiss GmbH' skipExistingHeaders = true } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } task licenseFormatAndroid(type: nl.javadude.gradle.plugins.license.License) { source = fileTree(dir: getRootDir()).include([ "**/*.java", "**/*.scala", "**/*.gradle", "**/*.xml", ]).exclude([ "**/*build*", "**/*target*", "**/*gen*", "**/*generated*", ]) } licenseFormat.dependsOn licenseFormatAndroid ext { majorVersion = "3.2." compileSdkVersion = 26 // When upgrading minimum sdk you might want to search for occurrences of Build.VERSION_CODES. // There are some classes with possibility of being simplified. minSdkVersion = 17 targetSdkVersion = 23 buildToolsVersion = '26.0.1' scalaMajorVersion = '2.11' scalaVersion = scalaMajorVersion + '.8' sourceCompatibilityVersion = JavaVersion.VERSION_1_7 targetCompatibilityVersion = JavaVersion.VERSION_1_7 preDexLibs = !project.hasProperty('disablePreDex') checkstyleVersion = '6.18' pmdVersion = '5.4.1' supportLibVersion = '26.0.1' playServicesVersion = '11.0.0' audioVersion = System.getenv("AUDIO_VERSION") ?: '1.209.0@aar' zMessagingDevVersionBase = '113.1760' zMessagingDevVersion = "${zMessagingDevVersionBase}@aar" // Release version number must be like this X.0(.Y) zMessagingReleaseVersion = System.getenv("ZMESSAGING_VERSION") ?: '112.2.409@aar' avsVersion = '3.4.100@aar' avsInternalVersion = avsVersion //leave this here in case we want to test specific AVS versions on internal avsName = 'avs' avsGroup = 'com.wire' // proprietary avs artifact configuration customAvsVersion = '3.8.19@aar' customAvsInternalVersion = customAvsVersion customAvsName = 'avs' customAvsGroup = 'com.wearezeta.avs' deps = [ scala : "org.scala-lang:scala-library:$scalaVersion", scalaReflect : "org.scala-lang:scala-reflect:$scalaVersion", // Lint dependencies lintapi : 'com.android.tools.lint:lint-api:24.5.0', lintchecks : 'com.android.tools.lint:lint-checks:24.5.0', // Checkstyle dependencies checkstyleapi : "com.puppycrawl.tools:checkstyle:$checkstyleVersion", // Support libs multidex : "com.android.support:multidex:1.0.1", supportv4 : "com.android.support:support-v4:$supportLibVersion", supportv13 : "com.android.support:support-v13:$supportLibVersion", supportdesign : "com.android.support:design:$supportLibVersion", appcompatv7 : "com.android.support:appcompat-v7:$supportLibVersion", recyclerview : "com.android.support:recyclerview-v7:$supportLibVersion", supportannotations : "com.android.support:support-annotations:$supportLibVersion", preferences : "com.android.support:preference-v7:$supportLibVersion", cardview : "com.android.support:cardview-v7:$supportLibVersion", // Play services psBase : "com.google.android.gms:play-services-base:$playServicesVersion", psMaps : "com.google.android.gms:play-services-maps:$playServicesVersion", psLocation : "com.google.android.gms:play-services-location:$playServicesVersion", fcm : "com.google.firebase:firebase-messaging:$playServicesVersion", // Other timber : 'com.jakewharton.timber:timber:4.1.1', hockey : 'net.hockeyapp.android:HockeySDK:4.1.4', threetenabp : 'com.jakewharton.threetenabp:threetenabp:1.0.3', mixpanel : 'com.mixpanel.android:mixpanel-android:5.+', rebound : 'com.facebook.rebound:rebound:0.3.8', supportpreferences : 'net.xpece.android:support-preference:0.8.1', // Internal audioNotifications : "com.wire:audio-notifications:$audioVersion", stetho : 'com.facebook.stetho:stetho:1.4.2', // Test dependencies junit : 'junit:junit:4.12', testutils : "com.wire:testutils:$zMessagingDevVersionBase", scalatest : "org.scalatest:scalatest_$scalaMajorVersion:2.2.6", testRunner : 'com.android.support.test:runner:0.4.1', testRules : 'com.android.support.test:rules:0.4.1', espresso : 'com.android.support.test.espresso:espresso-core:2.2', espressoIntents : 'com.android.support.test.espresso:espresso-intents:2.2', hamcrestCore : 'org.hamcrest:hamcrest-core:1.3', hamcrestLib : 'org.hamcrest:hamcrest-library:1.3', hamcrestIntegration : 'org.hamcrest:hamcrest-integration:1.3', mockitoCore : 'org.mockito:mockito-core:1.10.19', //The dexmaker stuff is needed for Mockito to work completely dexmaker : 'com.crittercism.dexmaker:dexmaker:1.4', dexmakerDx : 'com.crittercism.dexmaker:dexmaker-dx:1.4', dexmakerMockito : 'com.crittercism.dexmaker:dexmaker-mockito:1.4', // Translations translations : 'com.wire:wiretranslations:1.+', //Json parser gson : 'com.google.code.gson:gson:2.2.4', // Java Native Access jna : 'net.java.dev.jna:jna:4.4.0@aar' ] } allprojects { repositories { mavenLocal() maven { url "https://dl.bintray.com/wire-android/releases" } maven { url "https://dl.bintray.com/wire-android/snapshots" } maven { url "https://dl.bintray.com/wire-android/third-party" } maven { url 'https://maven.google.com' } mavenCentral() } } if (project.file('user.gradle').exists()) { apply from: "user.gradle" } task ci(dependsOn: [ ':app:assembleDevDebug', // Different Lint checks ':app:lintDevDebug', ':wire-core:lintDebug', ':wire-ui:lintDebug', // By default on whole app //':app:checkstyle', ':app:pmd' ]) { doLast { def lintReportsPattern = /\/?(.*)\/build\/outputs\/lint-results\-(devDebug|debug)\.xml/ def pmdReportsPattern = /\/?(.*)\/build\/reports\/pmd\/pmd\.xml/ def checkstyleReportsPattern = /\/?(.*)\/reports\/checkstyle\/checkstyle\.xml/ def results = new HashMap<String, Map<String, List<Issue>>>() def totalIssues = 0 def findFilenameClosure = { if (it.isDirectory()) { return; } def absolutePath = it.getAbsolutePath() def foundIssues = new ArrayList<Issue>() def type = '' if (absolutePath.matches(lintReportsPattern)) { def issues = new XmlParser().parse(it) type = 'Lint' issues.issue.each { def id = it.'@summary' it.location.each { foundIssues.add(new LintIssue(id, it)) } } } else if (absolutePath.matches(pmdReportsPattern)) { def issues = new XmlParser().parse(it) type = 'PMD' issues.file.each { def file = new File(it.'@name') it.violation.each { foundIssues.add(new PmdIssue(file, it)) } } } else if (absolutePath.matches(checkstyleReportsPattern)) { def files = new XmlParser().parse(it) type = 'Checkstyle' files.file.findAll { it.children().size() > 0 }.each { def file = new File(it.'@name') it.error.each { foundIssues.add(new CheckstyleIssue(file, it)) } } } if (foundIssues.size() > 0) { if (!results.containsKey(type)) { results.put(type, new HashMap<String, List<Issue>>()) } results.get(type).put(it, foundIssues) totalIssues += foundIssues.size() } } rootProject.rootDir.eachFileRecurse(findFilenameClosure) if (totalIssues > 0) { def message = new StringBuilder() message.append("Found ${totalIssues} issue${totalIssues == 1 ? '' : 's'}\n\n") for (def entry : results.entrySet()) { def issues = new StringBuilder() def count = 0; for (def file : entry.value.entrySet()) { issues.append("> ${file.value.size()} in ${file.key}\n") file.value.each { issues.append("\t${it}\n")} count += file.value.size() } message.append("${entry.key}: ${count} issue${count == 1 ? '' : 's'}\n") .append(issues.toString()) .append('\n') } throw new Exception(message.toString()) } else { println 'No issues found' } } } class Issue { File file String line String column String error @Override public String toString() { return "${file}:${line}:${column}: ${error}"; } } class LintIssue extends Issue { def LintIssue(String error, Node location) { file = new File(location.'@file') line = location.'@line' column = location.'@column' this.error = error } } class PmdIssue extends Issue { def PmdIssue(File file, Node violation) { this.file = file def beginline = violation.'@beginline' def endline = violation.'@endline' line = beginline == endline ? beginline : "${beginline}-${endline}" column = violation.'@begincolumn' error = violation.text().replaceAll(/\n/, '') } } class CheckstyleIssue extends Issue { def CheckstyleIssue(File file, Node node) { this.file = file line = node.'@line' column = node.'@column' error = node.'@message' } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |