• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

insanoid/SwiftyJSONAccelerator: macOS app to generate Swift 5 code for models fr ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

insanoid/SwiftyJSONAccelerator

开源软件地址:

https://github.com/insanoid/SwiftyJSONAccelerator

开源编程语言:

Swift 92.8%

开源软件介绍:

Logo

SwiftyJSONAccelerator - MacOS app Codeable Model file Generator For Swift 5

Build Status codecov

Version v2.2

Version v2.1

  • Tests are back - major parts of the code is covered.
  • Multiple file model generator is working again.

Version v2.0 (Swift 5)

  • Generates Swift 5 Codeable version along with CodingKeys.
  • Allows support to switch between Optional and non-optional variations.
  • Temporarily support for CLI and tests have been removed.
  • UI now supports Dark mode!

Installing & Building

  • Building:

    pod install
    

    You will also need to install SwiftFormat with brew install swiftformat and SwiftLint with brew install swiftlint.

  • Application Only: Download the .app (v2.2.0)

Features

Logo

A Swift model generator like the Objective-C JSONAccelerator. Formats and generates models for the given JSON and also breaks them into files making it easy to manage and share between several models.

  • The models that are generated depend Swift's inbuilt Codeable feature making encoding and decoding objects a thing of the past.
  • Allows to opt for either optional or non-optional variables.
  • Allows an array of a certain object type with different properties to be merged into a single model with all properties.
  • Click Load folder with JSON files + Config to generate all possible models for given folder with JSON files, note this needs a .config.json as this uses the CLI logic internally.

TODO

  • CLI tool needs to be recreated
  • Tests needed to be added again
  • Sparkle integration to deploy newer versions
  • Deployment using homebrew
  • Add support for Codextended.

Older Swift Versions

The older version of the project generating older swift code. Please keep in mind it is no longer supported.

Contributions and Requests

Any suggestions regarding code quality of the app, generated code's quality, Swift related improvements and pull requests are all very welcome. Please make sure you submit the pull request to the next release branch and not the master branch.

License

MIT License / Karthikeya Udupa




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Kubernetes发布时间:2022-07-09
下一篇:
bloopletech/json2html: JSON 2 HTML offers an easy way to visualize a string of J ...发布时间:2022-07-08
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap