From 9af78b38d941df1f451d8329b318014a48aa9bd0 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 31 Dec 2022 23:20:31 -0800 Subject: [PATCH] Minor cleanup --- README.md | 5 +++-- lib/build.gradle.kts | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d27e5ed..984afcf 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,11 @@ parameters, not URLs, causing the wrong escape sequences to be used. Additionally, `java.net.URLEncoder` allocates memory even when no encoding is necessary, significantly impacting performance. This library has a negligible -performance impact when the string that is passed in doesn't need to be encoded. +performance impact when a specified string doesn't need to be encoded. Android's [Uri.encode](https://developer.android.com/reference/android/net/Uri#encode(java.lang.String,%20java.lang.String)) -also addresses these issues. +also addresses these issues, but does not currently support [unicode surrogate pairs](https://learn.microsoft.com/en-us/globalization/encoding/surrogate-pairs). + ## Examples (TL;DR) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 67fb282..415985e 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -7,10 +7,10 @@ plugins { } group = "com.uwyn" +version = "1.0.1-SNAPSHOT" base { - archivesName.set("urlencoder") - version = "1.0.1-SNAPSHOT" + archivesName.set(rootProject.name) } java { @@ -51,11 +51,11 @@ tasks.named("test") { publishing { publications { create("mavenJava") { - artifactId = "urlencoder" + artifactId = rootProject.name from(components["java"]) pom { - name.set("URL Encoder") - description.set("A simple library to encode/decode URL parameters.") + name.set("URLEncoder") + description.set("A simple library to encode/decode URL parameters") url.set("https://github.com/gbevin/urlencoder") licenses { license { @@ -99,4 +99,4 @@ publishing { signing { sign(publishing.publications["mavenJava"]) -} \ No newline at end of file +}