https://github.com/getditto/demoapp-inventory
Inventory Demo App (iOS and Android)
https://github.com/getditto/demoapp-inventory
Last synced: 3 months ago
JSON representation
Inventory Demo App (iOS and Android)
- Host: GitHub
- URL: https://github.com/getditto/demoapp-inventory
- Owner: getditto
- License: mit
- Created: 2023-02-01T05:02:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-05T00:50:55.000Z (4 months ago)
- Last Synced: 2026-04-04T01:44:30.821Z (3 months ago)
- Language: Swift
- Size: 2.91 MB
- Stars: 4
- Watchers: 29
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Inventory
Demo app for showcasing Ditto's real-time sync and Conflict Resolution through the use of an inventory counter.
This inventory demo showcases the smoothness of Ditto's sync and conflict resolution, and how counters work with Ditto. You can also open up the Presence Viewer to see all existing devices and connections in the mesh.
Powered by [Ditto](https://www.ditto.live/).
For support, please contact Ditto Support ().
- [Demo Video](https://www.youtube.com/watch?v=1P2bKEJjdec)
- [iOS Download](https://apps.apple.com/us/app/ditto-inventory/id1449905935)
- [Android Download](https://play.google.com/store/apps/details?id=live.ditto.inventory)
## How to build the apps
### Environment Variables
1. Copy the `.env.template` file to `.env`.
- in a terminal: `cp .env.template .env`.
- in a macOS Finder window, press `โงโ.` (SHIFT+CMD+period) to show hidden files.
1. Save your App ID, Online Playground Token, Auth URL, and WebSocket URL in the `.env` file.
### iOS
1. Open the app project on Xcode and clean (Command + Shift + K)
2. Build (Command + B)
- This will generate `Env.swift`
### Android
Android looks at the same .env file that iOS does. When gradle restores packages, it should auto load in the information from the .env file to the BuildConfig. DittoManager then reads these values and uses them to connect to Ditto.
For more information, see the [build.gradle](Android/app/build.gradle#L20) file.
Compatible with Android Automotive OS (AAOS)
## License
MIT