From d968ad9120f3739a3cae4ad5f32fe80718ce27a0 Mon Sep 17 00:00:00 2001 From: Mohit Sarveiya Date: Mon, 3 Oct 2016 22:24:45 -0400 Subject: [PATCH] Add library to Jitpack --- Mentions/build.gradle | 1 + Mentions/mentions/build.gradle | 22 +++++++++++++++++----- README.md | 8 ++++++++ 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Mentions/build.gradle b/Mentions/build.gradle index 6c9ac2e..a0e3ea5 100644 --- a/Mentions/build.gradle +++ b/Mentions/build.gradle @@ -8,6 +8,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:2.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/Mentions/mentions/build.gradle b/Mentions/mentions/build.gradle index 15fde57..663501c 100644 --- a/Mentions/mentions/build.gradle +++ b/Mentions/mentions/build.gradle @@ -1,6 +1,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'jacoco' +apply plugin: 'com.github.dcendents.android-maven' + +group 'com.percolate.mentions' +version '1.0-SNAPSHOT' android { compileSdkVersion 24 @@ -9,8 +13,15 @@ android { defaultConfig { minSdkVersion 16 targetSdkVersion 24 - versionCode 1 - versionName "1.0" + versionCode 10 + versionName "0.1.0" + } + packagingOptions { + exclude 'META-INF/LICENSE.txt' + exclude 'META-INF/NOTICE.txt' + exclude 'META-INF/LICENSE' + exclude 'META-INF/NOTICE' + exclude 'META-INF/DEPENDENCIES' } buildTypes { debug { @@ -29,6 +40,10 @@ android { } } +repositories { + mavenCentral() +} + jacoco { version = '0.7.6.201602180812' } @@ -67,6 +82,3 @@ dependencies { //Prevents class not found exception https://github.com/robolectric/robolectric/issues/1932 testCompile 'org.khronos:opengl-api:gl1.1-android-2.1_r1' } -repositories { - mavenCentral() -} diff --git a/README.md b/README.md index e26bbac..ec20909 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Circle CI](https://circleci.com/gh/percolate/mentions.svg?style=svg&circle-token=82fa2c37e303a6d5c44baa2e64199d6b06141aaf)](https://circleci.com/gh/percolate/mentions) [![codecov.io](http://codecov.io/github/percolate/mentions/coverage.svg?branch=master&token=U8DlJgcAzs)](http://codecov.io/github/percolate/mentions?branch=master) +[![](https://jitpack.io/v/percolate/mentions.svg)](https://jitpack.io/#percolate/mentions) This library provides a simple and customizable away to setup @ mentions on any EditText. Here's all it takes to get started. @@ -75,6 +76,13 @@ It will inform you on whether to show or hide a suggestions drop down. will provide you with a valid query that you could use to filter and search for mentions. For example, if the user types @Tes, the callback will receive "Tes" as the query. +# Adding to your application +Simply add Mentions as a gradle dependency. Distribution is done through jitpack.io. + +See https://jitpack.io/com/github/percolate/mentions/ for instructions + +[![](https://jitpack.io/v/percolate/mentions.svg)](https://jitpack.io/#percolate/mentions) + # Running Tests The library contains unit tests written in [Kotlin](https://kotlinlang.org/) with [Mockito](http://mockito.org/) and [Robolectric](http://robolectric.org/).