Skip to content

Commit 8f19cd0

Browse files
committed
close #15
1 parent db1cafb commit 8f19cd0

11 files changed

+149
-69
lines changed

.directory

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitignore

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
1-
# built application files
2-
*.apk
3-
*.ap_
1+
#Android generated
2+
bin
3+
gen
44

5-
# files for the dex VM
6-
*.dex
7-
8-
# Java class files
9-
*.class
10-
11-
# generated files
12-
bin/
13-
gen/
14-
.gradle/
15-
**/build/
16-
17-
# Local configuration file (sdk path, etc)
18-
local.properties
19-
20-
library/.classpath
21-
library/.project
22-
sample/.classpath
23-
sample/.project
5+
#Eclipse
6+
.project
7+
.classpath
8+
.settings
249

2510
#IntelliJ IDEA
2611
.idea
2712
*.iml
2813
*.ipr
2914
*.iws
30-
classes
31-
gen-external-apklibs
32-
atlassian-ide-plugin.xml
15+
out
3316

3417
#Maven
3518
target
3619
release.properties
3720
pom.xml.*
3821

39-
#Others
40-
.directory
22+
#Ant
23+
build.xml
24+
local.properties
25+
proguard.cfg
26+
proguard-project.txt
27+
28+
#Gradle
29+
.gradle
30+
build
31+
32+
#OSX
33+
.DS_Store
34+
35+
#Personal Files
36+
signing.properties

build.gradle

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'com.android.tools.build:gradle:0.4'
7+
classpath 'com.android.tools.build:gradle:0.5.+'
88
}
99
}
1010

11+
def isReleaseBuild() {
12+
return version.contains("SNAPSHOT") == false
13+
}
14+
15+
allprojects {
16+
version = VERSION_NAME
17+
group = GROUP
18+
19+
repositories {
20+
mavenCentral()
21+
}
22+
}
23+
24+
apply plugin: 'android-reporting'
25+

gradle.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
VERSION_NAME=1.1-SNAPSHOT
2+
VERSION_CODE=3
3+
GROUP=io.github.johnkil
4+
5+
POM_DESCRIPTION=In-layout android notifications
6+
POM_URL=http://johnkil.github.io/Android-AppMsg
7+
POM_SCM_URL=https://github.com/johnkil/Android-AppMsg
8+
POM_SCM_CONNECTION=scm:[email protected]:johnkil/Android-AppMsg.git
9+
POM_SCM_DEV_CONNECTION=scm:[email protected]:johnkil/Android-AppMsg.git
10+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
11+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
12+
POM_LICENCE_DIST=repo
13+
POM_DEVELOPER_ID=johnkil
14+
POM_DEVELOPER_NAME=Evgeny Shishkin

library/AndroidManifest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.devspark.appmsg"
3-
android:versionCode="2"
4-
android:versionName="1.0.1" >
3+
android:versionCode="3"
4+
android:versionName="1.1" >
55

66
<uses-sdk
77
android:minSdkVersion="4"
8-
android:targetSdkVersion="16" />
8+
android:targetSdkVersion="18" />
9+
10+
<application />
911

1012
</manifest>

library/appmsg.jar

-4.98 KB
Binary file not shown.

library/build.gradle

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
5-
6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:0.5.+'
8-
}
9-
}
10-
111
apply plugin: 'android-library'
122

133
android {
14-
compileSdkVersion 17
15-
buildToolsVersion '17'
4+
compileSdkVersion 18
5+
buildToolsVersion '17.0.0'
166

177
sourceSets {
188
main {
@@ -22,3 +12,6 @@ android {
2212
}
2313
}
2414
}
15+
16+
// Used to push in maven
17+
// apply from: '../maven_push.gradle'

library/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME=Android-AppMsg Library
2+
POM_ARTIFACT_ID=android-appmsg
3+
POM_PACKAGING=aar

library/proguard-project.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

library/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
14-
target=android-16
14+
target=android-18
1515
android.library=true

maven_push.gradle

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
apply plugin: 'maven'
2+
apply plugin: 'signing'
3+
4+
def sonatypeRepositoryUrl
5+
if (isReleaseBuild()) {
6+
println 'RELEASE BUILD'
7+
sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
8+
} else {
9+
println 'DEBUG BUILD'
10+
sonatypeRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
11+
}
12+
13+
afterEvaluate { project ->
14+
uploadArchives {
15+
repositories {
16+
mavenDeployer {
17+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
18+
19+
pom.artifactId = POM_ARTIFACT_ID
20+
21+
repository(url: sonatypeRepositoryUrl) {
22+
authentication(userName: nexusUsername, password: nexusPassword)
23+
}
24+
25+
pom.project {
26+
name POM_NAME
27+
packaging POM_PACKAGING
28+
description POM_DESCRIPTION
29+
url POM_URL
30+
31+
scm {
32+
url POM_SCM_URL
33+
connection POM_SCM_CONNECTION
34+
developerConnection POM_SCM_DEV_CONNECTION
35+
}
36+
37+
licenses {
38+
license {
39+
name POM_LICENCE_NAME
40+
url POM_LICENCE_URL
41+
distribution POM_LICENCE_DIST
42+
}
43+
}
44+
45+
developers {
46+
developer {
47+
id POM_DEVELOPER_ID
48+
name POM_DEVELOPER_NAME
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
56+
signing {
57+
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
58+
sign configurations.archives
59+
}
60+
61+
task androidJavadocs(type: Javadoc) {
62+
source = android.sourceSets.main.allJava
63+
}
64+
65+
task androidJavadocsJar(type: Jar) {
66+
classifier = 'javadoc'
67+
//basename = artifact_id
68+
from androidJavadocs.destinationDir
69+
}
70+
71+
task androidSourcesJar(type: Jar) {
72+
classifier = 'sources'
73+
//basename = artifact_id
74+
from android.sourceSets.main.allSource
75+
}
76+
77+
artifacts {
78+
//archives packageReleaseJar
79+
archives androidSourcesJar
80+
archives androidJavadocsJar
81+
}
82+
}

0 commit comments

Comments
 (0)