SimpleX-Chat/simplex-chat.cabal

422 lines
13 KiB
Text
Raw Normal View History

2021-12-18 13:59:06 +00:00
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.35.1.
2021-12-18 13:59:06 +00:00
--
-- see: https://github.com/sol/hpack
name: simplex-chat
2023-05-04 12:45:57 +01:00
version: 5.1.0.0
2021-12-18 13:59:06 +00:00
category: Web, System, Services, Cryptography
homepage: https://github.com/simplex-chat/simplex-chat#readme
author: simplex.chat
maintainer: chat@simplex.chat
copyright: 2020-22 simplex.chat
2021-12-18 13:59:06 +00:00
license: AGPL-3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
flag swift
description: Enable swift JSON format
manual: True
default: False
2021-12-18 13:59:06 +00:00
library
exposed-modules:
Simplex.Chat
Simplex.Chat.Archive
Simplex.Chat.Bot
Simplex.Chat.Call
2021-12-18 13:59:06 +00:00
Simplex.Chat.Controller
Simplex.Chat.Core
2021-12-18 13:59:06 +00:00
Simplex.Chat.Help
Simplex.Chat.Markdown
Simplex.Chat.Messages
Simplex.Chat.Migrations.M20220101_initial
Simplex.Chat.Migrations.M20220122_v1_1
Simplex.Chat.Migrations.M20220205_chat_item_status
Simplex.Chat.Migrations.M20220210_deduplicate_contact_requests
2022-02-25 21:59:35 +04:00
Simplex.Chat.Migrations.M20220224_messages_fks
configurable smp servers (#366, #411); core: profile images (#384) * core: configurable smp servers (#366) * core: update simplexmq hash * core: update simplexmq hash (fix SMPServer json encoding) * core: fix crashing on supplying duplicate SMP servers * core: update simplexmq hash (remove SMPServer FromJSON) * core: update simplexmq hash (merged master) * core: profile images (#384) * adding initial RFC * adding migration SQL * update RFC * linting * Apply suggestions from code review Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> * refine RFC * add avatars db migration to Store.hs * initial chages to have images in users/groups * fix protocol tests * update SQL & MobileTests * minor bug fixes * add missing comma * fix query error * refactor and update functions * bug fixes + testing * update to parse base64 web format images * fix parsing and use valid padded base64 encoded image * fix typos * respose to and suggestions from review * fix: typo * refactor: avatars -> profile_images * fix: typo * swap updateProfile parameters * remove TODO Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> * ios, android: configurable smp servers (only model and api for android) (#392) * android: configurable smp servers (ui) * fix thumb color, fix text field color in dark mode * update simplexmq hash (configurable servers in master) Co-authored-by: IanRDavies <ian_davies_@hotmail.co.uk> Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2022-03-10 15:45:40 +04:00
Simplex.Chat.Migrations.M20220301_smp_servers
Simplex.Chat.Migrations.M20220302_profile_images
Simplex.Chat.Migrations.M20220304_msg_quotes
Simplex.Chat.Migrations.M20220321_chat_item_edited
Simplex.Chat.Migrations.M20220404_files_status_fields
2022-05-14 21:00:46 +04:00
Simplex.Chat.Migrations.M20220514_profiles_user_id
Simplex.Chat.Migrations.M20220626_auto_reply
Simplex.Chat.Migrations.M20220702_calls
Simplex.Chat.Migrations.M20220715_groups_chat_item_id
Simplex.Chat.Migrations.M20220811_chat_items_indices
2022-08-18 11:35:31 +04:00
Simplex.Chat.Migrations.M20220812_incognito_profiles
Simplex.Chat.Migrations.M20220818_chat_notifications
Simplex.Chat.Migrations.M20220822_groups_host_conn_custom_user_profile_id
Simplex.Chat.Migrations.M20220823_delete_broken_group_event_chat_items
2022-08-24 19:03:43 +04:00
Simplex.Chat.Migrations.M20220824_profiles_local_alias
Simplex.Chat.Migrations.M20220909_commands
Simplex.Chat.Migrations.M20220926_connection_alias
Simplex.Chat.Migrations.M20220928_settings
Simplex.Chat.Migrations.M20221001_shared_msg_id_indices
Simplex.Chat.Migrations.M20221003_delete_broken_integrity_error_chat_items
Simplex.Chat.Migrations.M20221004_idx_msg_deliveries_message_id
2022-10-13 17:12:22 +04:00
Simplex.Chat.Migrations.M20221011_user_contact_links_group_id
Simplex.Chat.Migrations.M20221012_inline_files
Simplex.Chat.Migrations.M20221019_unread_chat
Simplex.Chat.Migrations.M20221021_auto_accept__group_links
Simplex.Chat.Migrations.M20221024_contact_used
Simplex.Chat.Migrations.M20221025_chat_settings
Simplex.Chat.Migrations.M20221029_group_link_id
Simplex.Chat.Migrations.M20221112_server_password
Simplex.Chat.Migrations.M20221115_server_cfg
Simplex.Chat.Migrations.M20221129_delete_group_feature_items
Simplex.Chat.Migrations.M20221130_delete_item_deleted
Simplex.Chat.Migrations.M20221209_verified_connection
2022-12-09 20:01:31 +04:00
Simplex.Chat.Migrations.M20221210_idxs
Simplex.Chat.Migrations.M20221211_group_description
Simplex.Chat.Migrations.M20221212_chat_items_timed
Simplex.Chat.Migrations.M20221214_live_message
Simplex.Chat.Migrations.M20221222_chat_ts
Simplex.Chat.Migrations.M20221223_idx_chat_items_item_status
Simplex.Chat.Migrations.M20221230_idxs
Simplex.Chat.Migrations.M20230107_connections_auth_err_counter
2023-01-13 13:54:07 +04:00
Simplex.Chat.Migrations.M20230111_users_agent_user_id
2023-01-17 15:45:37 +04:00
Simplex.Chat.Migrations.M20230117_fkey_indexes
Simplex.Chat.Migrations.M20230118_recreate_smp_servers
Simplex.Chat.Migrations.M20230129_drop_chat_items_group_idx
Simplex.Chat.Migrations.M20230206_item_deleted_by_group_member_id
Simplex.Chat.Migrations.M20230303_group_link_role
Simplex.Chat.Migrations.M20230317_hidden_profiles
2023-03-23 13:58:23 +04:00
Simplex.Chat.Migrations.M20230318_file_description
Simplex.Chat.Migrations.M20230321_agent_file_deleted
Simplex.Chat.Migrations.M20230328_files_protocol
Simplex.Chat.Migrations.M20230402_protocol_servers
Simplex.Chat.Migrations.M20230411_extra_xftp_file_descriptions
Simplex.Chat.Migrations.M20230420_rcv_files_to_receive
Simplex.Chat.Migrations.M20230422_profile_contact_links
Simplex.Chat.Migrations.M20230504_recreate_msg_delivery_events_cleanup_messages
Simplex.Chat.Migrations.M20230505_chat_item_versions
Simplex.Chat.Migrations.M20230511_reactions
Simplex.Chat.Mobile
Simplex.Chat.Mobile.WebRTC
2021-12-18 13:59:06 +00:00
Simplex.Chat.Options
2022-08-18 11:35:31 +04:00
Simplex.Chat.ProfileGenerator
2021-12-18 13:59:06 +00:00
Simplex.Chat.Protocol
Simplex.Chat.Store
Simplex.Chat.Styled
Simplex.Chat.Terminal
Simplex.Chat.Terminal.Input
Simplex.Chat.Terminal.Notification
Simplex.Chat.Terminal.Output
2021-12-18 13:59:06 +00:00
Simplex.Chat.Types
Simplex.Chat.Util
2021-12-18 13:59:06 +00:00
Simplex.Chat.View
other-modules:
Paths_simplex_chat
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns
build-depends:
aeson ==2.0.*
2022-01-07 11:28:39 +04:00
, ansi-terminal >=0.10 && <0.12
, async ==2.2.*
, attoparsec ==0.14.*
2021-12-18 13:59:06 +00:00
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
2021-12-18 13:59:06 +00:00
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, direct-sqlcipher ==2.3.*
2021-12-18 13:59:06 +00:00
, directory ==1.3.*
, email-validate ==2.3.*
2021-12-18 13:59:06 +00:00
, exceptions ==0.10.*
, filepath ==1.4.*
, http-types ==0.12.*
, memory ==0.15.*
2021-12-18 13:59:06 +00:00
, mtl ==2.2.*
, network >=3.1.2.7 && <3.2
, optparse-applicative >=0.15 && <0.17
2021-12-18 13:59:06 +00:00
, process ==1.6.*
2022-08-18 11:35:31 +04:00
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
2021-12-18 13:59:06 +00:00
, simple-logger ==0.1.*
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
2021-12-18 13:59:06 +00:00
, stm ==2.5.*
, template-haskell ==2.16.*
2021-12-18 13:59:06 +00:00
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, zip ==1.7.*
2021-12-18 13:59:06 +00:00
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON
2021-12-18 13:59:06 +00:00
executable simplex-bot
main-is: Main.hs
other-modules:
Paths_simplex_chat
hs-source-dirs:
apps/simplex-bot
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -threaded
build-depends:
aeson ==2.0.*
, ansi-terminal >=0.10 && <0.12
, async ==2.2.*
, attoparsec ==0.14.*
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, direct-sqlcipher ==2.3.*
, directory ==1.3.*
, email-validate ==2.3.*
, exceptions ==0.10.*
, filepath ==1.4.*
, http-types ==0.12.*
, memory ==0.15.*
, mtl ==2.2.*
, network >=3.1.2.7 && <3.2
, optparse-applicative >=0.15 && <0.17
, process ==1.6.*
2022-08-18 11:35:31 +04:00
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
, simple-logger ==0.1.*
, simplex-chat
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
, stm ==2.5.*
, template-haskell ==2.16.*
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, zip ==1.7.*
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON
executable simplex-bot-advanced
main-is: Main.hs
other-modules:
Paths_simplex_chat
hs-source-dirs:
apps/simplex-bot-advanced
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -threaded
build-depends:
aeson ==2.0.*
, ansi-terminal >=0.10 && <0.12
, async ==2.2.*
, attoparsec ==0.14.*
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, direct-sqlcipher ==2.3.*
, directory ==1.3.*
, email-validate ==2.3.*
, exceptions ==0.10.*
, filepath ==1.4.*
, http-types ==0.12.*
, memory ==0.15.*
, mtl ==2.2.*
, network >=3.1.2.7 && <3.2
, optparse-applicative >=0.15 && <0.17
, process ==1.6.*
2022-08-18 11:35:31 +04:00
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
, simple-logger ==0.1.*
, simplex-chat
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
, stm ==2.5.*
, template-haskell ==2.16.*
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, zip ==1.7.*
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON
executable simplex-broadcast-bot
main-is: Main.hs
other-modules:
Options
Paths_simplex_chat
hs-source-dirs:
apps/simplex-broadcast-bot
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -threaded
build-depends:
aeson ==2.0.*
, ansi-terminal >=0.10 && <0.12
, async ==2.2.*
, attoparsec ==0.14.*
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, direct-sqlcipher ==2.3.*
, directory ==1.3.*
, email-validate ==2.3.*
, exceptions ==0.10.*
, filepath ==1.4.*
, http-types ==0.12.*
, memory ==0.15.*
, mtl ==2.2.*
, network >=3.1.2.7 && <3.2
, optparse-applicative >=0.15 && <0.17
, process ==1.6.*
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
, simple-logger ==0.1.*
, simplex-chat
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
, stm ==2.5.*
, template-haskell ==2.16.*
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, zip ==1.7.*
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON
2021-12-18 13:59:06 +00:00
executable simplex-chat
main-is: Main.hs
other-modules:
Server
2021-12-18 13:59:06 +00:00
Paths_simplex_chat
hs-source-dirs:
apps/simplex-chat
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -threaded
build-depends:
aeson ==2.0.*
2022-01-07 11:28:39 +04:00
, ansi-terminal >=0.10 && <0.12
, async ==2.2.*
, attoparsec ==0.14.*
2021-12-18 13:59:06 +00:00
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
2021-12-18 13:59:06 +00:00
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, direct-sqlcipher ==2.3.*
2021-12-18 13:59:06 +00:00
, directory ==1.3.*
, email-validate ==2.3.*
2021-12-18 13:59:06 +00:00
, exceptions ==0.10.*
, filepath ==1.4.*
, http-types ==0.12.*
, memory ==0.15.*
2021-12-18 13:59:06 +00:00
, mtl ==2.2.*
, network ==3.1.*
, optparse-applicative >=0.15 && <0.17
2021-12-18 13:59:06 +00:00
, process ==1.6.*
2022-08-18 11:35:31 +04:00
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
2021-12-18 13:59:06 +00:00
, simple-logger ==0.1.*
, simplex-chat
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
2021-12-18 13:59:06 +00:00
, stm ==2.5.*
, template-haskell ==2.16.*
2021-12-18 13:59:06 +00:00
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, websockets ==0.12.*
, zip ==1.7.*
2021-12-18 13:59:06 +00:00
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON
2021-12-18 13:59:06 +00:00
test-suite simplex-chat-test
type: exitcode-stdio-1.0
main-is: Test.hs
other-modules:
ChatClient
ChatTests
2023-02-01 17:21:13 +00:00
ChatTests.Direct
ChatTests.Files
ChatTests.Groups
ChatTests.Profiles
ChatTests.Utils
2021-12-18 13:59:06 +00:00
MarkdownTests
MobileTests
2021-12-18 13:59:06 +00:00
ProtocolTests
2022-04-05 12:44:22 +04:00
SchemaDump
WebRTCTests
2021-12-18 13:59:06 +00:00
Paths_simplex_chat
hs-source-dirs:
tests
ghc-options: -Wall -Wcompat -Werror=incomplete-patterns -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -Wunused-type-patterns -threaded
2021-12-18 13:59:06 +00:00
build-depends:
aeson ==2.0.*
2022-01-07 11:28:39 +04:00
, ansi-terminal >=0.10 && <0.12
2021-12-18 13:59:06 +00:00
, async ==2.2.*
, attoparsec ==0.14.*
2021-12-18 13:59:06 +00:00
, base >=4.7 && <5
, base64-bytestring >=1.0 && <1.3
, bytestring ==0.10.*
, composition ==1.0.*
, constraints >=0.12 && <0.14
2021-12-18 13:59:06 +00:00
, containers ==0.6.*
, cryptonite >=0.27 && <0.30
, deepseq ==1.4.*
, direct-sqlcipher ==2.3.*
2021-12-18 13:59:06 +00:00
, directory ==1.3.*
, email-validate ==2.3.*
2021-12-18 13:59:06 +00:00
, exceptions ==0.10.*
, filepath ==1.4.*
, hspec ==2.7.*
, http-types ==0.12.*
, memory ==0.15.*
2021-12-18 13:59:06 +00:00
, mtl ==2.2.*
, network ==3.1.*
, optparse-applicative >=0.15 && <0.17
2021-12-18 13:59:06 +00:00
, process ==1.6.*
2022-08-18 11:35:31 +04:00
, random >=1.1 && <1.3
, record-hasfield ==1.0.*
, silently ==1.2.*
2021-12-18 13:59:06 +00:00
, simple-logger ==0.1.*
, simplex-chat
, simplexmq >=5.0
, socks ==0.6.*
, sqlcipher-simple ==0.4.*
2021-12-18 13:59:06 +00:00
, stm ==2.5.*
, template-haskell ==2.16.*
2021-12-18 13:59:06 +00:00
, terminal ==0.2.*
, text ==1.2.*
, time ==1.9.*
, unliftio ==0.2.*
, unliftio-core ==0.2.*
, zip ==1.7.*
2021-12-18 13:59:06 +00:00
default-language: Haskell2010
if flag(swift)
cpp-options: -DswiftJSON