plugin-build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  20. maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  21. // google()
  22. // jcenter()
  23. }
  24. // Switch the Android Gradle plugin version requirement depending on the
  25. // installed version of Gradle. This dependency is documented at
  26. // http://tools.android.com/tech-docs/new-build-system/version-compatibility
  27. // and https://issues.apache.org/jira/browse/CB-8143
  28. dependencies {
  29. classpath 'com.android.tools.build:gradle:1.0.0+'
  30. }
  31. }
  32. apply plugin: 'com.android.library'
  33. dependencies {
  34. implementation fileTree(dir: 'libs', include: '*.jar')
  35. debugCompile project(path: ":CordovaLib", configuration: "debug")
  36. releaseCompile project(path: ":CordovaLib", configuration: "release")
  37. }
  38. android {
  39. compileSdkVersion cdvCompileSdkVersion
  40. buildToolsVersion cdvBuildToolsVersion
  41. compileOptions {
  42. sourceCompatibility JavaVersion.VERSION_1_6
  43. targetCompatibility JavaVersion.VERSION_1_6
  44. }
  45. sourceSets {
  46. main {
  47. manifest.srcFile 'AndroidManifest.xml'
  48. java.srcDirs = ['src']
  49. resources.srcDirs = ['src']
  50. aidl.srcDirs = ['src']
  51. renderscript.srcDirs = ['src']
  52. res.srcDirs = ['res']
  53. assets.srcDirs = ['assets']
  54. jniLibs.srcDirs = ['libs']
  55. }
  56. }
  57. }
  58. if (file('build-extras.gradle').exists()) {
  59. apply from: 'build-extras.gradle'
  60. }