build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. group 'com.i2edu.flutter_ali_camera'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.3.50'
  5. repositories {
  6. google()
  7. jcenter()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:3.5.0'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. }
  13. }
  14. rootProject.allprojects {
  15. repositories {
  16. google()
  17. jcenter()
  18. maven { url "http://maven.aliyun.com/nexus/content/repositories/releases" }
  19. }
  20. }
  21. apply plugin: 'com.android.library'
  22. apply plugin: 'kotlin-android'
  23. android {
  24. compileSdkVersion 28
  25. sourceSets {
  26. main.java.srcDirs += 'src/main/kotlin'
  27. }
  28. defaultConfig {
  29. minSdkVersion 16
  30. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  31. }
  32. lintOptions {
  33. disable 'InvalidPackage'
  34. }
  35. }
  36. dependencies {
  37. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  38. implementation 'com.aliyun.video.android:svideostandard:3.15.0'//短视频标准版SDK必须依赖
  39. implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖
  40. implementation 'com.alivc.conan:AlivcConan:1.0.3'//核心库必须依赖
  41. implementation 'com.aliyun.video.android:AlivcFFmpeg:2.0.0'//必须依赖
  42. implementation 'com.aliyun.video.android:upload:1.6.0'// 上传库,如不需要上传可不依赖
  43. implementation 'com.google.code.gson:gson:2.8.2'
  44. }