build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. applicationId "com.example.azuretranslation"
  7. minSdkVersion 21
  8. targetSdkVersion 29
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. compileOptions {
  14. sourceCompatibility JavaVersion.VERSION_1_8
  15. targetCompatibility JavaVersion.VERSION_1_8
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. }
  24. dependencies {
  25. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  26. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  27. implementation fileTree(dir: 'libs', include: ['*.jar'])
  28. implementation 'androidx.appcompat:appcompat:1.2.0'
  29. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  30. testImplementation 'junit:junit:4.12'
  31. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  33. implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
  34. }