Skip to content

Commit

Permalink
Release to maven.
Browse files Browse the repository at this point in the history
  • Loading branch information
leolin310148 committed Mar 19, 2015
1 parent 8dc5e04 commit 27fa5b4
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 84 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.iml
build
.gradle
local.properties
local.properties
**/gradle.properties
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,34 @@ HTC Launcher<br/>
![ScreenShot](https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_htc.png)


Nova launcher with TeslaUnread,Apex launcher,Adw Launcher provided by <a href="https://github.com/notz"/>notz</a>
Nova launcher with TeslaUnread,Apex launcher,Adw Launcher provided by notz</br/></br/>

Solid launcher provided by MajeurAndroid


HOW TO USE
===================================
<br/>1. Download the ShortcutBadger-aar.zip and put it into your project.
<br/>2. Add the repositories path in your build.gradle.
<br/>1. Add mavenCentral to your build script.

repositories {
jcenter()
maven {
url 'file://'+project.rootDir+"/ShortcutBadger-aar"
}
mavenCentral()
}
<br/>3. Add dependencies for Shortcutbadger

<br/>2. Add dependencies for ShortcutBadger, it's available from maven now.

dependencies {
compile 'me.leolin:ShortcutBadger:1.0.3@aar'
compile 'me.leolin:ShortcutBadger:1.0.+@aar'
}

<br/>4. Add the codes below:
<br/>3. Add the codes below:

int badgeCount = 1;
try {
ShortcutBadger.setBadge(getApplicationContext(), badgeCount);
} catch (ShortcutBadgeException e) {
//handle the Exception
}
<br/>5. If you want to remove the badge, just set the badgeCount as 0.
<br/>4. If you want to remove the badge, just set the badgeCount as 0.
<br/>
<br/>
<br/>
Expand Down
9 changes: 1 addition & 8 deletions SampleApp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
apply plugin: 'android'

repositories {
jcenter()
maven {
url 'file://'+project.rootDir+"/ShortcutBadger-aar"
}
}

android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
Expand All @@ -24,5 +17,5 @@ android {


dependencies {
compile 'me.leolin:ShortcutBadger:1.0.3@aar'
compile 'me.leolin:ShortcutBadger:1.0.+@aar'
}
Binary file removed ShortcutBadger-aar-1.0.3.zip
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions ShortcutBadger-aar/me/leolin/ShortcutBadger/maven-metadata.xml

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 2 additions & 13 deletions ShortcutBadger/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apply plugin: 'android-library'
apply plugin: 'maven'
group = 'me.leolin'
version = '1.0.3'


apply plugin: 'com.android.library'
android {

compileSdkVersion 19
Expand All @@ -19,10 +14,4 @@ android {

}

uploadArchives {
repositories {
mavenDeployer {
repository(url: 'file://' + project.rootDir + '/ShortcutBadger-aar')
}
}
}
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.+'
Expand All @@ -13,14 +12,16 @@ buildscript {
subprojects{
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.+'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
}
repositories {
mavenCentral()
}

apply plugin: 'android-sdk-manager'
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-all.zip
19 changes: 0 additions & 19 deletions proguard-rules.pro

This file was deleted.

0 comments on commit 27fa5b4

Please sign in to comment.