Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: build/android/gradle/android.jinja

Issue 2621413002: Android: Split up build.gradle.jinja (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/gradle/build.gradle.jinja » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gradle/android.jinja
diff --git a/build/android/gradle/build.gradle.jinja b/build/android/gradle/android.jinja
similarity index 63%
rename from build/android/gradle/build.gradle.jinja
rename to build/android/gradle/android.jinja
index 1475cea39ee026926fff0915aec2d8ceca608493..5dba39daeb0ecedfdc55bd1e9306ff3e1c2428ec 100644
--- a/build/android/gradle/build.gradle.jinja
+++ b/build/android/gradle/android.jinja
@@ -2,46 +2,6 @@
{# Use of this source code is governed by a BSD-style license that can be #}
{# found in the LICENSE file. #}
// Generated by //build/android/generate_gradle.py
-{% if template_type == 'root' %}
-
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath "com.android.tools.build:gradle:2.2.3"
- }
-}
-
-{% elif template_type in ('java_library', 'java_binary') %}
-
-apply plugin: "java"
-{% if template_type == 'java_binary' %}
-apply plugin: "application"
-{% endif %}
-
-sourceSets {
- main {
- java.srcDirs = [
-{% for path in java_dirs %}
- "{{ path }}",
-{% endfor %}
- ]
- }
-}
-
-sourceCompatibility = JavaVersion.VERSION_1_7
-targetCompatibility = JavaVersion.VERSION_1_7
-
-{% if template_type == 'java_binary' %}
-mainClassName = "{{ main_class }}"
-applicationName = "{{ target_name }}"
-{% endif %}
-{% if template_type in ('java_binary', 'java_library') %}
-archivesBaseName = "{{ target_name }}"
-{% endif %}
-
-{% else %}
{% if template_type in ('android_library', 'android_junit') %}
apply plugin: "com.android.library"
@@ -89,22 +49,8 @@ android {
}
}
-{% endif %}
-{% if template_type != 'root' %}
+{% include 'dependencies.jinja' %}
-dependencies {
-{% for path in prebuilts %}
- {{ depCompileName }} files("{{ path }}")
-{% endfor %}
-{% for proj in java_project_deps %}
- {{ depCompileName }} project(":{{ proj }}")
-{% endfor %}
-{% for proj in android_project_deps %}
- {{ depCompileName }} project(path: ":{{ proj }}", configuration: "debug")
-{% endfor %}
-}
-
-{% if template_type.startswith('android') %}
android.variantFilter { variant ->
if (variant.buildType.name.equals('release')) {
variant.setIgnore(true);
@@ -129,6 +75,3 @@ afterEvaluate {
task.enabled = false
}
}
-
-{% endif %}
-{% endif %}
« no previous file with comments | « no previous file | build/android/gradle/build.gradle.jinja » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698