Updated over a month ago
β [DEPRECATED]
β Support will be not provided
We offer the powerful SDK ( software development kit) that allows to setup advanced commenting and user engagement system into any Android application.
To setup Vuukle into your project just follow these steps:
1.1) add classpath for retro
lambdabuildscript {dependencies {classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta3'}}
1.2) add jitpackallprojects {repositories {jcenter()maven { url 'https://jitpack.io' }}}
1.1) add plugin
apply plugin: 'me.tatarka.retrolambda'
1.2) add library to project
dependencies {compile 'com.github.vuukle:vuukle_android_sdk:v1.0.1'}
1.3)set dataBinding trueandroid {...dataBinding {enabled true}}
1.4) set minSdkVersion: 16android {defaultConfig {...minSdkVersion 16}
private void initVuukleLibrary() {
new VuukleApiBuilder(this).setVuukleApiKey("6eaaf29c-d074-47bd-b462-92aaacdfcb5b").setVuukleHost("vuukle.com").setVuukleSecretKey("07115720-6848-11e5-9bc9-002590f371ee").build(); //- this method you need to init only ones.
new VuukleCommentsBuilder().setVuukleArticleId("00059").setTimeZone("Europe/Kiev").setArticleUrl("http://smalltester.esy.es/2017/01/20/article-6/").setVuukleTags("articleTag1, articleTag").setVuukleTitle("The title of the article").setPaginationToCount(2).setContext(this).setTopArticle(true).setFragmentId(R.id.container_for_vuukle_library).build(); //- this method you need to set for every article}
β setVuukleHost(HOST) β Set host for API. Host β this is the domain of the publisherβs site(e.g. indianexpress.com, thehindu.com etc.). For example: You are the owner of indianexpress.com and have own app where wantβs to setup this library, so when library installed on your app, You should paste domain for βhostβ property without http:// or https:// or www.
β setVuukleSecretKey(SECRET_KEY) β To get SECRET KEY / API KEY you need :
β setVuukleApiKey(API_KEY) β same as for SECRET KEY
β setVuukleArticleId(ARTICLEID) β every article have unique Article ID β setTimeZone(TIMEZONE) β set your timezone. https://en.wikipedia.org/wiki/List_of_tz_database_time_zones β setVuukleUrl(URL) β URL for your article (you will be able to share this link to facebook or to twitter) β setVuukleTagsTags(TAGS) Tags β You need to paste tags separated by comma for each article(like you have on website/domain), β setTopArticle(true) it will show top articles below the comments β setVuukleTitle(TITLE) same for TITLE β the title of the article on which library is now. β setPaginationToCount(paginationToCount) β this field in not required. You can set how many comments will be downloaded per one request. By default 10. β setContext(this) β put context; β setFragmentId(R.id.container) β Set fragment id from your .xml in which you want to put all comments
Additional features:
VuukleColorEditor.setReportButtonColor(Color.parseColor("#FFFFFF")); // set color for report buttonVuukleColorEditor.setLoginButtonBackgroundColor(Color.parseColor("#5F6065")); //set background color for login buttonVuukleColorEditor.setUserNameColor(Color.parseColor("#FFFFFF")); // set user name color