mix.exs

defmodule CcsSdk.Mixfile do
  use Mix.Project

  def project do
    [app: :ccs_sdk,
     version: "1.0.0",
     elixir: "~> 1.3",
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,
     deps: deps(),
     description: description(),
     package: package()]
  end

  def application do
    [applications: [:httpoison, :poison] ++ applications(Mix.env)]
  end

  def applications(_),     do: []

  defp deps do
    [{:poison, "~> 2.0"},
     {:httpoison, "~> 0.8.0"},
     {:mock, "~> 0.1.1", only: :test},
     {:ex_doc, ">= 0.0.0", only: :dev}]
  end

  defp description do
    "Internal SDK for ccs project"
  end

  defp package do
    [name: :ccs_service_client,
     files: ["lib", "mix.exs"],
     maintainers: ["Andrey Noskov", "Alexander Malaev"],
     licenses: ["MIT"],
     links: %{}]
  end
end