https://github.com/objectbox/objectbox-swift-generator
Code generator and model.json builder for the ObjectBox database library. This is currently a quick fork off of Sourcery.
https://github.com/objectbox/objectbox-swift-generator
Last synced: 4 months ago
JSON representation
Code generator and model.json builder for the ObjectBox database library. This is currently a quick fork off of Sourcery.
- Host: GitHub
- URL: https://github.com/objectbox/objectbox-swift-generator
- Owner: objectbox
- License: mit
- Created: 2019-07-22T10:21:55.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2025-05-21T08:19:50.000Z (7 months ago)
- Last Synced: 2025-05-21T09:38:49.769Z (7 months ago)
- Language: Swift
- Size: 66.5 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: Funding.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ObjectBox Swift Generator
This is a fork of [sourcery](https://github.com/krzysztofzablocki/Sourcery/) modified to be used as the ObjectBox Swift
model file and code generator for the ObjectBox Swift SDK.
See the [Getting Started](https://swift.objectbox.io/getting-started) page on how to use the ObjectBox Swift SDK.
## Development
This is a Swift Package.
Recent changes are documented in the [changelog](/CHANGELOG.md).
[SwiftLint](https://github.com/realm/SwiftLint) is added as a build tool plugin (it runs as part of build).
```shell
# Build
swift build
# Run swiftlint from the command line
swift package plugin --allow-writing-to-package-directory swiftlint
# Run unit tests
swift test
```
Additional generator tests exist in the Swift SDK repository (look for "CodeGenTests"). They use the release artifact
discussed below.
## Releasing
An application archive for use by the Swift SDK is produced using `_build.command`.