forked from gausby/tortoise
-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
80 lines (72 loc) · 1.85 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
defmodule Tortoise311.MixProject do
use Mix.Project
@version "0.12.0"
@source_url "https://github.com/smartrent/tortoise311"
def project do
[
app: :tortoise311,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs,
"hex.build": :docs
]
]
end
defp description() do
"An MQTT 3.1.1 client for Elixir"
end
def application do
[
extra_applications: [:logger, :ssl],
mod: {Tortoise311.App, []}
]
end
defp deps do
[
{:gen_state_machine, "~> 2.0 or ~> 3.0"},
{:telemetry, "~> 1.0"},
{:dialyxir, "~> 1.3", only: :dev, runtime: false},
{:ex_doc, "~> 0.19", only: :docs, runtime: false},
{:ct_helper, github: "ninenines/ct_helper", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false}
]
end
defp package() do
[
name: "tortoise311",
maintainers: ["Jean-Francois Cloutier"],
licenses: ["Apache 2.0"],
files: ["lib", "mix.exs", "README*", "CHANGELOG*", "LICENSE*"],
links: %{"GitHub" => @source_url}
]
end
defp docs() do
[
name: "Tortoise311",
source_ref: "v#{@version}",
main: "introduction",
canonical: "http://hexdocs.pm/tortoise311",
source_url: @source_url,
extras: [
"docs/introduction.md",
"docs/connecting_to_a_mqtt_broker.md",
"docs/connection_supervision.md",
"docs/publishing_messages.md"
]
]
end
defp dialyzer() do
[
ignore_warnings: "dialyzer.ignore",
flags: [:unmatched_returns, :error_handling, :missing_return, :extra_return, :underspecs]
]
end
end