build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. group 'dev.bughub.plugin.fltbdface'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.6.21'
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:4.1.3'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. }
  13. }
  14. rootProject.allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. flatDir {
  19. dirs 'libs'
  20. dirs project(':fltbdface').file('libs')
  21. }
  22. }
  23. }
  24. apply plugin: 'com.android.library'
  25. apply plugin: 'kotlin-android'
  26. android {
  27. namespace "dev.bughub.plugin.fltbdface"
  28. compileSdkVersion 31
  29. sourceSets {
  30. main.java.srcDirs += 'src/main/kotlin'
  31. }
  32. defaultConfig {
  33. minSdkVersion 16
  34. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  35. }
  36. lintOptions {
  37. disable 'InvalidPackage'
  38. }
  39. kotlinOptions {
  40. jvmTarget = 17
  41. }
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_17
  44. targetCompatibility JavaVersion.VERSION_17
  45. }
  46. }
  47. dependencies {
  48. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  49. implementation fileTree(dir: 'libs', include: ['*.jar'])
  50. // api files('libs/faceplatform.aar')
  51. api(name: 'faceplatform', ext: 'aar')
  52. }