build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 31
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.somsakelect.android.mymqtt"
  9. minSdkVersion 23
  10. targetSdkVersion 31
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. }
  26. dependencies {
  27. implementation 'androidx.appcompat:appcompat:1.4.2'
  28. implementation 'com.google.android.material:material:1.6.1'
  29. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  30. testImplementation 'junit:junit:4.+'
  31. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  33. //MQTT
  34. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  35. implementation project(path: ':mqtt')
  36. }