-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
80 lines (73 loc) · 1.81 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 ReceiptDecoder.Mixfile do
use Mix.Project
@version "0.7.0"
def project do
[
app: :receipt_decoder,
version: @version,
elixir: "~> 1.15",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
source_url: "https://github.com/linjunpop/receipt_decoder",
homepage_url: "https://github.com/linjunpop/receipt_decoder",
docs: docs(),
dialyzer: [plt_add_apps: [:mix, :public_key, :asn1]],
xref: [exclude: [:asn1ct]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:public_key, :logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: [:dev, :docs]},
{:benchee, "~> 1.0", only: [:dev, :test]}
]
end
defp description do
"Decode iOS App receipt"
end
defp package do
[
name: :receipt_decoder,
files: [
"lib/receipt_decoder*",
"src/ReceiptModule.{erl,hrl}",
"priv/AppleIncRootCertificate.cer",
"mix.exs",
"README*",
"LICENSE"
],
maintainers: ["Jun Lin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/linjunpop/receipt_decoder"
}
]
end
defp docs do
[
main: "ReceiptDecoder",
groups_for_modules: [
Core: [
ReceiptDecoder.Extractor,
ReceiptDecoder.Verifier,
ReceiptDecoder.Parser
],
Data: [
ReceiptDecoder.AppReceipt,
ReceiptDecoder.IAPReceipt
]
]
]
end
end