build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 28
  5. buildToolsVersion '28.0.3'
  6. defaultConfig {
  7. minSdkVersion 22
  8. targetSdkVersion 28
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. externalNativeBuild {
  14. cmake {
  15. cppFlags ""
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. externalNativeBuild {
  26. cmake {
  27. path "src/main/cpp/CMakeLists.txt"
  28. version "3.10.2"
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = '1.8'
  37. }
  38. //
  39. // buildFeatures {
  40. // viewBinding true
  41. // }
  42. }
  43. dependencies {
  44. compileOnly fileTree(dir: "unity", include: ["*.jar"])
  45. // compileOnly project(':unityLibrary')
  46. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  47. implementation "androidx.appcompat:appcompat:1.3.0"
  48. implementation 'androidx.core:core-ktx:1.6.0'
  49. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  50. implementation "com.squareup.okhttp3:okhttp:4.9.0"
  51. implementation "io.coil-kt:coil:1.3.2"
  52. testImplementation 'junit:junit:4.+'
  53. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  54. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  55. }