-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support two modes of okhttp instrumentation via plugin + wire up rele…
…ase pipeline (#144) * wire up plugin release, add another okhttp instrumentation option * simplify build * fixes * update CI to include apollo3 --------- Co-authored-by: Miguel Juarez Lopez <[email protected]>
- Loading branch information
Showing
14 changed files
with
247 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ plugins { | |
alias(libs.plugins.kotlin.android) | ||
alias(libs.plugins.detekt) | ||
|
||
// Publish | ||
alias(libs.plugins.dokka) // Must be applied here for publish plugin. | ||
alias(libs.plugins.maven.publish) | ||
signing | ||
|
||
id("dependency-license-config") | ||
} | ||
|
||
|
@@ -55,9 +60,50 @@ tasks.preBuild { | |
|
||
dependencies { | ||
implementation(project(":capture")) | ||
implementation("com.apollographql.apollo3:apollo-runtime:3.8.3") | ||
implementation(libs.apollo.runtime) | ||
|
||
testImplementation(libs.truth) | ||
testImplementation(libs.junit) | ||
testImplementation(libs.kotlin.mockito.kotlin) | ||
} | ||
|
||
testImplementation("com.google.truth:truth:1.4.4") | ||
testImplementation("junit:junit:4.13.2") | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0") // last version with Java 8 support | ||
mavenPublishing { | ||
pom { | ||
name.set("CaptureApollo") | ||
description.set("Official Capture integration for Apollo v3 (GraphQL).") | ||
url.set("https://bitdrift.io") | ||
licenses { | ||
license { | ||
name.set("BITDRIFT SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT") | ||
url.set("https://dl.bitdrift.io/sdk/android-maven/io/bitdrift/capture-timber/${findProperty("VERSION_NAME")}/LICENSE.txt") | ||
distribution.set("repo") | ||
} | ||
license { | ||
name.set("NOTICE") | ||
url.set("https://dl.bitdrift.io/sdk/android-maven/io/bitdrift/capture-timber/${findProperty("VERSION_NAME")}/NOTICE.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("bitdriftlabs") | ||
name.set("Bitdrift, Inc.") | ||
url.set("https://github.com/bitdriftlabs") | ||
email.set("[email protected]") | ||
} | ||
scm { | ||
connection.set("scm:git:git://github.com/bitdriftlabs/capture-sdk.git") | ||
developerConnection.set("scm:git:ssh://[email protected]:bitdriftlabs/capture-sdk.git") | ||
url.set("https://github.com/bitdriftlabs/capture-sdk") | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
url = uri(layout.buildDirectory.dir("repos/releases")) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
id("java-gradle-plugin") | ||
} | ||
|
||
group = "io.bitdrift" | ||
|
||
dependencies { | ||
compileOnly("com.android.tools.build:gradle:7.4.0") | ||
compileOnly("org.ow2.asm:asm-commons:9.4") | ||
|
@@ -22,17 +24,51 @@ dependencies { | |
gradlePlugin { | ||
plugins { | ||
create("capturePlugin") { | ||
id = "io.bitdrift.capture.capture-plugin" | ||
id = "io.bitdrift.capture-plugin" | ||
implementationClass = "io.bitdrift.capture.CapturePlugin" | ||
} | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
configureBasedOnAppliedPlugins() | ||
|
||
pom { | ||
name.set("CapturePlugin") | ||
description.set("Official Capture Gradle plugin.") | ||
url.set("https://bitdrift.io") | ||
licenses { | ||
license { | ||
name.set("BITDRIFT SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT") | ||
url.set("https://dl.bitdrift.io/sdk/android-maven/io/bitdrift/capture-plugin/${findProperty("VERSION_NAME")}/LICENSE.txt") | ||
distribution.set("repo") | ||
} | ||
license { | ||
name.set("NOTICE") | ||
url.set("https://dl.bitdrift.io/sdk/android-maven/io/bitdrift/capture-plugin/${findProperty("VERSION_NAME")}/NOTICE.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("bitdriftlabs") | ||
name.set("Bitdrift, Inc.") | ||
url.set("https://github.com/bitdriftlabs") | ||
email.set("[email protected]") | ||
} | ||
scm { | ||
connection.set("scm:git:git://github.com/bitdriftlabs/capture-sdk.git") | ||
developerConnection.set("scm:git:ssh://[email protected]:bitdriftlabs/capture-sdk.git") | ||
url.set("https://github.com/bitdriftlabs/capture-sdk") | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri(layout.buildDirectory.dir("repos/releases")) | ||
} | ||
} | ||
} | ||
|
||
group = "io.bitdrift.capture.capture-plugin" | ||
version = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.