Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ build
# IntelliJ IDEA
.idea
*.iml
gradle.properties

.DS_Store
.DS_Store
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.android.tools.build:gradle:0.12.+'
}
}

allprojects {
repositories {
mavenCentral()
}

allprojects {
group = 'org.michaelevans.chromahashview'
version = '0.1'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "1.0" according to line 11 of library/build.gradle (old commit)

}
}
2 changes: 1 addition & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'android'

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
buildToolsVersion "19.1.0"

defaultConfig {
minSdkVersion 14
Expand Down
23 changes: 6 additions & 17 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
# Project-wide Gradle settings.
bintray_api_base_url=https://api.bintray.com
bintray_repo=android-libs
bintray_package=org.michaelevans.chromahashview

# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# Please include these values at USER_HOME/.gradle/gradle.properties.
# bintray_username=you_user
# bintray_api_key=your_api_key
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=http\://services.gradle.org/distributions/gradle-1.10-all.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
58 changes: 54 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
apply plugin: 'android-library'
apply plugin: 'maven'


android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
buildToolsVersion "19.1.0"

defaultConfig {
minSdkVersion 5
targetSdkVersion 19
versionCode 1
versionName "1.0"
versionName version
}
buildTypes {
release {
Expand All @@ -18,6 +20,54 @@ android {
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// Publish to maven repository

task sourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.sourceFiles
}

artifacts {
archives sourcesJar
}

uploadArchives {
repositories {
mavenDeployer {

repository(url: "${bintray_api_base_url}/maven/${bintray_username}/${bintray_repo}/${bintray_package}") {
authentication(userName: bintray_username, password: bintray_api_key)
}
pom.project {
artifactId 'ChromeHashView'
name 'ChromeHashView'
packaging 'jar'
description 'Chroma-Hash is a concept for visualizing secure text input using ambient color bars concept. This library is the Android port'
url 'https://github.com/MichaelEvans/ChromaHashView'
inceptionYear 2014

scm {
url 'git@github.com:MichaelEvans/ChromaHashView.git'
connection 'git@github.com:MichaelEvans/ChromaHashView.git'
developerConnection 'git@github.com:MichaelEvans/ChromaHashView.git'
}

licenses {
license {
name 'Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}

developers {
developer {
id 'MichaelEvans'
name 'Michael Evans'
email ''
}
}
}
}
}
}