defmodule HttpFetch.MixProject do use Mix.Project @version "0.6.0" @source_url "https://github.com/gsmlg-dev/http_fetch" def project do [ app: :http_fetch, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: dialyzer(), description: "A browser-like HTTP fetch API for Elixir using Erlang's built-in :httpc module", package: [ files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"], maintainers: ["Jonathan Gao"], licenses: ["MIT"], links: %{"GitHub" => @source_url} ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :inets, :public_key, :ssl], mod: {HTTPFetch.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:telemetry, "~> 1.0"}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:briefly, "~> 0.4", only: :test}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} ] end defp dialyzer do [ plt_file: {:no_warn, "priv/plts/dialyzer.plt"}, plt_add_apps: [:ex_unit, :mix], flags: [:unmatched_returns, :error_handling, :underspecs], ignore_warnings: ".dialyzer_ignore.exs" ] end end