couchbase / couchbase-lite-android-ce

The community edition of couchbase lite for android
Apache License 2.0
9 stars 1 forks source link

Feature Request: Simplify importing CBL source from Github #7

Closed natgross closed 5 years ago

natgross commented 6 years ago

All of the instructions on
https://developer.couchbase.com/documentation/mobile/2.0/guides/couchbase-lite/tech-notes/index.html?language=java can currently be streamlined -and elimenated- to automatically be included in any of my projects (providing you have correct Gradle scripts) at the Github link as follows:

  1. In Android Studio choose 'New Project from Version Control -->Git' and supply the git url: https://github.com/couchbase/couchbase-lite-android.git

That's it! Nothing else to do!

This will create a CBL library project in Android Studio which of course allows editing of the source. 1b. Then in any other project/app, simply make that project dependent on the CBL github project! The same CBL lib project (with any custom modifications, breakpoints, etc) becomes available to any Android project I wish. 1c. Android Studio (3.x) offers to automatically install missing components, including ndk.

Currently, this almost works. But AS complains about it not being correctly setup for Gradle. So a little bit of [happy] Gradle at the aforementioned git url, and you have greatly simplified including (native) cbl sources, reusable, in any Android Studio project.

bmeike commented 5 years ago

Opened https://issues.couchbase.com/browse/CBL-30 to track this. Please follow it there.