Skip to content

Commit f689ded

Browse files
committed
Bump to 4.5.3
1 parent ed37c07 commit f689ded

3 files changed

Lines changed: 16 additions & 29 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ android {
6262
minSdk = libs.versions.minSdk.get().toInt()
6363
targetSdk = libs.versions.targetSdk.get().toInt()
6464
versionCode = 66
65-
versionName = "4.5.2"
65+
versionName = "4.5.3"
6666

6767
resValue("string", "app_version", "${defaultConfig.versionName}${versionNameSuffix ?: ""}")
6868
resValue("string", "commit_hash", getGitCommitHash())

library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ enum class DubStatus(val id: Int) {
778778
* Internally it stores it as an int up to 10^9 to represent up to 10 significant digits. So think
779779
* of this as a decimal class specifically for ratings.
780780
* */
781-
@Prerelease
782781
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
783782
class Score private constructor(
784783
/** Decimal between [0, 10^9] representing the min score and max score respectively */
@@ -1201,7 +1200,7 @@ fun MainAPI.newTorrentSearchResponse(
12011200
fix: Boolean = true,
12021201
initializer: TorrentSearchResponse.() -> Unit = { },
12031202
): TorrentSearchResponse {
1204-
@Suppress("DEPRECATION")
1203+
@Suppress("DEPRECATION_ERROR")
12051204
val builder = TorrentSearchResponse(
12061205
name = name,
12071206
url = if (fix) fixUrl(url) else url,
@@ -1221,7 +1220,7 @@ fun MainAPI.newMovieSearchResponse(
12211220
fix: Boolean = true,
12221221
initializer: MovieSearchResponse.() -> Unit = { },
12231222
): MovieSearchResponse {
1224-
@Suppress("DEPRECATION")
1223+
@Suppress("DEPRECATION_ERROR")
12251224
val builder = MovieSearchResponse(name, if (fix) fixUrl(url) else url, this.name, type)
12261225
builder.initializer()
12271226

@@ -1235,7 +1234,7 @@ fun MainAPI.newLiveSearchResponse(
12351234
fix: Boolean = true,
12361235
initializer: LiveSearchResponse.() -> Unit = { },
12371236
): LiveSearchResponse {
1238-
@Suppress("DEPRECATION")
1237+
@Suppress("DEPRECATION_ERROR")
12391238
val builder = LiveSearchResponse(
12401239
name = name,
12411240
url = if (fix) fixUrl(url) else url,
@@ -1253,7 +1252,7 @@ fun MainAPI.newTvSeriesSearchResponse(
12531252
fix: Boolean = true,
12541253
initializer: TvSeriesSearchResponse.() -> Unit = { },
12551254
): TvSeriesSearchResponse {
1256-
@Suppress("DEPRECATION")
1255+
@Suppress("DEPRECATION_ERROR")
12571256
val builder = TvSeriesSearchResponse(name, if (fix) fixUrl(url) else url, this.name, type)
12581257
builder.initializer()
12591258

@@ -1267,7 +1266,7 @@ fun MainAPI.newAnimeSearchResponse(
12671266
fix: Boolean = true,
12681267
initializer: AnimeSearchResponse.() -> Unit = { },
12691268
): AnimeSearchResponse {
1270-
@Suppress("DEPRECATION")
1269+
@Suppress("DEPRECATION_ERROR")
12711270
val builder = AnimeSearchResponse(name, if (fix) fixUrl(url) else url, this.name, type)
12721271
builder.initializer()
12731272

@@ -1332,7 +1331,7 @@ data class ActorData(
13321331
* @see newAnimeSearchResponse
13331332
* */
13341333
data class AnimeSearchResponse
1335-
@Deprecated("Use newAnimeSearchResponse", level = DeprecationLevel.WARNING)
1334+
@Deprecated("Use newAnimeSearchResponse", level = DeprecationLevel.ERROR)
13361335
constructor(
13371336
override val name: String,
13381337
override val url: String,
@@ -1397,7 +1396,7 @@ fun AnimeSearchResponse.addDubStatus(status: String, episodes: Int? = null) {
13971396
* @see newTorrentSearchResponse
13981397
* */
13991398
data class TorrentSearchResponse
1400-
@Deprecated("Use newTorrentSearchResponse", level = DeprecationLevel.WARNING)
1399+
@Deprecated("Use newTorrentSearchResponse", level = DeprecationLevel.ERROR)
14011400
constructor(
14021401
override val name: String,
14031402
override val url: String,
@@ -1414,7 +1413,7 @@ constructor(
14141413
* @see newMovieSearchResponse
14151414
* */
14161415
data class MovieSearchResponse
1417-
@Deprecated("Use newMovieSearchResponse", level = DeprecationLevel.WARNING)
1416+
@Deprecated("Use newMovieSearchResponse", level = DeprecationLevel.ERROR)
14181417
constructor(
14191418
override val name: String,
14201419
override val url: String,
@@ -1432,7 +1431,7 @@ constructor(
14321431
* @see newLiveSearchResponse
14331432
* */
14341433
data class LiveSearchResponse
1435-
@Deprecated("Use newLiveSearchResponse", level = DeprecationLevel.WARNING)
1434+
@Deprecated("Use newLiveSearchResponse", level = DeprecationLevel.ERROR)
14361435
constructor(
14371436
override val name: String,
14381437
override val url: String,
@@ -1450,7 +1449,7 @@ constructor(
14501449
* @see newTvSeriesSearchResponse
14511450
* */
14521451
data class TvSeriesSearchResponse
1453-
@Deprecated("Use newTvSeriesSearchResponse", level = DeprecationLevel.WARNING)
1452+
@Deprecated("Use newTvSeriesSearchResponse", level = DeprecationLevel.ERROR)
14541453
constructor(
14551454
override val name: String,
14561455
override val url: String,
@@ -1513,7 +1512,6 @@ interface LoadResponse {
15131512
var year: Int?
15141513
var plot: String?
15151514

1516-
@Prerelease
15171515
var score: Score?
15181516
var tags: List<String>?
15191517
var duration: Int? // in minutes
@@ -1527,7 +1525,6 @@ interface LoadResponse {
15271525
var backgroundPosterUrl: String?
15281526
var contentRating: String?
15291527

1530-
@Prerelease
15311528
var uniqueUrl: String
15321529

15331530
@Deprecated(
@@ -1738,13 +1735,11 @@ interface LoadResponse {
17381735
}
17391736

17401737
@Suppress("UNUSED_PARAMETER")
1741-
@Prerelease
17421738
fun LoadResponse.addTraktId(id: String?) {
17431739
// TODO add Trakt sync
17441740
}
17451741

17461742
@Suppress("UNUSED_PARAMETER")
1747-
@Prerelease
17481743
fun LoadResponse.addKitsuId(id: String?) {
17491744
// TODO add Kitsu sync
17501745
}
@@ -1982,7 +1977,6 @@ constructor(
19821977
override var posterHeaders: Map<String, String>? = null,
19831978
override var backgroundPosterUrl: String? = null,
19841979
override var contentRating: String? = null,
1985-
@Prerelease
19861980
override var uniqueUrl: String = url
19871981
) : LoadResponse {
19881982
/**
@@ -2095,7 +2089,6 @@ constructor(
20952089
override var seasonNames: List<SeasonData>? = null,
20962090
override var backgroundPosterUrl: String? = null,
20972091
override var contentRating: String? = null,
2098-
@Prerelease
20992092
override var uniqueUrl: String = url
21002093
) : LoadResponse, EpisodeResponse {
21012094

@@ -2131,7 +2124,7 @@ constructor(
21312124
@Suppress("DEPRECATION_ERROR")
21322125
@Deprecated(
21332126
"Use newAnimeLoadResponse method with contentRating included",
2134-
level = DeprecationLevel.WARNING
2127+
level = DeprecationLevel.ERROR
21352128
)
21362129
constructor(
21372130
engName: String? = null,
@@ -2202,7 +2195,7 @@ suspend fun MainAPI.newAnimeLoadResponse(
22022195
comingSoonIfNone: Boolean = true,
22032196
initializer: suspend AnimeLoadResponse.() -> Unit = { },
22042197
): AnimeLoadResponse {
2205-
@Suppress("DEPRECATION")
2198+
@Suppress("DEPRECATION_ERROR")
22062199
val builder = AnimeLoadResponse(name = name, url = url, apiName = this.name, type = type)
22072200
builder.initializer()
22082201
if (comingSoonIfNone) {
@@ -2243,7 +2236,6 @@ constructor(
22432236
override var posterHeaders: Map<String, String>? = null,
22442237
override var backgroundPosterUrl: String? = null,
22452238
override var contentRating: String? = null,
2246-
@Prerelease
22472239
override var uniqueUrl: String = url
22482240
) : LoadResponse {
22492241
/**
@@ -2253,7 +2245,7 @@ constructor(
22532245
@Suppress("DEPRECATION_ERROR")
22542246
@Deprecated(
22552247
"Use newLiveStreamLoadResponse method with contentRating included",
2256-
level = DeprecationLevel.WARNING
2248+
level = DeprecationLevel.ERROR
22572249
)
22582250
constructor(
22592251
name: String,
@@ -2342,7 +2334,6 @@ constructor(
23422334
override var posterHeaders: Map<String, String>? = null,
23432335
override var backgroundPosterUrl: String? = null,
23442336
override var contentRating: String? = null,
2345-
@Prerelease
23462337
override var uniqueUrl: String = url
23472338
) : LoadResponse {
23482339
/**
@@ -2458,7 +2449,7 @@ suspend fun MainAPI.newMovieLoadResponse(
24582449
* @see newEpisode
24592450
* */
24602451
data class Episode
2461-
@Deprecated("Use newEpisode", level = DeprecationLevel.ERROR)
2452+
@Deprecated("Use newEpisode method", level = DeprecationLevel.ERROR)
24622453
constructor(
24632454
var data: String,
24642455
var name: String? = null,
@@ -2485,7 +2476,7 @@ constructor(
24852476
* TODO Remove this constructor after there is a new stable release and extensions are updated to support runTime.
24862477
*/
24872478
@Suppress("DEPRECATION_ERROR")
2488-
@Deprecated("Use newEpisode with runTime included", level = DeprecationLevel.ERROR)
2479+
@Deprecated("Use newEpisode method", level = DeprecationLevel.ERROR)
24892480
constructor(
24902481
data: String,
24912482
name: String? = null,
@@ -2590,7 +2581,6 @@ constructor(
25902581
override var seasonNames: List<SeasonData>? = null,
25912582
override var backgroundPosterUrl: String? = null,
25922583
override var contentRating: String? = null,
2593-
@Prerelease
25942584
override var uniqueUrl: String = url
25952585
) : LoadResponse, EpisodeResponse {
25962586
override fun getLatestEpisodes(): Map<DubStatus, Int?> {

library/src/commonMain/kotlin/com/lagradost/cloudstream3/mvvm/ArchComponentExt.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.lagradost.cloudstream3.mvvm
33
import com.lagradost.api.BuildConfig
44
import com.lagradost.api.Log
55
import com.lagradost.cloudstream3.ErrorLoadingException
6-
import com.lagradost.cloudstream3.Prerelease
76
import kotlinx.coroutines.*
87
import java.io.InterruptedIOException
98
import java.net.SocketTimeoutException
@@ -82,7 +81,6 @@ fun <T> normalSafeApiCall(apiCall: () -> T): T? {
8281

8382
/** Catches any exception (or error) and only logs it.
8483
* Will return null on exceptions. */
85-
@Prerelease
8684
fun <T> safe(apiCall: () -> T): T? {
8785
return try {
8886
apiCall.invoke()
@@ -94,7 +92,6 @@ fun <T> safe(apiCall: () -> T): T? {
9492

9593
/** Catches any exception (or error) and only logs it.
9694
* Will return null on exceptions. */
97-
@Prerelease
9895
suspend fun <T> safeAsync(apiCall: suspend () -> T): T? {
9996
return try {
10097
apiCall.invoke()

0 commit comments

Comments
 (0)