You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

8 years ago
  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. buildscript {
  17. repositories {
  18. mavenCentral()
  19. }
  20. dependencies {
  21. classpath 'com.android.tools.build:gradle:2.1.0'
  22. }
  23. }
  24. apply plugin: 'com.android.library'
  25. ext {
  26. apply from: 'cordova.gradle'
  27. cdvCompileSdkVersion = privateHelpers.getProjectTarget()
  28. cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
  29. }
  30. android {
  31. compileSdkVersion cdvCompileSdkVersion
  32. buildToolsVersion cdvBuildToolsVersion
  33. publishNonDefault true
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_1_6
  36. targetCompatibility JavaVersion.VERSION_1_6
  37. }
  38. sourceSets {
  39. main {
  40. manifest.srcFile 'AndroidManifest.xml'
  41. java.srcDirs = ['src']
  42. resources.srcDirs = ['src']
  43. aidl.srcDirs = ['src']
  44. renderscript.srcDirs = ['src']
  45. res.srcDirs = ['res']
  46. assets.srcDirs = ['assets']
  47. }
  48. }
  49. }