couchbase/couchbase-lite-android-core — pull request #19 by yaronyg (2013-12-05 21:30:14+00:00)
Title: A whole mess of issues

First, sorry. Because of the time it took to get the committer's agreement signed I ended up piling up a bunch of issues. Moving forward I will submit one pull request per issue as requested.

.gitignore - Just adding in more stuff to ignore

build.gradle - Set it up so that if you set a local property it will publish locally rather than remotely (wonderful for development!!!). Pulled out the javadocs command because it doesn't work with Android. And put in Wrapper so we can generate our own wrapper consistently. Finally, per our conversation, set up the build version via a Gradle property rather than a system environment variable.

gradle.properties - Set up to do a local only build, just comment out the property to publish remotely. And sets
version #.

gradlew, gradlew.bat & the gradle directory - Generated our wrapper so we now have a consistent build environment everywhere

CBLDatabase - Removed unused headers

CBLRequestAuthorization - Defines interface for object that can optionally be passed in to enable checking requests for authorization

CBLRouter - Added in hook for authorization. Did a little code clean up. Also put in check for favicon.ico which is a reserved top level name in Couch.

CBLURLConnection - Removed unused headers. Throw exceptions for unimplemented methods. Made some methods public that are needed by the authorization hook in order to set up an error response. Commented out a call to connect() on CBLURLConnection which doesn't do anything. And most importantly added in hooks to record and retrieve information about an underlying SSL session (if any). This is needed both for authorization and in the Listener for status checking, port finding, etc.