build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. plugins {
  2. alias(libs.plugins.android.library)
  3. alias(libs.plugins.kotlin.android)
  4. alias(libs.plugins.kotlin.parcelize)
  5. `maven-publish`
  6. }
  7. android {
  8. namespace = "app.revanced.manager.plugin.downloader"
  9. compileSdk = 35
  10. defaultConfig {
  11. minSdk = 26
  12. consumerProguardFiles("consumer-rules.pro")
  13. }
  14. buildTypes {
  15. release {
  16. isMinifyEnabled = false
  17. proguardFiles(
  18. getDefaultProguardFile("proguard-android-optimize.txt"),
  19. "proguard-rules.pro"
  20. )
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility = JavaVersion.VERSION_17
  25. targetCompatibility = JavaVersion.VERSION_17
  26. }
  27. kotlinOptions {
  28. jvmTarget = "17"
  29. }
  30. buildFeatures {
  31. aidl = true
  32. }
  33. }
  34. dependencies {
  35. implementation(libs.androidx.ktx)
  36. implementation(libs.activity.ktx)
  37. implementation(libs.runtime.ktx)
  38. implementation(libs.appcompat)
  39. }
  40. publishing {
  41. repositories {
  42. mavenLocal()
  43. }
  44. publications {
  45. create<MavenPublication>("release") {
  46. groupId = "app.revanced"
  47. artifactId = "manager-downloader-plugin"
  48. version = "1.0"
  49. afterEvaluate {
  50. from(components["release"])
  51. }
  52. }
  53. }
  54. }