Skip to content

Commit

Permalink
Merge branch 'release/1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkil committed Oct 8, 2013
2 parents db1cafb + d5e9637 commit 1d14b72
Show file tree
Hide file tree
Showing 16 changed files with 176 additions and 81 deletions.
5 changes: 0 additions & 5 deletions .directory

This file was deleted.

50 changes: 23 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
# built application files
*.apk
*.ap_
#Android generated
bin
gen

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/
.gradle/
**/build/

# Local configuration file (sdk path, etc)
local.properties

library/.classpath
library/.project
sample/.classpath
sample/.project
#Eclipse
.project
.classpath
.settings

#IntelliJ IDEA
.idea
*.iml
*.ipr
*.iws
classes
gen-external-apklibs
atlassian-ide-plugin.xml
out

#Maven
target
release.properties
pom.xml.*

#Others
.directory
#Ant
build.xml
local.properties
proguard.cfg
proguard-project.txt

#Gradle
.gradle
build

#OSX
.DS_Store

#Personal Files
signing.properties
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ Change Log
==========


Version 1.1.0 *(2013-10-08)*
----------------------------

* Publish an aar file to Maven Central with Gradle.
* Fix: Add missing piece to the build.gradle.
* Fix: Updated the version of android-maven-plugin to build with the most recent Android SDK.


Version 1.0.1 *(2013-01-07)*
----------------------------

* Formatting of the source code
* Bugfix
* Formatting of the source code.
* Bugfix.


Version 1.0.0 *(2012-12-23)*
--------------------------
----------------------------

Initial release.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ To display the item you need the following code:
AppMsg.makeText(/*Activity*/, /*CharSequence*/, /*AppMsg.Style*/).show();
```

Gradle
------

Android-AppMsg Library is now pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.

``` xml
dependencies {
compile 'io.github.johnkil:android-appmsg:1.1'
}
```

Contribution
------------

Expand Down
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,22 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:0.4'
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}

allprojects {
version = VERSION_NAME
group = GROUP

repositories {
mavenCentral()
}
}

apply plugin: 'android-reporting'

14 changes: 14 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
VERSION_NAME=1.1-SNAPSHOT
VERSION_CODE=3
GROUP=io.github.johnkil

POM_DESCRIPTION=In-layout android notifications
POM_URL=http://johnkil.github.io/Android-AppMsg
POM_SCM_URL=https://github.com/johnkil/Android-AppMsg
POM_SCM_CONNECTION=scm:[email protected]:johnkil/Android-AppMsg.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:johnkil/Android-AppMsg.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=johnkil
POM_DEVELOPER_NAME=Evgeny Shishkin
8 changes: 5 additions & 3 deletions library/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devspark.appmsg"
android:versionCode="2"
android:versionName="1.0.1" >
android:versionCode="3"
android:versionName="1.1" >

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="16" />
android:targetSdkVersion="18" />

<application />

</manifest>
Binary file removed library/appmsg.jar
Binary file not shown.
17 changes: 5 additions & 12 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

apply plugin: 'android-library'

android {
compileSdkVersion 17
buildToolsVersion '17'
compileSdkVersion 18
buildToolsVersion '17.0.0'

sourceSets {
main {
Expand All @@ -22,3 +12,6 @@ android {
}
}
}

// Used to push in maven
// apply from: '../maven_push.gradle'
3 changes: 3 additions & 0 deletions library/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME=Android-AppMsg Library
POM_ARTIFACT_ID=android-appmsg
POM_PACKAGING=aar
20 changes: 0 additions & 20 deletions library/proguard-project.txt

This file was deleted.

2 changes: 1 addition & 1 deletion library/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-16
target=android-18
android.library=true
82 changes: 82 additions & 0 deletions maven_push.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apply plugin: 'maven'
apply plugin: 'signing'

def sonatypeRepositoryUrl
if (isReleaseBuild()) {
println 'RELEASE BUILD'
sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
} else {
println 'DEBUG BUILD'
sonatypeRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
}

afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

pom.artifactId = POM_ARTIFACT_ID

repository(url: sonatypeRepositoryUrl) {
authentication(userName: nexusUsername, password: nexusPassword)
}

pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
}

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.allJava
}

task androidJavadocsJar(type: Jar) {
classifier = 'javadoc'
//basename = artifact_id
from androidJavadocs.destinationDir
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
//basename = artifact_id
from android.sourceSets.main.allSource
}

artifacts {
//archives packageReleaseJar
archives androidSourcesJar
archives androidJavadocsJar
}
}
6 changes: 3 additions & 3 deletions sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devspark.appmsg.sample"
android:versionCode="2"
android:versionName="1.0.1" >
android:versionCode="3"
android:versionName="1.1" >

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="16" />
android:targetSdkVersion="18" />

<application
android:icon="@drawable/ic_launcher"
Expand Down
6 changes: 1 addition & 5 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ dependencies {
}

android {
compileSdkVersion 18
buildToolsVersion '17.0.0'
compileSdkVersion 17

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
2 changes: 1 addition & 1 deletion sample/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-16
target=android-18
android.library.reference.1=../../ActionBarSherlock/library
android.library.reference.2=../library

0 comments on commit 1d14b72

Please sign in to comment.