Release to maven.
This commit is contained in:
parent
8dc5e04718
commit
27fa5b43ed
|
|
@ -2,4 +2,5 @@
|
||||||
*.iml
|
*.iml
|
||||||
build
|
build
|
||||||
.gradle
|
.gradle
|
||||||
local.properties
|
local.properties
|
||||||
|
**/gradle.properties
|
||||||
20
README.md
20
README.md
|
|
@ -21,28 +21,26 @@ HTC Launcher<br/>
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
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
|
HOW TO USE
|
||||||
===================================
|
===================================
|
||||||
<br/>1. Download the ShortcutBadger-aar.zip and put it into your project.
|
<br/>1. Add mavenCentral to your build script.
|
||||||
<br/>2. Add the repositories path in your build.gradle.
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
maven {
|
|
||||||
url 'file://'+project.rootDir+"/ShortcutBadger-aar"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
<br/>3. Add dependencies for Shortcutbadger
|
|
||||||
|
<br/>2. Add dependencies for ShortcutBadger, it's available from maven now.
|
||||||
|
|
||||||
dependencies {
|
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;
|
int badgeCount = 1;
|
||||||
try {
|
try {
|
||||||
|
|
@ -50,7 +48,7 @@ HOW TO USE
|
||||||
} catch (ShortcutBadgeException e) {
|
} catch (ShortcutBadgeException e) {
|
||||||
//handle the Exception
|
//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/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
apply plugin: 'android'
|
apply plugin: 'android'
|
||||||
|
|
||||||
repositories {
|
|
||||||
jcenter()
|
|
||||||
maven {
|
|
||||||
url 'file://'+project.rootDir+"/ShortcutBadger-aar"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 19
|
compileSdkVersion 19
|
||||||
buildToolsVersion "20.0.0"
|
buildToolsVersion "20.0.0"
|
||||||
|
|
@ -24,5 +17,5 @@ android {
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'me.leolin:ShortcutBadger:1.0.3@aar'
|
compile 'me.leolin:ShortcutBadger:1.0.+@aar'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
||||||
ee8f6331443e3ea26830f9e705d5251c
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
2f44ad503773983506d34f79f3ba120419e73ae1
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>me.leolin</groupId>
|
|
||||||
<artifactId>ShortcutBadger</artifactId>
|
|
||||||
<version>1.0.3</version>
|
|
||||||
<packaging>aar</packaging>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
9ee85a9301c732d1bce11cc80f9b5015
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
46d1890ad18cce96a5ac9108d49b8ad7a8e4f875
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<metadata>
|
|
||||||
<groupId>me.leolin</groupId>
|
|
||||||
<artifactId>ShortcutBadger</artifactId>
|
|
||||||
<version>1.0.3</version>
|
|
||||||
<versioning>
|
|
||||||
<versions>
|
|
||||||
<version>1.0.3</version>
|
|
||||||
</versions>
|
|
||||||
<lastUpdated>20150304021027</lastUpdated>
|
|
||||||
</versioning>
|
|
||||||
</metadata>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
7a43d19b9a0683a04b55544f0bca97c6
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
59df476ad64380e00b68ef5705d07da81623fa9e
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
apply plugin: 'android-library'
|
apply plugin: 'com.android.library'
|
||||||
apply plugin: 'maven'
|
|
||||||
group = 'me.leolin'
|
|
||||||
version = '1.0.3'
|
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
compileSdkVersion 19
|
compileSdkVersion 19
|
||||||
|
|
@ -19,10 +14,4 @@ android {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
|
||||||
repositories {
|
|
||||||
mavenDeployer {
|
|
||||||
repository(url: 'file://' + project.rootDir + '/ShortcutBadger-aar')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenCentral()
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.0.+'
|
classpath 'com.android.tools.build:gradle:1.0.+'
|
||||||
|
|
@ -13,14 +12,16 @@ buildscript {
|
||||||
subprojects{
|
subprojects{
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenCentral()
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.0.+'
|
classpath 'com.android.tools.build:gradle:1.0.+'
|
||||||
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
|
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'android-sdk-manager'
|
apply plugin: 'android-sdk-manager'
|
||||||
}
|
}
|
||||||
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
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
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
# Add project specific ProGuard rules here.
|
|
||||||
# By default, the flags in this file are appended to flags specified
|
|
||||||
# in /home/mik/sdk/android-sdk-linux/tools/proguard/proguard-android.txt
|
|
||||||
# You can edit the include path and order by changing the proguardFiles
|
|
||||||
# directive in build.gradle.
|
|
||||||
#
|
|
||||||
# For more details, see
|
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
||||||
|
|
||||||
# Add any project specific keep options here:
|
|
||||||
|
|
||||||
# If your project uses WebView with JS, uncomment the following
|
|
||||||
# and specify the fully qualified class name to the JavaScript interface
|
|
||||||
# class:
|
|
||||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
||||||
# public *;
|
|
||||||
#}
|
|
||||||
|
|
||||||
-dontshrink
|
|
||||||
Loading…
Reference in New Issue