Packages
nerves_hub_link
1.0.1
2.12.0
2.11.1
2.11.0
retired
2.10.2
2.10.1
2.10.0
2.9.0
2.9.0-rc.3
2.9.0-rc.2
2.9.0-rc.1
2.8.1
2.8.0
2.7.3
2.7.2
2.7.0
retired
2.6.0
2.5.2
2.5.1
2.5.0
2.4.0
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.13.1
0.13.0
0.12.1
0.12.0
0.11.0
0.10.2
0.10.1
retired
0.10.0
retired
0.10.0-rc.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.6
Manage your Nerves fleet by connecting it to NervesHub
Current section
Files
Jump to
Current section
Files
nerves_hub_link
mix.exs
mix.exs
defmodule NervesHubLink.MixProject do
use Mix.Project
@version "1.0.1"
@source_url "https://github.com/nerves-hub/nerves_hub_link"
Application.put_env(
:nerves_hub_link,
:nerves_provisioning,
Path.expand("provisioning.conf")
)
def project do
[
app: :nerves_hub_link,
deps: deps(),
description: description(),
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
docs: :docs,
"hex.publish": :docs
],
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
version: @version
]
end
def application do
[
env: [
device_api_host: "device.nerves-hub.org",
device_api_port: 443,
device_api_sni: "device.nerves-hub.org",
fwup_public_keys: []
],
extra_applications: [:logger, :iex, :inets],
mod: {NervesHubLink.Application, []}
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"The NervesHub device application"
end
defp dialyzer() do
[
flags: [:race_conditions, :error_handling, :underspecs, :unmatched_returns],
plt_add_apps: [:atecc508a, :nerves_key, :nerves_key_pkcs11],
list_unused_filters: true
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url},
files: [
"lib",
"CHANGELOG.md",
"LICENSE",
"mix.exs",
"README.md",
"provisioning.conf"
]
]
end
defp deps do
[
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.18", only: :docs, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:extty, "~> 0.2"},
{:fwup, "~> 1.0.0"},
{:hackney, "~> 1.10"},
{:jason, "~> 1.0"},
{:mox, "~> 1.0.0", only: :test},
{:nerves_hub_cli, "~> 0.11", runtime: false},
{:nerves_key, "~> 1.0 or ~> 0.5", optional: true},
{:nerves_runtime, "~> 0.8"},
{:nerves_hub_link_common, "~> 0.3.0"},
{:nerves_hub_ca_store, "~> 1.0.0"},
{:slipstream, "~> 0.8"},
{:x509, "~> 0.5"}
]
end
end