-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from nispok/master
2.1.1
- Loading branch information
Showing
41 changed files
with
501 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
.DS_Store | ||
/build | ||
*.iml | ||
.navigation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Snackbar | ||
[![Build Status](https://travis-ci.org/wmora/snackbar.svg?branch=master)](https://travis-ci.org/wmora/snackbar) | ||
[![Build Status](https://travis-ci.org/nispok/snackbar.svg?branch=master)](https://travis-ci.org/nispok/snackbar) | ||
|
||
Library that implements <a href="http://www.google.com/design/spec/components/snackbars-and-toasts.html">Snackbars</a> from Google's <a href="http://www.google.com/design/spec/material-design/introduction.html">Material Design documentation</a>. | ||
|
||
|
@@ -9,7 +9,7 @@ Library that implements <a href="http://www.google.com/design/spec/components/sn | |
You can import the library from source as a module or grab via Gradle: | ||
<br /> | ||
```groovy | ||
compile 'com.williammora:snackbar:1.4.0' | ||
compile 'com.nispok:snackbar:2.1.1' | ||
``` | ||
## Usage | ||
<br /> | ||
|
@@ -79,23 +79,24 @@ Snackbar.with(getApplicationContext()) // context | |
}) // action button's ActionClickListener | ||
.show(this); // activity where it is displayed | ||
``` | ||
It uses [Roman Nurik's SwipeToDismiss sample code](https://github.com/romannurik/android-swipetodismiss) to implement the swipe-to-dimiss functionality. This is enabled by default. You can disable this if you don't want this functionality:<br /> | ||
It uses [Roman Nurik's SwipeToDismiss sample code](https://github.com/romannurik/android-swipetodismiss) to implement the swipe-to-dismiss functionality. This is enabled by default. You can disable this if you don't want this functionality:<br /> | ||
<br /> | ||
```java | ||
Snackbar.with(SnackbarSampleActivity.this) // context | ||
.text("Can't swipe this") // text to be displayed | ||
.swipeToDismiss(false) // disable swipe-to-dismiss functionality | ||
.show(this); // activity where it is displayed | ||
``` | ||
If you would like to add features to it or report any bugs, refer to the [issues](https://github.com/wmora/snackbar/issues) section.<br /><br /> | ||
If you would like to add features to it or report any bugs, refer to the [issues](https://github.com/nispok/snackbar/issues) section.<br /><br /> | ||
|
||
# Examples | ||
There's a sample app included in the project. [SnackbarSampleActivity](./sample/src/main/java/com/williammora/sample/snackbar/SnackbarSampleActivity.java) is where you want to start. | ||
There's a sample app included in the project. [SnackbarSampleActivity](./sample/src/main/java/com/nispok/sample/snackbar/SnackbarSampleActivity.java) is where you want to start. | ||
|
||
# Contributors | ||
+ William Mora - [@_williammora](https://twitter.com/_williammora) - [email protected] | ||
+ [William Mora](https://github.com/wmora) - [@_williammora](https://twitter.com/_williammora) - [email protected] | ||
+ [Lewis Deane](https://github.com/lewisjdeane) | ||
+ [Andrew Hughes](https://github.com/ashughes) | ||
+ [David Richardson](https://github.com/davidjrichardson) | ||
|
||
## License | ||
[MIT](./LICENSE) | ||
[MIT](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 20 | ||
buildToolsVersion "20.0.0" | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.1" | ||
|
||
defaultConfig { | ||
applicationId "com.williammora.snackbar" | ||
minSdkVersion 15 | ||
targetSdkVersion 20 | ||
versionCode 5 | ||
versionName "1.4.0" | ||
applicationId "com.nispok.snackbar" | ||
minSdkVersion 14 | ||
targetSdkVersion 21 | ||
versionCode 7 | ||
versionName "2.1.1" | ||
testInstrumentationRunner "android.test.InstrumentationTestRunner" | ||
testHandleProfiling true | ||
testFunctionalTest true | ||
} | ||
buildTypes { | ||
release { | ||
runProguard false | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
} | ||
|
||
apply from: 'maven-push.gradle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
POM_NAME=Snackbar | ||
POM_ARTIFACT_ID=snackbar | ||
POM_PACKAGING=aar | ||
GROUP=com.williammora | ||
VERSION_NAME=1.4.0 | ||
GROUP=com.nispok | ||
VERSION_NAME=2.1.1 | ||
|
||
POM_DESCRIPTION=Snackbar Android library | ||
POM_URL=https://github.com/wmora/snackbar | ||
POM_SCM_URL=https://github.com/wmora/snackbar | ||
POM_SCM_CONNECTION=scm:hg:https://github.com/wmora/snackbar | ||
POM_SCM_DEV_CONNECTION=scm:hg:https://github.com/wmora/snackbar | ||
POM_URL=https://github.com/nispok/snackbar | ||
POM_SCM_URL=https://github.com/nispok/snackbar | ||
POM_SCM_CONNECTION=scm:hg:https://github.com/nispok/snackbar | ||
POM_SCM_DEV_CONNECTION=scm:hg:https://github.com/nispok/snackbar | ||
POM_LICENCE_NAME=MIT License | ||
POM_LICENCE_URL=http://www.opensource.org/licenses/mit-license.php | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=wmora | ||
POM_DEVELOPER_NAME=William Mora | ||
POM_DEVELOPER_ID=nispok | ||
POM_DEVELOPER_NAME=Nispok | ||
|
||
SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots | ||
RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<manifest package="com.williammora.snackbar"> | ||
<manifest package="com.nispok.snackbar"> | ||
|
||
<application /> | ||
|
||
|
Oops, something went wrong.