build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 31
  7. defaultConfig {
  8. applicationId "com.huashi.otg"
  9. minSdkVersion 19
  10. targetSdkVersion 31
  11. versionCode 1
  12. versionName "1.0"
  13. ndk {
  14. abiFilter "armeabi-v7a"
  15. }
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. implementation 'androidx.core:core-ktx:1.3.2'
  35. implementation 'androidx.appcompat:appcompat:1.3.0'
  36. implementation 'com.google.android.material:material:1.3.0'
  37. testImplementation 'junit:junit:4.+'
  38. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  39. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  40. }