~sbaildon/ua_inspector

db8cfb86842ec4d7a4d88a138234fb9bcc831649 — Sean Baildon a month ago 62dfd03 master
hackney is optional
1 files changed, 4 insertions(+), 3 deletions(-)

M mix.exs
M mix.exs => mix.exs +4 -3
@@ 32,7 32,8 @@ defmodule UAInspector.MixProject do
  def application do
    [
      extra_applications: extra_applications(Mix.env()) ++ [:logger],
      mod: {UAInspector.Application, []}
      mod: {UAInspector.Application, []},
      env: [downloader_adapter: UAInspector.Downloader.Adapter.Hackney]
    ]
  end



@@ 52,7 53,7 @@ defmodule UAInspector.MixProject do
      {:dialyxir, "~> 1.4", only: :dev, runtime: false},
      {:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
      {:excoveralls, "~> 0.16.0", only: :test, runtime: false},
      {:hackney, "~> 1.0"},
      {:hackney, "~> 1.0", optional: true},
      {:yamerl, "~> 0.7"}
    ]
  end


@@ 99,7 100,7 @@ defmodule UAInspector.MixProject do
    ]
  end

  defp extra_applications(:test), do: [:inets]
  defp extra_applications(:test), do: [:inets, :hackney]
  defp extra_applications(_), do: []

  defp package do