2019-09-02 11:46:29 +00:00
|
|
|
defmodule LineBot.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
2019-09-02 12:30:38 +00:00
|
|
|
@version "0.1.0"
|
|
|
|
|
2019-09-02 11:46:29 +00:00
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :line_bot,
|
2019-09-02 12:30:38 +00:00
|
|
|
version: @version,
|
2019-09-02 11:46:29 +00:00
|
|
|
elixir: "~> 1.9",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps(),
|
2019-09-02 12:30:38 +00:00
|
|
|
source_url: "https://github.com/adamu/line_bot",
|
2019-09-02 11:46:29 +00:00
|
|
|
docs: docs()
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
mod: {LineBot.Application, []},
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp docs do
|
|
|
|
[
|
|
|
|
main: "readme",
|
|
|
|
extras: ["README.md"],
|
2019-09-02 12:30:38 +00:00
|
|
|
source_ref: "v#{@version}",
|
2019-09-02 11:46:29 +00:00
|
|
|
groups_for_modules: [
|
|
|
|
LineBot: [
|
|
|
|
LineBot,
|
|
|
|
LineBot.APIClient,
|
|
|
|
LineBot.EventInfo,
|
|
|
|
LineBot.TokenServer,
|
|
|
|
LineBot.Webhook
|
|
|
|
],
|
|
|
|
Messages: [
|
|
|
|
LineBot.Message,
|
|
|
|
LineBot.Message.Text,
|
|
|
|
LineBot.Message.Sticker,
|
|
|
|
LineBot.Message.Image,
|
|
|
|
LineBot.Message.Video,
|
|
|
|
LineBot.Message.Audio,
|
|
|
|
LineBot.Message.Location,
|
|
|
|
LineBot.Message.Imagemap,
|
|
|
|
LineBot.Message.Template,
|
|
|
|
LineBot.Message.Flex,
|
|
|
|
LineBot.Message.QuickReply,
|
|
|
|
LineBot.Message.QuickReplyItem
|
|
|
|
],
|
|
|
|
Actions: [
|
|
|
|
LineBot.Message.Action,
|
|
|
|
LineBot.Message.Action.Postback,
|
|
|
|
LineBot.Message.Action.Message,
|
|
|
|
LineBot.Message.Action.URI,
|
|
|
|
LineBot.Message.Action.DateTimePicker,
|
|
|
|
LineBot.Message.Action.Camera,
|
|
|
|
LineBot.Message.Action.CameraRoll,
|
|
|
|
LineBot.Message.Action.Location
|
|
|
|
],
|
|
|
|
"Flex Message": [
|
|
|
|
LineBot.Message.Flex.Carousel,
|
|
|
|
LineBot.Message.Flex.Bubble,
|
|
|
|
LineBot.Message.Flex.BubbleStyle,
|
|
|
|
LineBot.Message.Flex.BubbleStyleBlock,
|
|
|
|
LineBot.Message.Flex.Box,
|
|
|
|
LineBot.Message.Flex.Button,
|
|
|
|
LineBot.Message.Flex.Filler,
|
|
|
|
LineBot.Message.Flex.Icon,
|
|
|
|
LineBot.Message.Flex.Image,
|
|
|
|
LineBot.Message.Flex.Separator,
|
|
|
|
LineBot.Message.Flex.Spacer,
|
|
|
|
LineBot.Message.Flex.Text
|
|
|
|
],
|
|
|
|
Imagemap: [
|
|
|
|
LineBot.Message.Imagemap.BaseSize,
|
|
|
|
LineBot.Message.Imagemap.Video,
|
|
|
|
LineBot.Message.Imagemap.Video.ExternalLink,
|
|
|
|
LineBot.Message.Imagemap.Area,
|
|
|
|
LineBot.Message.Imagemap.Action.Message,
|
|
|
|
LineBot.Message.Imagemap.Action.URI
|
|
|
|
],
|
|
|
|
Template: [
|
|
|
|
LineBot.Message.Template.Buttons,
|
|
|
|
LineBot.Message.Template.Confirm,
|
|
|
|
LineBot.Message.Template.Carousel,
|
|
|
|
LineBot.Message.Template.Carousel.Column,
|
|
|
|
LineBot.Message.Template.Column,
|
|
|
|
LineBot.Message.Template.ImageCarousel,
|
|
|
|
LineBot.Message.Template.ImageCarousel.Column
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
|
|
|
{:plug, "~> 1.8"},
|
|
|
|
{:httpoison, "~> 1.5"},
|
|
|
|
{:jason, "~> 1.1"},
|
|
|
|
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
|
|
|
|
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
|
|
|
|
{:mox, "~> 0.5", only: :test}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|