学习机 新
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.

build.gradle 1.3KB

2 maanden geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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