build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace "com.ainirobot.robotos"
  6. compileSdk 33
  7. defaultConfig {
  8. // 与系统自带示例区分,可并行安装
  9. applicationId "com.test.robotos"
  10. minSdk 16
  11. targetSdk 29
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. compileOptions {
  17. sourceCompatibility JavaVersion.VERSION_1_8
  18. targetCompatibility JavaVersion.VERSION_1_8
  19. }
  20. buildFeatures {
  21. buildConfig true
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. }
  30. dependencies {
  31. implementation fileTree(include: ['*.jar'], dir: 'libs')
  32. implementation 'androidx.appcompat:appcompat:1.2.0'
  33. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  34. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  35. // 1.8.x 要求 compileSdk 34;1.6.x 与 compile 33 兼容
  36. implementation 'androidx.webkit:webkit:1.6.1'
  37. implementation files('libs\\robotservice.jar')
  38. testImplementation 'junit:junit:4.12'
  39. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  40. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  41. api 'com.google.code.gson:gson:2.7'
  42. }