Skip to content

getditto/demoapp-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

For support, please contact Ditto Support ([email protected]).

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.
  2. 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 file.

Compatible with Android Automotive OS (AAOS)

License

MIT

About

Inventory Demo App (iOS and Android)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7