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.5
branch.
$ git clone https://github.com/couchbaselabs/mobile-training-todo.git
$ git checkout feature/2.5
-
cd into the project:
android
,dotnet
,objc
orswift
. -
Download framework from here(from mobile section) for the respective platform.
-
Copy respective framework into the
Frameworks
folder.
CouchbaseLite.framework
forobjc
CouchbaseLiteSwift.framework
forswift
- Open project.
- For iOS, open Todo.xcodeproj with your XCode. Select
Todo
scheme 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.framework
for Objective-C orCouchbaseLiteSwift.framework
for Swift into theFrameworks
folder. -
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.