build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. group 'cn.i2edu.dubbing_lib'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.3.20'
  5. repositories {
  6. google()
  7. jcenter()
  8. maven { url 'https://jitpack.io' }
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.3.0'
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  13. }
  14. }
  15. rootProject.allprojects {
  16. repositories {
  17. google()
  18. jcenter()
  19. maven { url 'https://jitpack.io' }
  20. }
  21. }
  22. apply plugin: 'com.android.library'
  23. apply plugin: 'kotlin-android'
  24. android {
  25. compileSdkVersion 28
  26. sourceSets {
  27. main {
  28. java.srcDirs += 'src/main/kotlin'
  29. jniLibs.srcDirs = ['libs']
  30. }
  31. }
  32. defaultConfig {
  33. minSdkVersion 21
  34. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  35. }
  36. lintOptions {
  37. disable 'InvalidPackage'
  38. }
  39. }
  40. dependencies {
  41. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  42. compileOnly files('libs/flutter.jar')
  43. implementation 'com.googlecode.mp4parser:isoparser:1.0-RC-37'
  44. implementation 'com.alibaba:fastjson:1.1.71.android'
  45. }