From 6b93257018de9292a1d2edfae4d5a848e0824ce1 Mon Sep 17 00:00:00 2001 From: Kevin Morales Date: Tue, 30 Jan 2024 23:07:28 -0500 Subject: [PATCH] update package name --- README.md | 20 ++++++++++++++++++- settings.gradle.kts => settings.gradle | 0 .../org/{sqidskotlin => }/sqids/Sqids.kt | 2 +- .../{sqidskotlin => }/sqids/AlphabetTests.kt | 2 +- .../{sqidskotlin => }/sqids/BlockListTests.kt | 2 +- .../{sqidskotlin => }/sqids/EncodeTests.kt | 2 +- .../{sqidskotlin => }/sqids/MinLengthTests.kt | 2 +- 7 files changed, 24 insertions(+), 6 deletions(-) rename settings.gradle.kts => settings.gradle (100%) rename src/main/kotlin/org/{sqidskotlin => }/sqids/Sqids.kt (99%) rename src/test/kotlin/org/{sqidskotlin => }/sqids/AlphabetTests.kt (98%) rename src/test/kotlin/org/{sqidskotlin => }/sqids/BlockListTests.kt (99%) rename src/test/kotlin/org/{sqidskotlin => }/sqids/EncodeTests.kt (99%) rename src/test/kotlin/org/{sqidskotlin => }/sqids/MinLengthTests.kt (99%) diff --git a/README.md b/README.md index 454a32d..4260858 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,26 @@ Not good for: Install Sqids via: +Gradle +``` +implementation 'org.sqids:sqids-kotlin:0.1.0' +``` + +or + +Maven +``` + + org.sqids + sqids-kotlin + 0.1.0 + +``` + +Import into project + ```kotlin -import org.sqidskotlin.sqids +import org.sqids.Sqids ``` ## 👩‍💻 Examples diff --git a/settings.gradle.kts b/settings.gradle similarity index 100% rename from settings.gradle.kts rename to settings.gradle diff --git a/src/main/kotlin/org/sqidskotlin/sqids/Sqids.kt b/src/main/kotlin/org/sqids/Sqids.kt similarity index 99% rename from src/main/kotlin/org/sqidskotlin/sqids/Sqids.kt rename to src/main/kotlin/org/sqids/Sqids.kt index e8cddbd..ce63ce5 100644 --- a/src/main/kotlin/org/sqidskotlin/sqids/Sqids.kt +++ b/src/main/kotlin/org/sqids/Sqids.kt @@ -1,4 +1,4 @@ -package org.sqidskotlin.sqids +package org.sqids const val MINIMUM_LENGTH = 3 const val MIN_LENGTH_LIMIT = 255 diff --git a/src/test/kotlin/org/sqidskotlin/sqids/AlphabetTests.kt b/src/test/kotlin/org/sqids/AlphabetTests.kt similarity index 98% rename from src/test/kotlin/org/sqidskotlin/sqids/AlphabetTests.kt rename to src/test/kotlin/org/sqids/AlphabetTests.kt index 772daca..fc4a6f0 100644 --- a/src/test/kotlin/org/sqidskotlin/sqids/AlphabetTests.kt +++ b/src/test/kotlin/org/sqids/AlphabetTests.kt @@ -1,4 +1,4 @@ -package org.sqidskotlin.sqids +package org.sqids import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/src/test/kotlin/org/sqidskotlin/sqids/BlockListTests.kt b/src/test/kotlin/org/sqids/BlockListTests.kt similarity index 99% rename from src/test/kotlin/org/sqidskotlin/sqids/BlockListTests.kt rename to src/test/kotlin/org/sqids/BlockListTests.kt index 8bed5c9..26b536c 100644 --- a/src/test/kotlin/org/sqidskotlin/sqids/BlockListTests.kt +++ b/src/test/kotlin/org/sqids/BlockListTests.kt @@ -1,4 +1,4 @@ -package org.sqidskotlin.sqids +package org.sqids import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/src/test/kotlin/org/sqidskotlin/sqids/EncodeTests.kt b/src/test/kotlin/org/sqids/EncodeTests.kt similarity index 99% rename from src/test/kotlin/org/sqidskotlin/sqids/EncodeTests.kt rename to src/test/kotlin/org/sqids/EncodeTests.kt index 8bbaf0d..d0bf0e7 100644 --- a/src/test/kotlin/org/sqidskotlin/sqids/EncodeTests.kt +++ b/src/test/kotlin/org/sqids/EncodeTests.kt @@ -1,4 +1,4 @@ -package org.sqidskotlin.sqids +package org.sqids import kotlin.test.assertEquals import kotlin.test.Test diff --git a/src/test/kotlin/org/sqidskotlin/sqids/MinLengthTests.kt b/src/test/kotlin/org/sqids/MinLengthTests.kt similarity index 99% rename from src/test/kotlin/org/sqidskotlin/sqids/MinLengthTests.kt rename to src/test/kotlin/org/sqids/MinLengthTests.kt index 5a248d2..f1fcb23 100644 --- a/src/test/kotlin/org/sqidskotlin/sqids/MinLengthTests.kt +++ b/src/test/kotlin/org/sqids/MinLengthTests.kt @@ -1,4 +1,4 @@ -package org.sqidskotlin.sqids +package org.sqids import kotlin.test.Test import kotlin.test.assertEquals