defmodule Realtime.MixProject do use Mix.Project def project do [ app: :realtime, version: "0.1.0", elixir: "~> 1.18", listeners: [Phoenix.CodeReloader], start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps() ] end # test/support holds the in-memory stand-ins (rate-limit counter, channel # case) that let the suite run with no Redis and no Postgres. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] def application do [ extra_applications: [:logger, :runtime_tools], mod: {Realtime.Application, []} ] end defp deps do [ # Phoenix {:phoenix, "~> 1.7"}, {:phoenix_pubsub, "~> 2.1"}, {:plug_cowboy, "~> 2.7"}, # Keep this floor; re-check it whenever cowlib publishes a release. {:cowboy, "~> 2.16"}, {:jason, "~> 1.4"}, # Google Pub/Sub {:broadway, "~> 1.0"}, {:broadway_cloud_pub_sub, "~> 0.9"}, {:goth, "~> 1.4"}, # Database {:ecto_sql, "~> 3.10"}, {:postgrex, "~> 0.17"}, # Redis {:redix, "~> 1.3"}, # Authentication {:jose, "~> 1.11"}, # Error tracking. Finch is the HTTP client (already pulled in by goth and # broadway_cloud_pub_sub). {:sentry, "~> 10.0"}, {:finch, "~> 0.21"}, # Utilities {:uuid, "~> 1.1"} ] end end