plugin-build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing,
  10. software distributed under the License is distributed on an
  11. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. KIND, either express or implied. See the License for the
  13. specific language governing permissions and limitations
  14. under the License.
  15. */
  16. // GENERATED FILE! DO NOT EDIT!
  17. buildscript {
  18. repositories {
  19. mavenCentral()
  20. }
  21. // Switch the Android Gradle plugin version requirement depending on the
  22. // installed version of Gradle. This dependency is documented at
  23. // http://tools.android.com/tech-docs/new-build-system/version-compatibility
  24. // and https://issues.apache.org/jira/browse/CB-8143
  25. if (gradle.gradleVersion >= "2.2") {
  26. dependencies {
  27. classpath 'com.android.tools.build:gradle:1.0.0+'
  28. }
  29. } else if (gradle.gradleVersion >= "2.1") {
  30. dependencies {
  31. classpath 'com.android.tools.build:gradle:0.14.0+'
  32. }
  33. } else {
  34. dependencies {
  35. classpath 'com.android.tools.build:gradle:0.12.0+'
  36. }
  37. }
  38. }
  39. apply plugin: 'android-library'
  40. dependencies {
  41. compile fileTree(dir: 'libs', include: '*.jar')
  42. debugCompile project(path: ":CordovaLib", configuration: "debug")
  43. releaseCompile project(path: ":CordovaLib", configuration: "release")
  44. }
  45. android {
  46. compileSdkVersion cdvCompileSdkVersion
  47. buildToolsVersion cdvBuildToolsVersion
  48. publishNonDefault true
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_6
  51. targetCompatibility JavaVersion.VERSION_1_6
  52. }
  53. sourceSets {
  54. main {
  55. manifest.srcFile 'AndroidManifest.xml'
  56. java.srcDirs = ['src']
  57. resources.srcDirs = ['src']
  58. aidl.srcDirs = ['src']
  59. renderscript.srcDirs = ['src']
  60. res.srcDirs = ['res']
  61. assets.srcDirs = ['assets']
  62. jniLibs.srcDirs = ['libs']
  63. }
  64. }
  65. }
  66. if (file('build-extras.gradle').exists()) {
  67. apply from: 'build-extras.gradle'
  68. }