Current section

Files

Jump to
moip mix.exs
Raw

mix.exs

defmodule Moip.Mixfile do
use Mix.Project
@version "0.3.0"
@github "https://github.com/frederico/moip-sdk-elixir"
def project do
[app: :moip,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
docs: docs(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps()]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :httpoison, :faker]]
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, "~> 0.11.1"},
{:poison, "~> 3.0"},
{:secure_random, "~> 0.5"},
{:brcpfcnpj, "~> 0.1.0",only: :test},
{:faker, "~> 0.8", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @github,
extras: [
"README.md"
]
]
end
defp description do
"""
Biblioteca para utulizar as Api's do Moip (https://www.moip.com.br).
"""
end
defp package do
[
name: :moip,
licenses: ["Apache 2.0"],
description: "Moip Elixir SDK",
files: ["lib", "config", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Frederico Macedo <frederico@negociosimples.com.br>"],
links: %{"GitHub" => @github, "Docs" => "https://hexdocs.pm/moip/api-reference.html"}
]
end
end