-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
54 lines (48 loc) · 1.49 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
defmodule Pushex.Mixfile do
use Mix.Project
@version "0.2.3"
def project do
[app: :pushex,
version: @version,
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
description: "Mobile push notification library",
source_url: "https://github.com/tuvistavie/pushex",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: [plt_add_apps: [:poison, :httpoison, :vex]],
docs: [source_ref: "#{@version}", extras: ["README.md"], main: "readme"]]
end
def application do
[applications: [:logger, :httpoison, :vex, :poolboy, :apns],
mod: {Pushex.App, []},
description: 'Mobile push notification library']
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[{:httpoison, "~> 0.8"},
{:poison, "~> 1.5 or ~> 2.1 or ~> 3.0"},
{:poolboy, "~> 1.5"},
{:vex, "~> 0.5"},
{:apns, "~> 0.9.4"},
{:excoveralls, "~> 0.5", only: :test},
{:dialyxir, "~> 0.3", only: :dev},
{:earmark, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.11", only: :dev}]
end
defp package do
[
maintainers: ["Daniel Perez"],
files: ["lib", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/tuvistavie/pushex",
"Docs" => "http://hexdocs.pm/pushex/"
}
]
end
end