commonroutesServer/www/platforms/android/cordova/lib/plugin-build.gradle
www/platforms/android/cordova/lib/plugin-build.gradleRaw
1/* Licensed to the Apache Software Foundation (ASF) under one
2 or more contributor license agreements. See the NOTICE file
3 distributed with this work for additional information
4 regarding copyright ownership. The ASF licenses this file
5 to you under the Apache License, Version 2.0 (the
6 "License"); you may not use this file except in compliance
7 with the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing,
12 software distributed under the License is distributed on an
13 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 KIND, either express or implied. See the License for the
15 specific language governing permissions and limitations
16 under the License.
17*/
18
19// GENERATED FILE! DO NOT EDIT!
20
21buildscript {
22 repositories {
23 mavenCentral()
24 }
25
26 // Switch the Android Gradle plugin version requirement depending on the
27 // installed version of Gradle. This dependency is documented at
28 // http://tools.android.com/tech-docs/new-build-system/version-compatibility
29 // and https://issues.apache.org/jira/browse/CB-8143
30 if (gradle.gradleVersion >= "2.2") {
31 dependencies {
32 classpath 'com.android.tools.build:gradle:1.0.0+'
33 }
34 } else if (gradle.gradleVersion >= "2.1") {
35 dependencies {
36 classpath 'com.android.tools.build:gradle:0.14.0+'
37 }
38 } else {
39 dependencies {
40 classpath 'com.android.tools.build:gradle:0.12.0+'
41 }
42 }
43}
44
45apply plugin: 'com.android.library'
46
47dependencies {
48 compile fileTree(dir: 'libs', include: '*.jar')
49 debugCompile project(path: ":CordovaLib", configuration: "debug")
50 releaseCompile project(path: ":CordovaLib", configuration: "release")
51}
52
53android {
54 compileSdkVersion cdvCompileSdkVersion
55 buildToolsVersion cdvBuildToolsVersion
56 publishNonDefault true
57
58 compileOptions {
59 sourceCompatibility JavaVersion.VERSION_1_6
60 targetCompatibility JavaVersion.VERSION_1_6
61 }
62
63 sourceSets {
64 main {
65 manifest.srcFile 'AndroidManifest.xml'
66 java.srcDirs = ['src']
67 resources.srcDirs = ['src']
68 aidl.srcDirs = ['src']
69 renderscript.srcDirs = ['src']
70 res.srcDirs = ['res']
71 assets.srcDirs = ['assets']
72 jniLibs.srcDirs = ['libs']
73 }
74 }
75}
76
77if (file('build-extras.gradle').exists()) {
78 apply from: 'build-extras.gradle'
79}