-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
123 lines (113 loc) · 2.95 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
defmodule LibLatLon.MixProject do
use Mix.Project
@app :lib_lat_lon
@app_name "LibLatLon"
@version "0.8.0"
@exexif Application.compile_env(:lib_lat_lon, :exexif, :exexif)
def project do
[
app: @app,
name: @app_name,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
description: description(),
docs: docs(),
xref: [exclude: []],
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
quality: :ci,
"quality.ci": :ci,
coveralls: :ci,
"coveralls.detail": :ci,
"coveralls.post": :ci,
"coveralls.html": :ci
],
dialyzer: [
plt_file: {:no_warn, ".dialyzer/dialyzer.plt"},
plt_add_deps: :app_tree,
plt_add_apps: [],
list_unused_filters: true,
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: ~w|logger httpoison porcelain|a,
mod: {LibLatLon.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:httpoison, "~> 1.5"},
{:jason, "~> 1.0"},
{:porcelain, "~> 2.0"},
{@exexif, "~> 0.0"},
{:credo, "~> 1.0", only: [:dev, :ci]},
{:inch_ex, ">= 0.0.0", only: [:dev, :docs]},
{:ex_doc, ">= 0.0.0", only: [:ci, :docs]},
{:excoveralls, "~> 0.8", only: [:test, :ci]},
{:dialyxir, "~> 1.0", only: [:dev, :ci], runtime: false}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp description do
"""
Small library for direct/reverse geocoding.
Supports explicit latitude/longitude pairs, addresses as binaries,
as well as jpeg/tiff images having a GPS information in exif.
"""
end
defp package do
[
name: :lib_lat_lon,
files: ~w|lib mix.exs README.md|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/amotion-city/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp docs() do
[
main: @app_name,
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/images/logo.png",
source_url: "https://github.com/amotion-city/#{@app}",
extras: [
"stuff/pages/intro.md"
],
groups_for_modules: [
# LibLatLon,
# LibLatLon.Provider
"Data Representation": [
LibLatLon.Bounds,
LibLatLon.Coords,
LibLatLon.Info
],
Providers: [
LibLatLon.Providers.GoogleMaps,
LibLatLon.Providers.OpenStreetMap
]
]
]
end
end