Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjhih committed Jul 14, 2015
1 parent efaa088 commit e0c4907
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: android
jdk:
- oraclejdk7
android:
components:
- build-tools-22.0.1
- android-22
- extra-android-support
- extra-android-m2repository
licenses:
- '.+'

before_install:
- export JAVA7_HOME=/usr/lib/jvm/java-7-oracle
- export JAVA_HOME=$JAVA7_HOME
script:
- ./gradlew clean assemble || ./gradlew --refresh-dependencies clean assemble
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# json2notification

[![Download](https://api.bintray.com/packages/8tory/maven/json2notification/images/download.svg) ](https://bintray.com/8tory/maven/json2notification/_latestVersion)
[![JitPack](https://img.shields.io/github/tag/8tory/json2notification.svg?label=JitPack)](https://jitpack.io/#8tory/json2notification)
[![Build Status](https://travis-ci.org/8tory/json2notification.svg)](https://travis-ci.org/8tory/json2notification)
[![Join the chat at https://gitter.im/8tory/json2notification](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/8tory/json2notification?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

![](art/json2notification-2-square-blue-xxdpi.png)
![](art/json2notification-2-square-blue-xxhdpi.png)

JSON to Android Notification. This is very useful for push notification (GCM).
Convert JSON to Android Notification. This is very useful for push notification (GCM).

## Usage

Expand All @@ -28,7 +31,7 @@ dependencies {
}
```

via jcenter(in progress):
via jcenter:

```gradle
repositories {
Expand All @@ -48,30 +51,30 @@ dependencies {
"notification": {
"autoCancel": true,
"bigPictureStyle": {
"contentTitle": "Sample Big Picture Title",
"summaryText": "Sample big picture text",
"bigLargeIcon": "http://8tory.com/images/logo.png",
"bigPicture": "http://8tory.com/images/logo.png"
"contentTitle": "json2notification",
"summaryText": "JSON to Android Notification",
"bigLargeIcon": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png",
"bigPicture": "http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png"
},
"contentInfo": "sample info",
"contentInfo": "json2notification.Json2Notification.from(context).with(json).notification();",
"contentIntent": {
"getActivity": true,
"intent": {
"action": "android.intent.action.VIEW",
"uri": "https://play.google.com/store/apps/details?id=com.story8.android.gallery"
}
},
"contentText": "Sample content",
"contentTitle": "Sample Title",
"contentText": "JSON to Android Notification",
"contentTitle": "json2notification",
"deleteIntent": {
"getActivity": true,
"intent": {
"action": "android.intent.action.VIEW",
"uri": "https://play.google.com/store/apps/details?id=com.story8.android.gallery"
}
},
"largeIcon": "http://8tory.com/images/logo.png",
"smallIcon": "R.drawable.ic_stat_notify_story8",
"largeIcon": ""http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png"",
"smallIcon": "R.drawable.ic_launcher",
"sound": "content://settings/system/notification_sound"
}
}
Expand Down

0 comments on commit e0c4907

Please sign in to comment.