Skip to content

External dependencies support #252

@mehfuzh

Description

@mehfuzh

In Android Studio inside build.gradle, if I add the following lines for couchbase library and click grade sync icon from toolbar menu:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:design:22.2.1'
    compile 'com.couchbase.lite:couchbase-lite-android:1.1.0'
}

It will automatically download the necessary libraries for couchabse-lite.

NativeScript package.json should support similar external libraries via its dependencies tag. In this way, when a plugin is added to the project or nativeScript android project is being created, It will download the external library like Android Studio.

Resources:
http://rominirani.com/2014/08/19/gradle-tutorial-part-6-android-studio-gradle/
https://www.quora.com/What-is-the-difference-between-Gradle-Build-and-Gradle-Sync

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions