build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. apply plugin:'kotlin-android-extensions'
  6. android {
  7. compileSdkVersion 29
  8. buildToolsVersion "30.0.2"
  9. defaultConfig {
  10. applicationId "com.example.watch"
  11. minSdkVersion 24
  12. targetSdkVersion 29
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. ndk {
  17. abiFilters "armeabi-v7a", "arm64-v8a"
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. repositories {
  27. maven { url 'https://jitpack.io' }
  28. flatDir {
  29. dirs 'libs'
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_1_8
  34. targetCompatibility JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = '1.8'
  38. }
  39. }
  40. dependencies {
  41. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  42. implementation 'androidx.core:core-ktx:1.3.2'
  43. implementation 'androidx.appcompat:appcompat:1.2.0'
  44. implementation 'com.google.android.material:material:1.2.1'
  45. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  46. implementation 'androidx.navigation:navigation-fragment-ktx:2.3.1'
  47. implementation 'androidx.navigation:navigation-ui-ktx:2.3.1'
  48. implementation 'androidx.gridlayout:gridlayout:1.0.0'
  49. implementation fileTree(dir: 'libs', include: ['*.jar'])
  50. implementation(name: 'chileaf_wear_sdk_2.0.0', ext: 'aar')
  51. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  52. implementation 'androidx.viewpager:viewpager:1.0.0'
  53. testImplementation 'junit:junit:4.13'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  56. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  57. implementation 'com.jakewharton.timber:timber:4.7.1'
  58. implementation 'com.yanzhenjie:permission:2.0.3'
  59. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
  60. implementation 'com.android.support:appcompat-v7:27.1.1'
  61. implementation 'com.android.support:design:27.1.1'
  62. }