diff --git a/README.md b/README.md index 1bb279d..0d182e8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](https://opensource.org/licenses/BSD-3-Clause) -[![Kotlin](https://img.shields.io/badge/kotlin-1.8.10-7f52ff)](https://kotlinlang.org/) +[![Kotlin](https://img.shields.io/badge/kotlin-1.8.22-7f52ff)](https://kotlinlang.org/) [![Nexus Snapshot](https://img.shields.io/nexus/s/net.thauvin.erik/bitly-shorten?label=snapshot&server=https%3A%2F%2Foss.sonatype.org%2F)](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/bitly-shorten/) [![Release](https://img.shields.io/github/release/ethauvin/bitly-shorten.svg)](https://github.com/ethauvin/bitly-shorten/releases/latest) [![Maven Central](https://img.shields.io/maven-central/v/net.thauvin.erik/bitly-shorten.svg?label=maven%20central)](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22bitly-shorten%22) diff --git a/build.gradle.kts b/build.gradle.kts index 7f93e67..35b3a6f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,18 +5,18 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import java.net.URL plugins { - id("com.github.ben-manes.versions") version "0.46.0" - id("io.gitlab.arturbosch.detekt") version "1.22.0" + id("com.github.ben-manes.versions") version "0.47.0" + id("io.gitlab.arturbosch.detekt") version "1.23.0" id("java") id("java-library") id("maven-publish") id("net.thauvin.erik.gradle.semver") version "1.0.4" - id("org.jetbrains.dokka") version "1.8.10" - id("org.jetbrains.kotlinx.kover") version "0.6.1" - id("org.sonarqube") version "4.0.0.2929" + id("org.jetbrains.dokka") version "1.8.20" + id("org.jetbrains.kotlinx.kover") version "0.7.2" + id("org.sonarqube") version "4.2.1.3168" id("signing") - kotlin("jvm") version "1.8.20" - kotlin("kapt") version "1.8.20" + kotlin("jvm") version "1.8.22" + kotlin("kapt") version "1.8.22" } group = "net.thauvin.erik" @@ -32,7 +32,7 @@ var semverProcessor = "net.thauvin.erik:semver:1.2.0" val publicationName = "mavenJava" object Versions { - const val OKHTTP = "4.10.0" + const val OKHTTP = "4.11.0" } fun isNonStable(version: String): Boolean { @@ -52,11 +52,11 @@ dependencies { implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}") implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}") - implementation("org.json:json:20230227") + implementation("org.json:json:20230618") testImplementation(kotlin("test")) testImplementation(kotlin("test-junit")) - testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25") + testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.26.1") } kapt { @@ -76,13 +76,24 @@ java { withSourcesJar() } +koverReport { + defaults { + xml { + onCheck = true + } + html { + onCheck = true + } + } +} + sonarqube { properties { property("sonar.projectKey", "ethauvin_$name") property("sonar.organization", "ethauvin-github") property("sonar.host.url", "https://sonarcloud.io") property("sonar.sourceEncoding", "UTF-8") - property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/xml/report.xml") + property("sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/kover/report.xml") } } @@ -116,9 +127,6 @@ tasks { destination = file("$projectDir/pom.xml") } - assemble { - dependsOn(koverReport) - } clean { doLast { @@ -191,10 +199,6 @@ tasks { group = PublishingPlugin.PUBLISH_TASK_GROUP dependsOn(wrapper, "deploy", gitTag, publishToMavenLocal) } - - "sonar" { - dependsOn(koverReport) - } } publishing { diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html index 08d498f..b8fe424 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/-builder/index.html @@ -61,7 +61,7 @@
data class Builder(var domain: String = Constants.EMPTY, var title: String = Constants.EMPTY, var group_guid: String = Constants.EMPTY, var tags: Array<String> = emptyArray(), var deeplinks: Array<Map<String, String>> = emptyArray(), var long_url: String = Constants.EMPTY, var toJson: Boolean = false)(source)

Configures the creation parameters of a Bitlink.

See the Bit.ly API for more information.

-
+

Constructors

@@ -82,6 +82,115 @@
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+ +
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+

Functions

@@ -206,115 +315,6 @@
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
-
-
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/index.html index 8e88c32..7cd40b3 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-create-config/index.html @@ -61,7 +61,7 @@

Provides a builder to create a Bitlink.

-
+

Types

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/-builder/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/-builder/index.html index 9119ec2..4337b93 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/-builder/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/-builder/index.html @@ -61,7 +61,7 @@
data class Builder(var bitlink: String = Constants.EMPTY, var references: Map<String, String> = emptyMap(), var archived: Boolean = false, var tags: Array<String> = emptyArray(), var created_at: String = Constants.EMPTY, var title: String = Constants.EMPTY, var deeplinks: Array<Map<String, String>> = emptyArray(), var created_by: String = Constants.EMPTY, var long_url: String = Constants.EMPTY, var client_id: String = Constants.EMPTY, var custom_bitlinks: Array<String> = emptyArray(), var link: String = Constants.EMPTY, var id: String = Constants.EMPTY, var toJson: Boolean = false)(source)

Configures the update parameters of a Bitlink.

See the Bit.ly API for more information.

-
+

Constructors

@@ -82,6 +82,220 @@
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+ +
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+ +
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
var id: String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+ +
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+

Functions

@@ -311,220 +525,6 @@
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-
var id: String
-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
- -
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
- -
-
-
-
-
-
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/index.html index 40c3727..38057c3 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly.config/-update-config/index.html @@ -61,7 +61,7 @@

Provides a builder to update a Bitlink.

-
+

Types

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html index b3abf9d..949885d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html @@ -61,7 +61,7 @@
open class Bitlinks(accessToken: String)(source)

Provides functions to create and manage Bitlinks.

See the Bitly API for more information.

-
+

Constructors

@@ -82,6 +82,25 @@
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The last API call response.

+
+
+
+
+
+

Functions

@@ -161,25 +180,6 @@
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-

The last API call response.

-
-
-
-
-
-
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html index efe11e2..d426d89 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html @@ -61,7 +61,7 @@
open class Bitly(source)

Provides access to the Bitly API v4.

-
+

Constructors

@@ -82,6 +82,25 @@
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The API access token.

+
+
+
+
+
+

Functions

@@ -116,25 +135,6 @@
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-

The API access token.

-
-
-
-
-
-
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html index a2fda0c..f5735be 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html @@ -61,7 +61,7 @@
data class CallResponse(val body: String = Constants.EMPTY_JSON, val message: String = "", val description: String = "", val statusCode: Int = -1)(source)

Provides a data class to hold the JSON response.

Parameters

body

The response body.

message

Bitly error message, if any.

description

Bitly error description, if any.

statusCode

HTTP status code,

-
+

Constructors

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html index f7f8111..58509c9 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html @@ -61,7 +61,7 @@

Provides the constants for this package.

-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html index 6927931..392416a 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html index e771860..0d59567 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html index 5f7372d..c1f3cb5 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html index 8aac516..f0b5d8c 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html index e90d730..05165d3 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html @@ -61,7 +61,7 @@

Provides HTTP methods definitions.

-
+

Entries

@@ -127,40 +127,6 @@
-
-

Functions

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-
fun valueOf(value: String): Methods

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Returns an array containing the constants of this enum type, in the order they're declared.

-
-
-
-
-
-

Properties

@@ -195,6 +161,40 @@
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun valueOf(value: String): Methods

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an array containing the constants of this enum type, in the order they're declared.

+
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html index bfa57de..dd2aaeb 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html index 34f36bc..227f886 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html index 5c9f5e4..b52e3d8 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html index 5416aa0..1b8be23 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html index 28a0b1b..e4174e4 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html @@ -61,7 +61,7 @@
-
+

Properties

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html index 39b7ba6..500739d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html @@ -61,7 +61,7 @@

Provides units of time definitions.

-
+

Entries

@@ -142,40 +142,6 @@
-
-

Functions

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-
fun valueOf(value: String): Units

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

-
-
-
-
- -
-
-
- - -
Link copied to clipboard
-
-
-
-

Returns an array containing the constants of this enum type, in the order they're declared.

-
-
-
-
-
-

Properties

@@ -210,6 +176,40 @@
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun valueOf(value: String): Units

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an array containing the constants of this enum type, in the order they're declared.

+
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html index 71e67ab..15d0a9d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html @@ -61,8 +61,27 @@
object Utils(source)

Provides useful generic functions.

-
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The logger instance.

+
+
+
+
+
+

Functions

@@ -142,25 +161,6 @@
-
-

Properties

-
-
-
-
- - -
Link copied to clipboard
-
-
-
-

The logger instance.

-
-
-
-
-
-
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/is-severe-loggable.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/is-severe-loggable.html index 793191c..e47c090 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/is-severe-loggable.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/is-severe-loggable.html @@ -59,7 +59,7 @@

isSevereLoggable

-

Determines if Level.SEVERE logging is enabled.

+

Determines if Level.SEVERE logging is enabled.

-

Validates a URL.

+

Validates a URL.

-

Removes http(s) scheme from string.

+

Removes http(s) scheme from string.

-

Builds the full API endpoint URL using the Constants.API_BASE_URL.

+

Builds the full API endpoint URL using the Constants.API_BASE_URL.