How to set a push replication filter with REST api in Couchbase Lite?

On iOS you can define a filter function in a design document, as documented here. That page only talks about using filters for the changes feed, but you can also set a filter on a push replication.

That feature’s not implemented yet on Android, but I think it’s being added soon.