forked from rockerhieu/emojicon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5ab852
commit 7e5f046
Showing
14 changed files
with
233 additions
and
217 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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
machine: | ||
environment: | ||
ANDROID_HOME: /usr/local/android-sdk-linux | ||
java: | ||
version: oraclejdk7 | ||
|
||
dependencies: | ||
pre: | ||
- echo y | android update sdk --no-ui --all --filter "tools,platform-tools" | ||
- echo y | android update sdk --no-ui --all --filter "android-20,build-tools-20.0.0" | ||
override: | ||
- ./gradlew dependencies | ||
|
||
test: | ||
override: | ||
- ./gradlew check | ||
|
||
post: | ||
- ls | ||
- ls app | ||
- ls app/build | ||
- mkdir $CIRCLE_ARTIFACTS/lint | ||
- mv app/build/outputs/lint-results* $CIRCLE_ARTIFACTS/lint | ||
|
||
deployment: | ||
staging: | ||
branch: develop | ||
commands: | ||
- ./gradlew assemble uploadArchives | ||
release: | ||
branch: master | ||
commands: | ||
- ./gradlew assemble uploadArchives |
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
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,6 +1,6 @@ | ||
#Wed Apr 10 15:27:10 PDT 2013 | ||
#Thu Jul 31 00:43:04 GMT+07:00 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip |
This file was deleted.
Oops, something went wrong.
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,11 +1,10 @@ | ||
apply plugin: 'android-library' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
apply plugin: 'com.android.library' | ||
apply from: 'gradle-mvn-push.gradle' | ||
|
||
ext.emojiconVersionName = "1.1-SNAPSHOT" | ||
android { | ||
compileSdkVersion 19 | ||
buildToolsVersion "19.0.1" | ||
compileSdkVersion 20 | ||
buildToolsVersion "20.0.0" | ||
|
||
defaultConfig { | ||
minSdkVersion 8 | ||
|
@@ -19,78 +18,5 @@ android { | |
} | ||
|
||
dependencies { | ||
compile 'com.android.support:support-v4:+' | ||
} | ||
|
||
group = 'com.rockerhieu.emojicon' | ||
version = emojiconVersionName | ||
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
repository(url: "file://$buildDir/aar") | ||
} | ||
|
||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: "$System.env.SONATYPE_USERNAME", password: "$System.env.SONATYPE_PASSWORD") | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: "$System.env.SONATYPE_USERNAME", password: "$System.env.SONATYPE_PASSWORD") | ||
} | ||
|
||
pom.project { | ||
artifactId = 'library' | ||
name = 'Emojicon' | ||
description 'A library to show emoji in TextView, EditText (like WhatsApp) for Android' | ||
url 'http://rockerhieu.com/emojicon' | ||
|
||
scm { | ||
url 'scm:[email protected]:rockerhieu/emojicon.git' | ||
connection 'scm:[email protected]:rockerhieu/emojicon.git' | ||
developerConnection 'scm:[email protected]:rockerhieu/emojicon.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'rockerhieu' | ||
name 'Hieu Rocker' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.allJava | ||
classifier = 'sources' | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
} | ||
|
||
signing { | ||
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
|
||
task getVersion << { | ||
println "$System.env.SONATYPE_USERNAME" | ||
println "$System.env.SONATYPE_PASSWORD" | ||
println version | ||
compile 'com.android.support:support-v4:19+' | ||
} |
Oops, something went wrong.