build.gradle 1.5 KB

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