Skip to content

Commit 5733aa2

Browse files
authored
Add Bintray support (#147)
* Add Bintray support Fix Javadoc for Java8 * Update build.gradle
1 parent 5db2c09 commit 5733aa2

File tree

3 files changed

+43
-32
lines changed

3 files changed

+43
-32
lines changed

ParseUI-Login/build.gradle

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ apply plugin: 'com.android.library'
2626
version = "0.0.1"
2727
group = 'com.parse'
2828

29+
ext {
30+
projName = 'ParseUI-Login-Android'
31+
projArtifact = 'parseui-login-android'
32+
projDescription = 'A library contains login user interfaces for building apps with the Parse Android SDK.'
33+
projGitlink = 'https://github.com/ParsePlatform/ParseUI-Android'
34+
}
35+
2936
dependencies {
3037
compile rootProject.ext.androidSupport
3138
compile rootProject.ext.parse
@@ -84,6 +91,29 @@ def isSnapshot = version.endsWith('-SNAPSHOT')
8491
def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : System.getenv('CI_NEXUS_USERNAME')
8592
def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : System.getenv('CI_NEXUS_PASSWORD')
8693

94+
def pomConfig = {
95+
scm {
96+
connection 'scm:git@github.com:ParsePlatform/ParseUI-Android.git'
97+
developerConnection 'scm:git@github.com:ParsePlatform/ParseUI-Android.git'
98+
url 'https://github.com/ParsePlatform/ParseUI-Android'
99+
}
100+
101+
licenses {
102+
license {
103+
name 'Platform License'
104+
url 'https://github.com/ParsePlatform/ParseUI-Android/blob/master/LICENSE'
105+
distribution 'repo'
106+
}
107+
}
108+
109+
developers {
110+
developer {
111+
id 'parse'
112+
name 'Parse'
113+
}
114+
}
115+
}
116+
87117
uploadArchives {
88118
repositories.mavenDeployer {
89119
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
@@ -96,34 +126,15 @@ uploadArchives {
96126
authentication(userName: ossrhUsername, password: ossrhPassword)
97127
}
98128

99-
pom.project {
100-
name 'ParseUI-Login-Android'
129+
def basePom = {
130+
name "ParseUI-Android"
101131
packaging 'aar'
102-
artifactId 'parseui-login-android'
103-
description 'A library contains login user interfaces for building apps with the Parse Android SDK.'
104-
url 'https://github.com/ParsePlatform/ParseUI-Android'
105-
106-
scm {
107-
connection 'scm:git@github.com:ParsePlatform/ParseUI-Android.git'
108-
developerConnection 'scm:git@github.com:ParsePlatform/ParseUI-Android.git'
109-
url 'https://github.com/ParsePlatform/ParseUI-Android'
110-
}
111-
112-
licenses {
113-
license {
114-
name 'Platform License'
115-
url 'https://github.com/ParsePlatform/ParseUI-Android/blob/master/LICENSE'
116-
distribution 'repo'
117-
}
118-
}
119-
120-
developers {
121-
developer {
122-
id 'parse'
123-
name 'Parse'
124-
}
125-
}
132+
artifactId projArtifact
133+
description projDescription
134+
url projGitlink
126135
}
136+
137+
pom.project basePom << pomConfig
127138
}
128139
}
129140

ParseUI-Login/src/main/java/com/parse/ui/ParseLoginActivity.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@
4242
* Facebook, and Twitter. If the user is new, they can also sign up. Under
4343
* normal operation, the user can only exit this activity by either successfully
4444
* logging in, or backing out of the login/signup flow.
45-
* <p/>
45+
* <p>
4646
* If your app allows Facebook/Twitter login, you must initialize
4747
* ParseFacebookUtils/ParseTwitterUtils prior to starting this activity.
48-
* <p/>
48+
* <p>
4949
* The caller activity should expect to receive one of the following resultCode
5050
* values:
51-
* <p/>
51+
* <p>
5252
* Activity.RESULT_OK: The user successfully completed login or sign-up, and we
5353
* were able to retrieve a valid ParseUser object. ParseUser.getCurrentUser()
5454
* should be populated.
55-
* <p/>
55+
* <p>
5656
* Activity.RESULT_CANCELLED: The user exited the login flow without logging in
5757
* or signing up (by clicking the back button). ParseUser.getCurrentUser()
5858
* should be null.
59-
* <p/>
59+
* <p>
6060
* You can customize this activity by:
6161
* <ul>
6262
* <li>Adding activity meta-data in your app's Manifest.xml. Please see

ParseUI-Login/src/main/java/com/parse/ui/ParseLoginConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public Bundle toBundle() {
310310
/**
311311
* Constructs a ParseLoginConfig object from a bundle. Unrecognized keys are
312312
* ignored.
313-
* <p/>
313+
* <p>
314314
* This can be used to pass an ParseLoginConfig object between activities, or
315315
* to read settings from an activity's meta-data in Manefest.xml.
316316
*

0 commit comments

Comments
 (0)