-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
75 lines (68 loc) · 1.56 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
defmodule ReceiptVerifier.Mixfile do
use Mix.Project
@version "0.14.0"
@url "https://github.com/linjunpop/receipt_verifier"
def project do
[
app: :receipt_verifier,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
preferred_cli_env: [
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
source_url: @url,
homepage_url: @url,
docs: docs()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[
extra_applications: [:logger],
env: [json_library: Jason]
]
end
defp deps do
[
{:hackney, "~> 1.15"},
{:jason, "~> 1.0", optional: true},
{:dialyxir, "~> 1.1", only: :dev},
{:exvcr, "~> 0.11", only: :test},
{:credo, "~> 1.1", only: [:dev, :test]},
{:inch_ex, "~> 2.0", only: [:dev, :test, :docs]},
{:ex_doc, "~> 0.21", only: [:dev, :docs]}
]
end
defp description do
"Verify iTunes receipt with the App Store"
end
defp package do
[
name: :receipt_verifier,
files: ["lib", "mix.exs", "README*", "LICENSE"],
maintainers: ["Jun Lin"],
licenses: ["MIT"],
links: %{
"GitHub" => @url
}
]
end
defp docs do
[
main: "getting-started",
extras: [
"docs/Getting Started.md"
]
]
end
end