开源软件名称(OpenSource Name): couchbaselabs/mobile-training-todo开源软件地址(OpenSource Url): https://github.com/couchbaselabs/mobile-training-todo开源编程语言(OpenSource Language):
C#
39.8%
开源软件介绍(OpenSource Introduction): ToDo Application
ToDo iOS sample app built with CouchbaseLite 2.5.0 .
The application has Android, DotNet, Objective-C and Swift versions.
Requirements
How to build and run?
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
or swift
.
Download framework from here (from mobile section) for the respective platform.
Copy respective framework into the Frameworks
folder.
CouchbaseLite.framework
for objc
CouchbaseLiteSwift.framework
for swift
Open project.
For iOS, open Todo.xcodeproj with your XCode. Select Todo
scheme and Run.
How to use the replication feature?
Download Sync Gateway (from mobile section).
Start Sync Gateway with the configuration file in the root of this project.
=======
ToDo sample app.
How to build and run?
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 or CouchbaseLiteSwift.framework
for Swift into the Frameworks
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.
How to use the replication feature?
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
iOS
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.
请发表评论