| OLD | NEW |
| 1 {# Copyright 2016 The Chromium Authors. All rights reserved. #} | 1 {# Copyright 2016 The Chromium Authors. All rights reserved. #} |
| 2 {# Use of this source code is governed by a BSD-style license that can be #} | 2 {# Use of this source code is governed by a BSD-style license that can be #} |
| 3 {# found in the LICENSE file. #} | 3 {# found in the LICENSE file. #} |
| 4 // Generated by //build/android/generate_gradle.py | 4 // Generated by //build/android/generate_gradle.py |
| 5 {% if template_type == 'root' %} | 5 {% if template_type == 'root' %} |
| 6 | 6 |
| 7 buildscript { | 7 buildscript { |
| 8 repositories { | 8 repositories { |
| 9 jcenter() | 9 jcenter() |
| 10 } | 10 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 {% endfor %} | 73 {% endfor %} |
| 74 {% for proj in java_project_deps %} | 74 {% for proj in java_project_deps %} |
| 75 compile project(":{{ proj }}") | 75 compile project(":{{ proj }}") |
| 76 {% endfor %} | 76 {% endfor %} |
| 77 {% for proj in android_project_deps %} | 77 {% for proj in android_project_deps %} |
| 78 debugCompile project(path: ":{{ proj }}", configuration: "debug") | 78 debugCompile project(path: ":{{ proj }}", configuration: "debug") |
| 79 releaseCompile project(path: ":{{ proj }}", configuration: "release") | 79 releaseCompile project(path: ":{{ proj }}", configuration: "release") |
| 80 {% endfor %} | 80 {% endfor %} |
| 81 } | 81 } |
| 82 | 82 |
| 83 {% if template_type != 'java_library' %} |
| 83 afterEvaluate { | 84 afterEvaluate { |
| 84 def tasksToDisable = tasks.findAll { | 85 def tasksToDisable = tasks.findAll { |
| 85 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java | 86 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java |
| 86 || it.name.equals('generateReleaseSources') | 87 || it.name.equals('generateReleaseSources') |
| 87 || it.name.endsWith('Assets') | 88 || it.name.endsWith('Assets') |
| 88 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java | 89 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java |
| 89 {% if not use_gradle_process_resources %} | 90 {% if not use_gradle_process_resources %} |
| 90 || it.name.endsWith('Resources') | 91 || it.name.endsWith('Resources') |
| 91 || it.name.endsWith('ResValues') | 92 || it.name.endsWith('ResValues') |
| 92 {% endif %} | 93 {% endif %} |
| 93 || it.name.endsWith('Aidl') | 94 || it.name.endsWith('Aidl') |
| 94 || it.name.endsWith('Renderscript') | 95 || it.name.endsWith('Renderscript') |
| 95 || it.name.endsWith('Shaders')) | 96 || it.name.endsWith('Shaders')) |
| 96 } | 97 } |
| 97 tasksToDisable.each { Task task -> | 98 tasksToDisable.each { Task task -> |
| 98 task.enabled = false | 99 task.enabled = false |
| 99 } | 100 } |
| 100 } | 101 } |
| 102 {% endif %} |
| 101 | 103 |
| 102 {% endif %} | 104 {% endif %} |
| OLD | NEW |