From 50a0175ac39ba66c87b4c5eda4e9fff985c133b4 Mon Sep 17 00:00:00 2001 From: C10udburst <18114966+C10udburst@users.noreply.github.com> Date: Wed, 17 Aug 2022 14:10:51 +0200 Subject: [PATCH] fix revert --- settings.gradle.kts | 99 ++++++--------------------------------------- 1 file changed, 13 insertions(+), 86 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index ab82ec0..21bf4f0 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,91 +4,18 @@ rootProject.name = "CloudstreamPlugins" // to the includes below. // Plugins are included like this -include( - "XcineProvider", - "FilmanProvider", - "VMoveeProvider", - "AsiaFlixProvider", - "DoramasYTProvider", -// "SflixProProvider", - "PinoyMovies", - "SeriesflixProvider", - "TrailersTwoProvider", - "KisskhProvider", - "VidstreamBundle", - "RebahinProvider", - "AllMoviesForYouProvider", - "UakinoProvider", - "DramaidProvider", - "FaselHDProvider", - "MeloMovieProvider", - "PelisplusProvider", - "YomoviesProvider", - "AkwamProvider", - "IdlixProvider", - "NginxProvider", - "SoaptwoDayProvider", - "PinoyHDXyzProvider", - "PelisflixProvider", - "SflixProvider", - "ElifilmsProvider", - "VidSrcProvider", - "EgyBestProvider", - "VfSerieProvider", - "LayarKacaProvider", - "EntrepeliculasyseriesProvider", - "SuperStream", - "FrenchStreamProvider", - "MyCimaProvider", - "EstrenosDoramasProvider", -// "HDTodayProvider", - "DubokuProvider", - "HDMProvider", - "PhimmoichillProvider", - "OlgplyProvider", - "PeliSmartProvider", - "VfFilmProvider", - "IHaveNoTvProvider", - "CuevanaProvider", - "CinecalidadProvider", - "HDMovie5", - "HDrezkaProvider", - "PelisplusHDProvider", - "MultiplexProvider", - //"BflixProvider", -// "FmoviesToProvider", - "TheFlixToProvider", +val disabled = listOf() + +File(rootDir, ".").eachDir { dir -> + if (!disabled.contains(dir.name) && File(dir, "build.gradle.kts").exists()) { + include(dir.name) + } +} + +fun File.eachDir(block: (File) -> Unit) { + listFiles()?.filter { it.isDirectory }?.forEach { block(it) } +} - // <--- Anime providers ---> - "DubbedAnimeProvider", - "TocanimeProvider", - "NontonAnimeIDProvider", - "WcofunProvider", - "TenshiProvider", - "KimCartoonProvider", - "AllAnimeProvider", - "WatchCartoonOnlineProvider", - "AnimeFlickProvider", - "AnimeSailProvider", - "MonoschinosProvider", - "AnimefenixProvider", - "NeonimeProvider", - "KawaiifuProvider", - "OploverzProvider", - "MundoDonghuaProvider", - "NineAnimeProvider", - "AnimePaheProvider", - "AnimeflvIOProvider", - "AniflixProvider", - "GogoanimeProvider", - "AnimeflvnetProvider", - "KuramanimeProvider", - "GomunimeProvider", - "OtakudesuProvider", - "JKAnimeProvider", - "AnimekisaProvider", - "AnimeIndoProvider", - "KuronimeProvider", - "EjaTv", -) +// To only include a single project, comment out the previous lines (except the first one), and include your plugin like so: +// include("PluginName") \ No newline at end of file