Skip to content

Commit

Permalink
Merge pull request #97 from yamasa/master
Browse files Browse the repository at this point in the history
For convenience, change the dependencies of OkHttp and libthrift to `api`.
  • Loading branch information
yamasa authored Jun 20, 2021
2 parents 45f9d74 + 44ec5a4 commit b5df162
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion dagger_sample_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${versions.androidxLifecycle}"
implementation "androidx.room:room-ktx:${versions.androidxRoom}"
kapt "androidx.room:room-compiler:${versions.androidxRoom}"
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
implementation "com.google.dagger:dagger:${versions.dagger}"
kapt "com.google.dagger:dagger-compiler:${versions.dagger}"

Expand Down
2 changes: 1 addition & 1 deletion okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext.publication = [

dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinCoroutines}"
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
api "com.squareup.okhttp3:okhttp:${versions.okhttp}"

testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation "com.squareup.okhttp3:mockwebserver:${versions.okhttp}"
Expand Down
1 change: 0 additions & 1 deletion sample_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ dependencies {
implementation "androidx.navigation:navigation-ui-ktx:${versions.androidxNavigation}"
implementation "androidx.room:room-ktx:${versions.androidxRoom}"
kapt "androidx.room:room-compiler:${versions.androidxRoom}"
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"

debugRuntimeOnly project(':component-debug')

Expand Down
5 changes: 0 additions & 5 deletions thrift-logging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ android {

dependencies {
implementation project(':thrift')
implementation("org.apache.thrift:libthrift:${versions.thrift}") {
exclude group: 'org.apache.httpcomponents'
exclude group: 'org.slf4j'
}
implementation "com.linkedin.dexmaker:dexmaker:${versions.dexmaker}"

androidTestImplementation project(':sample_thrift')
Expand All @@ -44,6 +40,5 @@ dependencies {
androidTestImplementation "androidx.test:runner:${versions.androidxTestRunner}"
androidTestImplementation "androidx.test.ext:junit:${versions.androidxTestJunit}"
androidTestImplementation "io.mockk:mockk-android:${versions.mockk}"
androidTestImplementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:${versions.okhttp}"
}
4 changes: 2 additions & 2 deletions thrift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ ext.publication = [

dependencies {
implementation project(':okhttp')
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
implementation("org.apache.thrift:libthrift:${versions.thrift}") {
api "com.squareup.okhttp3:okhttp:${versions.okhttp}"
api("org.apache.thrift:libthrift:${versions.thrift}") {
exclude group: 'org.apache.httpcomponents'
exclude group: 'org.slf4j'
}
Expand Down

0 comments on commit b5df162

Please sign in to comment.