build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. applicationId "com.xplora.xpchat"
  8. minSdk 27
  9. targetSdk 32
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. android.applicationVariants.all { variant ->
  25. variant.outputs.all {
  26. outputFileName = "xpchat.apk"
  27. }
  28. }
  29. }
  30. String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
  31. if(SDK_DIR == null) {
  32. Properties properties = new Properties()
  33. properties.load(new FileInputStream(project.rootProject.file("local.properties")))
  34. SDK_DIR = properties.get('sdk.dir')
  35. }
  36. dependencies {
  37. implementation 'androidx.appcompat:appcompat:1.4.2'
  38. implementation 'com.google.android.material:material:1.6.1'
  39. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  40. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  41. testImplementation 'junit:junit:4.13.2'
  42. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  43. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  44. implementation project(':progressBar')
  45. implementation(fileTree("libs"))
  46. implementation 'com.google.code.gson:gson:2.8.0'
  47. implementation 'com.makeramen:roundedimageview:2.3.0'
  48. }