build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. minSdkVersion 10
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles 'consumer-rules.pro'
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. sourceSets {
  22. main {
  23. jniLibs.srcDirs = ['libs']
  24. assets.srcDir "assets"
  25. }
  26. }
  27. repositories {
  28. flatDir {
  29. dirs 'libs','../libgdx_spine/libs'
  30. }
  31. }
  32. }
  33. configurations { natives }
  34. dependencies {
  35. implementation fileTree(dir: 'libs', include: ['*.jar'])
  36. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  37. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  38. api(name: 'gdx-backend-android-textureview-release', ext: 'aar')
  39. //引入libgdx
  40. api 'com.badlogicgames.gdx:gdx:1.9.10'
  41. natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-armeabi"
  42. natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-armeabi-v7a"
  43. natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-x86_64"
  44. // api project(':gdx-backend-android-textureview')
  45. //解析spine
  46. api 'com.esotericsoftware.spine:spine-libgdx:3.8.55.1'
  47. }