From c9be5ba30488b884e4448211f5b1d5ddd8e5d6e9 Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Tue, 25 Jun 2024 14:27:38 +0100 Subject: [PATCH] Formalise v0.1.0 --- CHANGELOG.md | 7 +++++++ pom.xml | 2 +- src/main/kotlin/com/vonage/client/kt/Vonage.kt | 1 - src/test/kotlin/com/vonage/client/kt/VonageTest.kt | 9 +++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 828c4d7..a4a32b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.1.0] - 2024-06-25 + +Initial version, unreleased to public. + +### Added +- Messages API +- Verify v2 API diff --git a/pom.xml b/pom.xml index 5744ce3..5e00c82 100644 --- a/pom.xml +++ b/pom.xml @@ -261,7 +261,7 @@ nexus-releases ${nexusUrl} - true + false diff --git a/src/main/kotlin/com/vonage/client/kt/Vonage.kt b/src/main/kotlin/com/vonage/client/kt/Vonage.kt index 69f76fe..77c5901 100644 --- a/src/main/kotlin/com/vonage/client/kt/Vonage.kt +++ b/src/main/kotlin/com/vonage/client/kt/Vonage.kt @@ -12,7 +12,6 @@ class Vonage constructor(init: VonageClient.Builder.() -> Unit) { private val vonageClient : VonageClient = VonageClient.builder().apply(init).build(); val messages = Messages(vonageClient.messagesClient) val verify = Verify(vonageClient.verify2Client) - } fun VonageClient.Builder.authFromEnv(): VonageClient.Builder { diff --git a/src/test/kotlin/com/vonage/client/kt/VonageTest.kt b/src/test/kotlin/com/vonage/client/kt/VonageTest.kt index 36578c3..8187368 100644 --- a/src/test/kotlin/com/vonage/client/kt/VonageTest.kt +++ b/src/test/kotlin/com/vonage/client/kt/VonageTest.kt @@ -1,4 +1,13 @@ package com.vonage.client.kt +import org.junit.jupiter.api.Test +import kotlin.test.assertNotNull + class VonageTest { + + @Test + fun `auth from env`() { + val vonage = Vonage { authFromEnv() } + assertNotNull(vonage) + } } \ No newline at end of file