Reworked PinConfig with required parameters, etc.
This commit is contained in:
parent
0f9606391e
commit
9036a32239
12 changed files with 94 additions and 57 deletions
|
@ -19,5 +19,5 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'net.thauvin.erik:pinboard-poster:1.1.1'
|
||||
implementation 'net.thauvin.erik:pinboard-poster:1.1.2-SNAPSHOT'
|
||||
}
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
* in the user guide at https://docs.gradle.org/4.8/userguide/multi_project_builds.html
|
||||
*/
|
||||
|
||||
rootProject.name = 'samples-java'
|
||||
rootProject.name = 'pinboard-poster-examples-gradle-java'
|
||||
|
|
|
@ -31,9 +31,7 @@ public class JavaExample {
|
|||
|
||||
if (poster.validate()) {
|
||||
// Add Pin
|
||||
if (poster.addPin(new PinConfig.Builder()
|
||||
.url(url)
|
||||
.description("Testing")
|
||||
if (poster.addPin(new PinConfig.Builder(url, "Testing")
|
||||
.extended("Extra")
|
||||
.tags("test", "java")
|
||||
.build())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue