plugin-build.gradle 2.2 KB

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