@@ -26,6 +26,7 @@ import com.lagradost.cloudstream3.CloudStreamApp.Companion.getKey
2626import com.lagradost.cloudstream3.CloudStreamApp.Companion.removeKey
2727import com.lagradost.cloudstream3.CloudStreamApp.Companion.setKey
2828import com.lagradost.cloudstream3.CommonActivity.showToast
29+ import com.lagradost.cloudstream3.InternalAPI
2930import com.lagradost.cloudstream3.MainAPI
3031import com.lagradost.cloudstream3.MainAPI.Companion.settingsForProvider
3132import com.lagradost.cloudstream3.MainActivity.Companion.afterPluginsLoadedEvent
@@ -259,12 +260,8 @@ object PluginManager {
259260 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
260261 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
261262 */
262- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
263- @Deprecated(
264- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
265- replaceWith = ReplaceWith (" loadPlugin" ),
266- level = DeprecationLevel .ERROR
267- )
263+ @Suppress(" FunctionName" )
264+ @InternalAPI
268265 @Throws
269266 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_updateAllOnlinePluginsAndLoadThem (activity : Activity ) {
270267 assertNonRecursiveCallstack()
@@ -340,12 +337,8 @@ object PluginManager {
340337 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
341338 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
342339 */
343- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
344- @Deprecated(
345- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
346- replaceWith = ReplaceWith (" loadPlugin" ),
347- level = DeprecationLevel .ERROR
348- )
340+ @Suppress(" FunctionName" )
341+ @InternalAPI
349342 @Throws
350343 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_downloadNotExistingPluginsAndLoad (
351344 activity : Activity ,
@@ -454,12 +447,8 @@ object PluginManager {
454447 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
455448 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
456449 */
457- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
458- @Deprecated(
459- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
460- replaceWith = ReplaceWith (" loadPlugin" ),
461- level = DeprecationLevel .ERROR
462- )
450+ @Suppress(" FunctionName" )
451+ @InternalAPI
463452 @Throws
464453 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_loadAllOnlinePlugins (context : Context ) {
465454 assertNonRecursiveCallstack()
@@ -480,13 +469,9 @@ object PluginManager {
480469 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
481470 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
482471 */
483- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
472+ @Suppress(" FunctionName" )
473+ @InternalAPI
484474 @Throws
485- @Deprecated(
486- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
487- replaceWith = ReplaceWith (" loadPlugin" ),
488- level = DeprecationLevel .ERROR
489- )
490475 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_hotReloadAllLocalPlugins (activity : FragmentActivity ? ) {
491476 assertNonRecursiveCallstack()
492477
@@ -505,12 +490,8 @@ object PluginManager {
505490 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
506491 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
507492 */
508- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
509- @Deprecated(
510- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
511- replaceWith = ReplaceWith (" loadPlugin" ),
512- level = DeprecationLevel .ERROR
513- )
493+ @Suppress(" FunctionName" )
494+ @InternalAPI
514495 @Throws
515496 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_loadAllLocalPlugins (context : Context , forceReload : Boolean ) {
516497 assertNonRecursiveCallstack()
@@ -814,13 +795,9 @@ object PluginManager {
814795 * DO NOT USE THIS IN A PLUGIN! It may case an infinite recursive loop lagging or crashing everyone's devices.
815796 * If you use it from a plugin, do not expect a stable jvmName, SO DO NOT USE IT!
816797 */
817- @Suppress(" FunctionName" , " DEPRECATION_ERROR" )
798+ @Suppress(" FunctionName" )
799+ @InternalAPI
818800 @Throws
819- @Deprecated(
820- " Calling this function from a plugin will lead to crashes, use loadPlugin and unloadPlugin" ,
821- replaceWith = ReplaceWith (" loadPlugin" ),
822- level = DeprecationLevel .ERROR
823- )
824801 suspend fun ___DO_NOT_CALL_FROM_A_PLUGIN_manuallyReloadAndUpdatePlugins (activity : Activity ) {
825802 assertNonRecursiveCallstack()
826803
0 commit comments