ToDo iOS sample app built with CouchbaseLite 2.5.0. The application has Android, DotNet, Objective-C and Swift versions.
- XCode 10.0
- Clone the project and checkout
feature/2.5branch.
$ git clone https://github.com/couchbaselabs/mobile-training-todo.git
$ git checkout feature/2.5
-
cd into the project:
android,dotnet,objcorswift. -
Download framework from here(from mobile section) for the respective platform.
-
Copy respective framework into the
Frameworksfolder.
CouchbaseLite.frameworkforobjcCouchbaseLiteSwift.frameworkforswift
- Open project.
- For iOS, open Todo.xcodeproj with your XCode. Select
Todoscheme and Run.
- Download Sync Gateway(from mobile section).
- Start Sync Gateway with the configuration file in the root of this project. ======= ToDo sample app.
- Clone the project.
$ git clone https://github.com/couchbaselabs/mobile-training-todo.git
-
Go into the folder based on your platform selection.
-
For the iOS platform (objc or swift), download the latest Couchbase Lite for Objectve-C or Swift. Copy
CouchbaseLite.frameworkfor Objective-C orCouchbaseLiteSwift.frameworkfor Swift into theFrameworksfolder. -
Depending on your selected platform, use an appropriate IDE (XCode for iOS, Android Studio for Android, and Xamarin Studio for .NET) to open the ToDo application project.
-
Run the application.
- Download the latest Sync Gateway.
- Start Sync Gateway with the the configuration from here as follows:
~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json
- From the AppDelegate in the XCode project, change kLoginFlowEnabled and kSyncEnabled variable to YES/true.
- From the AppDelegate in the XCode project, change the hostname of the kSyncGatewayUrl as needed.
- Rerun the Todo app.