build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. def sign = rootProject.ext.sign
  5. def build = rootProject.ext.build
  6. android {
  7. signingConfigs {
  8. release {
  9. storeFile file(sign.storeFile)
  10. keyAlias sign.keyAlias
  11. keyPassword sign.keyPassword
  12. storePassword sign.storePassword
  13. }
  14. }
  15. compileSdkVersion 29
  16. defaultConfig {
  17. applicationId "me.yoqi.android.nanohttpdemo"
  18. minSdkVersion build.minSdkVersion
  19. targetSdkVersion build.targetSdkVersion
  20. versionCode build.versionCode
  21. versionName build.versionName
  22. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  23. }
  24. buildTypes {
  25. debug {
  26. minifyEnabled false
  27. }
  28. release {
  29. minifyEnabled true
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. signingConfig signingConfigs.release
  32. }
  33. }
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_1_8
  36. targetCompatibility JavaVersion.VERSION_1_8
  37. }
  38. }
  39. dependencies {
  40. implementation 'androidx.appcompat:appcompat:1.2.0'
  41. implementation 'com.google.android.material:material:1.2.1'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  43. implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
  44. testImplementation 'junit:junit:4.+'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  47. }