mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-28 23:08:27 +00:00
flip condition for JSON encoding to make android (tagged objects) default (#319)
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ extra-source-files:
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
|
||||
if (os(linux))
|
||||
ghc-option: -DANDROID
|
||||
if (os(darwin))
|
||||
ghc-option: -DIOS
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
|
||||
@@ -98,10 +98,10 @@ enumJSON tagModifier =
|
||||
}
|
||||
|
||||
sumTypeJSON :: (String -> String) -> J.Options
|
||||
#if defined(ANDROID)
|
||||
sumTypeJSON = taggedObjectJSON
|
||||
#else
|
||||
#if defined(IOS)
|
||||
sumTypeJSON = singleFieldJSON
|
||||
#else
|
||||
sumTypeJSON = taggedObjectJSON
|
||||
#endif
|
||||
|
||||
taggedObjectJSON :: (String -> String) -> J.Options
|
||||
|
||||
Reference in New Issue
Block a user