defmodule Membrane.RTC.Engine.Endpoint.HLS.MixProject do use Mix.Project @version "0.2.0" @engine_github_url "https://github.com/jellyfish-dev/membrane_rtc_engine" @github_url "#{@engine_github_url}/tree/master/hls" @source_ref "hls-v#{@version}" def project do [ app: :membrane_rtc_engine_hls, version: @version, elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), # hex description: "HLS Endpoint for Membrane RTC Engine", package: package(), # docs name: "Membrane RTC Engine HLS Endpoint", source_url: @github_url, homepage_url: "https://membrane.stream", docs: docs(), # test coverage test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.json": :test ], # dialyzer # this is because of optional dependencies # they are not included in PLT dialyzer: [ plt_add_apps: [ :membrane_video_compositor_plugin ] ] ] end def application do [ extra_applications: [] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_env), do: ["lib"] defp deps do [ # Engine deps {:membrane_rtc_engine, "~> 0.17.0"}, {:membrane_rtc_engine_webrtc, "~> 0.2.0"}, # Regular deps {:membrane_core, "~> 0.12.3"}, {:membrane_aac_plugin, "~> 0.15.0"}, {:membrane_opus_plugin, "~> 0.17.1"}, {:membrane_aac_fdk_plugin, "~> 0.15.1"}, {:membrane_raw_audio_format, "~> 0.11.0"}, {:membrane_raw_video_format, "~> 0.3.0"}, {:membrane_h264_plugin, "~> 0.5.0"}, {:membrane_h264_ffmpeg_plugin, "~> 0.28.2"}, {:membrane_http_adaptive_stream_plugin, "~> 0.16.0"}, {:credo, "~> 1.6", only: :dev, runtime: false}, {:ex_doc, "~> 0.29", only: :dev, runtime: false}, {:dialyxir, "~> 1.1", only: :dev, runtime: false}, # Optional deps for mixing audio and composing video {:membrane_audio_mix_plugin, "~> 0.15.2", optional: true}, {:membrane_video_compositor_plugin, "~> 0.5.1", optional: true}, # Test deps {:membrane_file_plugin, "~> 0.15.0"}, {:excoveralls, "~> 0.16.0", only: :test, runtime: false}, # File Source {:membrane_realtimer_plugin, "~> 0.6.1", only: :test} ] end defp package do [ maintainers: ["Membrane Team"], licenses: ["Apache-2.0"], links: %{ "GitHub" => @github_url, "Membrane Framework Homepage" => "https://membrane.stream" } ] end defp docs do [ main: "readme", extras: ["README.md", "CHANGELOG.md", "LICENSE"], formatters: ["html"], source_ref: @source_ref, source_url_pattern: "#{@engine_github_url}/blob/#{@source_ref}/hls/%{path}#L%{line}", nest_modules_by_prefix: [Membrane.RTC.Engine.Endpoint] ] end end