build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. applicationId "com.sikey.skphone"
  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 = "skphone.apk"
  27. }
  28. }
  29. sourceSets {
  30. main {
  31. jniLibs.srcDirs = ['libs']
  32. }
  33. }
  34. }
  35. String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
  36. if(SDK_DIR == null) {
  37. Properties properties = new Properties()
  38. properties.load(new FileInputStream(project.rootProject.file("local.properties")))
  39. SDK_DIR = properties.get('sdk.dir')
  40. }
  41. dependencies {
  42. implementation 'com.google.android.material:material:1.6.0'
  43. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  44. testImplementation 'junit:junit:4.13.2'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  47. compileOnly(files("${SDK_DIR}/platforms/android-24/data/layoutlib.jar"))
  48. implementation(fileTree("libs"))
  49. implementation 'com.makeramen:roundedimageview:2.3.0'
  50. implementation 'com.google.code.gson:gson:2.8.0'
  51. }