From a83c6aa51a837eaab7ff1a9f2b157754206f5211 Mon Sep 17 00:00:00 2001 From: Kenneth Soh Date: Sat, 17 Dec 2022 23:54:30 +0800 Subject: [PATCH] chore: 1.4.0 release Update to target SDK 33 and fix some warnings --- helperlib/build.gradle | 6 +++--- .../main/java/com/itachi1706/helperlib/helpers/URLHelper.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helperlib/build.gradle b/helperlib/build.gradle index 82f7157..8f4e0a7 100644 --- a/helperlib/build.gradle +++ b/helperlib/build.gradle @@ -7,9 +7,9 @@ android { defaultConfig { minSdkVersion 16 - targetSdkVersion 32 - versionCode 192 - versionName "1.3.9" + targetSdkVersion 33 + versionCode 193 + versionName "1.4.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/helperlib/src/main/java/com/itachi1706/helperlib/helpers/URLHelper.kt b/helperlib/src/main/java/com/itachi1706/helperlib/helpers/URLHelper.kt index 79e18d3..54b1436 100644 --- a/helperlib/src/main/java/com/itachi1706/helperlib/helpers/URLHelper.kt +++ b/helperlib/src/main/java/com/itachi1706/helperlib/helpers/URLHelper.kt @@ -83,7 +83,7 @@ class URLHelper(url: URL) { @WorkerThread @Throws(IOException::class) - private fun processHttpConnection(): String? { + private fun processHttpConnection(): String { val conn = url!!.openConnection() as HttpURLConnection conn.connectTimeout = if (timeout == -1) HTTP_QUERY_TIMEOUT else timeout conn.readTimeout = if (timeout == -1) HTTP_QUERY_TIMEOUT else timeout