defmodule Spotify.Mixfile do
  use Mix.Project

  def project do
    [
      app: :spotify_ex,
      version: "2.3.0",
      elixir: ">= 1.12.0",
      description: description(),
      package: package(),
      build_embedded: Mix.env() == :prod,
      start_permanent: Mix.env() == :prod,
      source_url: "https://github.com/jsncmgs1/spotify_ex",
      homepage_url: "https://github.com/jsncmgs1/spotify_ex",
      deps: deps(),
      docs: [extras: ["README.md"]]
    ]
  end

  defp package do
    [
      maintainers: ["Jason Cummings"],
      licenses: ["MIT"],
      links: %{
        "GitHub" => "https://www.github.com/jsncmgs1/spotify_ex",
        "Example Phoenix App" => "https://www.github.com/jsncmgs1/spotify_ex_test"
      }
    ]
  end

  defp description do
    """
    An Elixir wrapper for the Spotify Web API.
    """
  end

  # Configuration for the OTP application
  #
  # Type "mix help compile.app" for more information
  def application do
    []
  end

  # Dependencies can be Hex packages:
  #
  #   {:mydep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
  #
  # Type "mix help deps" for more examples and options
  defp deps do
    [
      {:httpoison, "~> 1.0"},
      {:poison, "~> 3.1"},
      {:plug, ">= 1.4.5"},
      {:mock, "~> 0.1.1", only: :test},
      {:ex_doc, "~> 0.28.4", only: :dev},
      {:inch_ex, "~> 0.5.6", only: :docs}
    ]
  end
end
