| 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 {% macro expand_sourceset(variables, prefix) %} | 4 {% macro expand_sourceset(variables, prefix) %} |
| 5 {% if variables is defined %} | 5 {% if variables is defined %} |
| 6 {{ prefix }} { | 6 {{ prefix }} { |
| 7 manifest.srcFile "{{ variables.android_manifest }}" | 7 manifest.srcFile "{{ variables.android_manifest }}" |
| 8 java.srcDirs = [ | 8 java.srcDirs = [ |
| 9 {% for path in variables.java_dirs %} | 9 {% for path in variables.java_dirs %} |
| 10 "{{ path }}", | 10 "{{ path }}", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 android.variantFilter { variant -> | 70 android.variantFilter { variant -> |
| 71 if (variant.buildType.name.equals('release')) { | 71 if (variant.buildType.name.equals('release')) { |
| 72 variant.setIgnore(true); | 72 variant.setIgnore(true); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 afterEvaluate { | 76 afterEvaluate { |
| 77 def tasksToDisable = tasks.findAll { | 77 def tasksToDisable = tasks.findAll { |
| 78 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java | 78 return (it.name.equals('generateDebugSources') // causes unwanted Andro
idManifest.java |
| 79 || it.name.equals('generateReleaseSources') | 79 || it.name.equals('generateReleaseSources') |
| 80 {% if not use_gradle_process_resources %} |
| 80 || it.name.endsWith('Assets') | 81 || it.name.endsWith('Assets') |
| 82 {% endif %} |
| 81 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java | 83 || it.name.endsWith('BuildConfig') // causes unwanted BuildConf
ig.java |
| 82 {% if not use_gradle_process_resources %} | 84 {% if not use_gradle_process_resources %} |
| 83 || it.name.endsWith('Resources') | 85 || it.name.endsWith('Resources') |
| 84 || it.name.endsWith('ResValues') | 86 || it.name.endsWith('ResValues') |
| 85 {% endif %} | 87 {% endif %} |
| 86 || it.name.endsWith('Aidl') | 88 || it.name.endsWith('Aidl') |
| 87 || it.name.endsWith('Renderscript') | 89 || it.name.endsWith('Renderscript') |
| 88 || it.name.endsWith('Shaders')) | 90 || it.name.endsWith('Shaders')) |
| 89 } | 91 } |
| 90 tasksToDisable.each { Task task -> | 92 tasksToDisable.each { Task task -> |
| 91 task.enabled = false | 93 task.enabled = false |
| 92 } | 94 } |
| 93 } | 95 } |
| OLD | NEW |