-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
4520f51 build.gradle fix to push the pom/aar to maven central c977755 update gradle wrapper to version 2.2 e0d1927 add central maven config 94d1dbb Merge branch 'release/3.7' into develop 8ff9413 fix AppLogViewerActivity when a log is message is null 7c208db Merge pull request #2264 from wordpress-mobile/issue/2222-theme-preview-title 9eb7273 new BlogUtils.getHostNameFromAccountMap function a80859d Theme live preview no longer changes the activity title 6186933 Photo viewer now uses low quality for the lo-res image 2eb9839 Simplified comments bfa7ecb Switched to quality enum which defaults to medium a2ce056 Added default quality param to photon 5a48a06 html encode log entries in AppLog.toHtml() c8a4d89 fix #103: retain menu drawer scroll position after switching activities c1e0778 Merge branch 'develop' into issue/985-make-sfactory-private fe1d125 fix build files for android studio 1.0 f7a2d48 Merge remote-tracking branch 'origin/develop' into issue/985-make-sfactory-private 72fe2b7 update support lib version for travis 0b03b71 Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into feature/material-appcompat 0f5751d Merge branch 'develop' into release/3.4 b68f755 remove unused code (refresh button) cb8321b fix #985: maks sFactory private - force injection in test module faae1d3 Merge branch 'release/3.4' into issue/1982-simperium-concurrency Conflicts: WordPress/src/main/java/org/wordpress/android/models/Note.java a0982d1 Updated build.gradle to specify com.android.support:appcompat-v7:21.0.2 3a0c45e Removed unsuccessful fix for #1982. b967d59 first step at replacing PreferenceActivity by a PreferenceFragment + ActionBarActivity 92d4e15 Merge branch 'develop' into feature/material-appcompat 7c8d5ab Merge branch 'release/3.4' into develop 1e499a6 Merge branch 'hotfix/3.3.1' into release/3.4 7a4a364 Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into feature/material-appcompat 5451df7 update subtrees to use build tools 21.1.1 4024637 rename PullToRefresh to SwipeToRefresh 0d8d414 remove unused viewClass in PTR constructor 2424201 fix circle spinner color style d392885 Return a copy of the JSONObject in getDiffableValue(). 106affa replace Chris Banes' PullToRefresh by the native SwipeToRefresh view 3108a36 Merge remote-tracking branch 'origin/develop' into feature/1961-add-mentions-to-commenting db25827 Merge branch 'develop' into issue/1958-round-avatars 2801610 Merge remote-tracking branch 'origin/develop' into feature/1961-add-mentions-to-commenting 6ac0248 Merge branch 'hotfix/3.3.1' into release/3.4 eb70e6f upgrade to android-gradle 0.14.0 9bc4ba6 Rounds all WPNetworkImageViews with `AVATAR` type. c2fd6c7 Initial commit adding mentions to notification comments 0a3da42 Added image spans directly instead of using Html.fromHtml(). git-subtree-dir: libs/utils git-subtree-split: 4520f51
- Loading branch information
Showing
17 changed files
with
244 additions
and
347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,89 @@ | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:0.12.+' | ||
classpath 'com.android.tools.build:gradle:1.0.0' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url 'http://wordpress-mobile.github.io/WordPress-Android' } | ||
} | ||
|
||
dependencies { | ||
compile 'commons-lang:commons-lang:2.6' | ||
compile 'com.mcxiaoke.volley:library:1.0.+' | ||
compile 'com.github.castorflex.smoothprogressbar:library:0.4.0' | ||
compile 'org.wordpress:pulltorefresh-main:0.9.7@aar' // org.wordpress version includes some fixes | ||
compile 'com.android.support:support-v13:19.1.0' | ||
compile 'com.mcxiaoke.volley:library:1.0.10' | ||
compile 'com.android.support:support-v13:21.0.3' | ||
} | ||
|
||
android { | ||
publishNonDefault true | ||
|
||
compileSdkVersion 19 | ||
buildToolsVersion "19.1.0" | ||
buildToolsVersion "21.1.1" | ||
|
||
defaultConfig { | ||
applicationId "org.wordpress.android.util" | ||
versionName "1.2.0" | ||
versionName "1.3.0" | ||
minSdkVersion 14 | ||
targetSdkVersion 19 | ||
} | ||
} | ||
|
||
version android.defaultConfig.versionName | ||
group = "org.wordpress" | ||
archivesBaseName = "utils" | ||
|
||
signing { | ||
required { | ||
has("release") && project.properties.containsKey("signing.keyId") && project.properties.containsKey("signing.secretKeyRingFile") | ||
} | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
def repo_url = "" | ||
if (project.hasProperty("repository")) { | ||
repo_url = project.repository | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'WordPress-Utils-Android' | ||
packaging 'aar' | ||
description 'Utils lib for WordPress-Android' | ||
url 'https://github.com/wordpress-mobile/WordPress-Utils-Android' | ||
scm { | ||
connection 'scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git' | ||
developerConnection 'scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git' | ||
url 'https://github.com/wordpress-mobile/WordPress-Utils-Android' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The MIT License (MIT)' | ||
url 'http://opensource.org/licenses/MIT' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'maxme' | ||
name 'Maxime Biais' | ||
email 'maxime@automattic.com' | ||
} | ||
} | ||
} | ||
repository(url: repo_url) | ||
pom.version = android.defaultConfig.versionName | ||
pom.groupId = "org.wordpress" | ||
pom.artifactId = "wordpress-utils" | ||
} | ||
} | ||
} |
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 +1,6 @@ | ||
repository=file:///Users/max/work/automattic/WordPress-Android-gh-pages/ | ||
ossrhUsername=hello | ||
ossrhPassword=world | ||
|
||
signing.keyId=byebye | ||
signing.password=secret | ||
signing.secretKeyRingFile=/home/user/secret.gpg |
16 changes: 16 additions & 0 deletions
16
WordPressUtils/src/main/java/org/wordpress/android/util/ActivityUtils.java
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,16 @@ | ||
package org.wordpress.android.util; | ||
|
||
import android.app.Activity; | ||
import android.content.Context; | ||
import android.view.inputmethod.InputMethodManager; | ||
|
||
public class ActivityUtils { | ||
public static void hideKeyboard(Activity activity) { | ||
if (activity != null && activity.getCurrentFocus() != null) { | ||
InputMethodManager inputManager = (InputMethodManager) activity.getSystemService( | ||
Context.INPUT_METHOD_SERVICE); | ||
inputManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), | ||
InputMethodManager.HIDE_NOT_ALWAYS); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.