build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'maven-publish'
  5. }
  6. android {
  7. namespace 'com.luojigou.product'
  8. compileSdk 33
  9. defaultConfig {
  10. minSdkVersion 24
  11. targetSdkVersion 33
  12. versionCode 1
  13. versionName versionName
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. sourceSets {
  26. main {
  27. jniLibs.srcDirs = [
  28. 'libs',
  29. 'src/main/cpp/libs'
  30. ]
  31. }
  32. }
  33. buildFeatures {
  34. viewBinding true
  35. }
  36. kotlinOptions {
  37. jvmTarget = '1.8'
  38. }
  39. buildTypes {
  40. release {
  41. shrinkResources false
  42. minifyEnabled false
  43. }
  44. }
  45. }
  46. dependencies {
  47. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  48. implementation 'androidx.appcompat:appcompat:1.5.1'
  49. implementation 'com.google.android.material:material:1.10.0'
  50. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  51. implementation 'commons-codec:commons-codec:1.17.1'
  52. implementation 'com.squareup.okhttp3:okhttp:4.12.0'
  53. }