Skip to content

Commit

Permalink
Merge pull request #31 from skydoves/fix/arrow-consumers-rule
Browse files Browse the repository at this point in the history
Add consumers rule for arrow
  • Loading branch information
skydoves authored Aug 14, 2024
2 parents 9da2045 + fc4debc commit a039be0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 24 additions & 1 deletion retrofit-adapters-arrow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import com.skydoves.retrofit.adapters.Configuration
import com.skydoves.retrofit.adapters.Dependencies

plugins {
id("kotlin")
id(libs.plugins.android.library.get().pluginId)
id(libs.plugins.kotlin.android.get().pluginId)
id(libs.plugins.kotlin.serialization.get().pluginId)
id(libs.plugins.nexus.plugin.get().pluginId)
}
Expand All @@ -41,6 +42,28 @@ mavenPublishing {
}
}

android {
compileSdk = Configuration.compileSdk
namespace = "com.skydoves.retrofit.adapters.arrow"
defaultConfig {
minSdk = Configuration.minSdk
consumerProguardFiles("consumer-rules.pro")
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = "11"
}

lint {
abortOnError = false
}
}

dependencies {
implementation(libs.coroutines)
implementation(libs.okhttp)
Expand Down
2 changes: 2 additions & 0 deletions retrofit-adapters-arrow/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# R8 full mode strips signatures from non-kept items.
-keep,allowobfuscation,allowshrinking class arrow.core.Either

0 comments on commit a039be0

Please sign in to comment.