build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. group 'com.tencent.live_flutter_plugin'
  2. version '1.0'
  3. buildscript {
  4. repositories {
  5. google()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:3.5.3'
  10. }
  11. }
  12. rootProject.allprojects {
  13. repositories {
  14. google()
  15. mavenCentral()
  16. }
  17. }
  18. apply plugin: 'com.android.library'
  19. def localProperties = new Properties()
  20. def localPropertiesFile = rootProject.file('local.properties')
  21. if (localPropertiesFile.exists()) {
  22. localPropertiesFile.withReader('UTF-8') {
  23. reader -> localProperties.load(reader)
  24. }
  25. }
  26. def flutterRoot = localProperties.getProperty('flutter.sdk')
  27. if (flutterRoot == null) {
  28. print("not find flutterRoot")
  29. }
  30. android {
  31. compileSdkVersion 30
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_1_8
  34. targetCompatibility JavaVersion.VERSION_1_8
  35. }
  36. defaultConfig {
  37. minSdkVersion 16
  38. }
  39. dependencies {
  40. api 'com.tencent.liteav:custom-video-processor:latest.release'
  41. api 'com.tencent.liteav:LiteAVSDK_Professional:11.0.0.13129'
  42. implementation 'com.google.code.gson:gson:2.8.6'
  43. compileOnly 'androidx.annotation:annotation:1.0.0'
  44. compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar")
  45. compileOnly 'androidx.core:core:1.0.0'
  46. }
  47. }