学习机 新
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.3KB

  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'com.telpo.iotaidl'
  7. compileSdk 33
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 33
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  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. kotlinOptions {
  25. jvmTarget = '1.8'
  26. }
  27. buildFeatures {
  28. aidl true
  29. }
  30. }
  31. dependencies {
  32. implementation 'androidx.core:core-ktx:1.8.0'
  33. implementation 'androidx.appcompat:appcompat:1.4.1'
  34. implementation 'com.google.android.material:material:1.5.0'
  35. testImplementation 'junit:junit:4.13.2'
  36. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  37. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  38. }
  39. task makeJar(type:Copy){
  40. delete 'build/libs/iotAIDL.jar'
  41. from('build/intermediates/aar_main_jar/release/')
  42. into('build/libs/')
  43. include('classes.jar')
  44. rename ('classes.jar','iotAIDL.jar')
  45. }
  46. makeJar.dependsOn(build)
  47. //gradlew makeJar