build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * UVCCamera
  3. * library and sample to access to UVC web camera on non-rooted Android device
  4. *
  5. * Copyright (c) 2014-2017 saki t_saki@serenegiant.com
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * All files in the folder are under this Apache License, Version 2.0.
  20. * Files in the libjpeg-turbo, libusb, libuvc, rapidjson folder
  21. * may have a different license, see the respective files.
  22. */
  23. apply plugin: 'com.android.library'
  24. android {
  25. compileSdkVersion versionCompiler
  26. buildToolsVersion versionBuildTool
  27. compileOptions {
  28. sourceCompatibility javaSourceCompatibility
  29. targetCompatibility javaTargetCompatibility
  30. }
  31. defaultConfig {
  32. minSdkVersion 18
  33. targetSdkVersion versionTarget
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. }
  42. dependencies {
  43. api fileTree(dir: 'libs', include: ['*.jar'])
  44. implementation "com.android.support:support-v4:${supportLibVersion}"
  45. implementation "com.android.support:support-annotations:${supportLibVersion}"
  46. implementation("com.serenegiant:common:${commonLibVersion}") {
  47. exclude module: 'support-v4'
  48. }
  49. implementation project(':libuvccamera')
  50. }