From 2e4c6bcd778e8973c4e0160e917e33e95368f18c Mon Sep 17 00:00:00 2001 From: Red <25087116+AbdullahM0hamed@users.noreply.github.com> Date: Tue, 16 Aug 2022 15:06:41 +0100 Subject: [PATCH] A slight convenience (#2) --- settings.gradle.kts | 106 ++++++++------------------------------------ 1 file changed, 19 insertions(+), 87 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index ab82ec0..6fbc23a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,91 +4,23 @@ 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", - - - // <--- 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", +val disabled = listOf( + "SflixProProvider", + "HDTodayProvider", + "BflixProvider", + "FmoviesToProvider" ) + +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) } +} + + +// To only include a single project, comment out the previous lines (except the first one), and include your plugin like so: +// include("PluginName")