Skip to content

Commit

Permalink
Merge pull request #2 from percolate/jitpack
Browse files Browse the repository at this point in the history
Add Mentions to Jitpack
  • Loading branch information
brentwatson authored Oct 4, 2016
2 parents c2d6f19 + d968ad9 commit 382f3de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions Mentions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 17 additions & 5 deletions Mentions/mentions/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 {
Expand All @@ -29,6 +40,10 @@ android {
}
}

repositories {
mavenCentral()
}

jacoco {
version = '0.7.6.201602180812'
}
Expand Down Expand Up @@ -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()
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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/).
Expand Down

0 comments on commit 382f3de

Please sign in to comment.