diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt index fc860c06bc1..c29ef150f72 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt @@ -799,11 +799,10 @@ fun fixTitle(str: String): String { } } -// Deprecate after next stable -/* @Deprecated( +@Deprecated( message = "Use newJsContext or evalJs instead.", level = DeprecationLevel.WARNING, -) */ +) suspend fun getRhinoContext(): org.mozilla.javascript.Context { return Coroutines.mainWork { val rhino = org.mozilla.javascript.Context.enter() @@ -2560,11 +2559,10 @@ fun Episode.addDate(date: Instant?) { this.date = date?.toEpochMilliseconds() } -// Deprecate after next stable -/* @Deprecated( +@Deprecated( message = "Use addDate with LocalDate, Instant, or String instead.", level = DeprecationLevel.WARNING, -) */ +) fun Episode.addDate(date: java.util.Date?) { this.date = date?.time } diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/helper/AesHelper.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/helper/AesHelper.kt index 1d2b6bdf39d..4ae6158462b 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/helper/AesHelper.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/helper/AesHelper.kt @@ -46,11 +46,10 @@ object AesHelper { } } - // Deprecate after next stable - /* @Deprecated( + @Deprecated( message = "Set padding = false for no padding", level = DeprecationLevel.WARNING, - ) */ + ) fun cryptoAESHandler( data: String, pass: ByteArray, diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/Coroutines.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/Coroutines.kt index 37cda412499..4536eb88bd9 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/Coroutines.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/Coroutines.kt @@ -72,11 +72,10 @@ object Coroutines { return AtomicMutableList(items.toMutableList()) } - // Deprecate after next stable - /*@Deprecated( + @Deprecated( message = "Use atomicListOf() instead.", replaceWith = ReplaceWith("atomicListOf(*items)"), level = DeprecationLevel.WARNING, - )*/ + ) fun threadSafeListOf(vararg items: T): MutableList = atomicListOf(*items) } diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/StringUtils.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/StringUtils.kt index 8b2fa752e0c..fc1055dc603 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/StringUtils.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/utils/StringUtils.kt @@ -13,20 +13,18 @@ object StringUtils { return this.encodeURLParameter() } - // Deprecate after next stable - - /* @Deprecated( + @Deprecated( message = "Use Ktor 'Url' naming convention instead.", replaceWith = ReplaceWith("this.encodeUrl()"), level = DeprecationLevel.WARNING, - ) */ + ) fun String.encodeUri(): String = encodeUrl() - /* @Deprecated( + @Deprecated( message = "Use Ktor 'Url' naming convention instead.", replaceWith = ReplaceWith("this.decodeUrl()"), level = DeprecationLevel.WARNING, - ) */ + ) fun String.decodeUri(): String = decodeUrl() }