Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 452 Bytes

File metadata and controls

10 lines (6 loc) · 452 Bytes

This allows you to use Javascript in map/reduce views, as opposed to native Java code (the default behavior for Couchbase-Lite).

To "activate" this, you will need to include this library and it's dependencies, as well as add the following code when you initialize Couchbase-Lite:

CBLView.setCompiler(new CBLJavaScriptViewCompiler());

See LiteServAndroid for an example where this is used.