Skip to content

Commit

Permalink
Merge pull request #36 from Ticketmaster/ben-migrate-tms
Browse files Browse the repository at this point in the history
Migrate to TMS
  • Loading branch information
Ben Berry committed Jun 12, 2015
2 parents 93a87af + 1d0f1b7 commit 63b2f88
Show file tree
Hide file tree
Showing 57 changed files with 118 additions and 108 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Servos
------

[![Build Status](https://magnum.travis-ci.org/twotoasters/servos.svg?token=w2dnq6rpzQyKVx2ZAHkY&branch=master)](https://magnum.travis-ci.org/twotoasters/servos)
<!---
[![Build Status](https://magnum.travis-ci.org/ticketmaster/servos.svg?token=w2dnq6rpzQyKVx2ZAHkY&branch=master)](https://magnum.travis-ci.org/ticketmaster/servos)
--->

A repo for small utilities that we often use in Android development. They are conveniently broken up into small modules for à la carte use.

Expand Down Expand Up @@ -35,11 +37,11 @@ Download
--------

```groovy
compile 'com.twotoasters.servos:util:1.0.0'
compile 'com.twotoasters.servos:util-butterknife:1.0.0'
compile 'com.twotoasters.servos:util-otto:1.0.0'
compile 'com.twotoasters.servos:util-otto-retrofit:1.0.0'
compile 'com.twotoasters.servos:util-picasso:1.0.0'
compile 'com.ticketmaster.servos:util:1.0.0'
compile 'com.ticketmaster.servos:util-butterknife:1.0.0'
compile 'com.ticketmaster.servos:util-otto:1.0.0'
compile 'com.ticketmaster.servos:util-otto-retrofit:1.0.0'
compile 'com.ticketmaster.servos:util-picasso:1.0.0'
```

License
Expand Down
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
}

Expand All @@ -16,4 +17,6 @@ allprojects {
repositories {
jcenter()
}
}

apply plugin: 'android-sdk-manager'
}
14 changes: 7 additions & 7 deletions gradle-scripts/bintray-upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
*
* # Project properties - those in your project's gradle.properties file (usually in the root dir of your project repo)
* POM_DESCRIPTION=A short description of your Android library
* POM_URL=https://github.com/twotoasters/servos
* POM_SCM_URL=https://github.com/twotoasters/servos
* POM_SCM_CONNECTION=scm:[email protected]:twotoasters/servos.git
* POM_SCM_DEV_CONNECTION=scm:[email protected]:twotoasters/servos.git
* POM_URL=https://github.com/ticketmaster/servos
* POM_SCM_URL=https://github.com/ticketmaster/servos
* POM_SCM_CONNECTION=scm:[email protected]:ticketmaster/servos.git
* POM_SCM_DEV_CONNECTION=scm:[email protected]:ticketmaster/servos.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=your_github_id
* POM_DEVELOPER_NAME=your_developer_real_name
* BINTRAY_PROJECT_NAME=com.twotoasters.servos
* BINTRAY_PROJECT_NAME=com.ticketmaster.servos
* BINTRAY_PROJECT_LICENSE=Apache-2.0
* BINTRAY_SITE_URL=https://github.com/twotoasters/servos
* BINTRAY_GIT_URL=https://github.com/twotoasters/servos.git
* BINTRAY_SITE_URL=https://github.com/ticketmaster/servos
* BINTRAY_GIT_URL=https://github.com/ticketmaster/servos.git
*
* # Module properties - those in your module's gradle.properties file (usually in the your module's dir)
* POM_NAME=servos
Expand Down
26 changes: 13 additions & 13 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
VERSION_NAME=1.0.1-SNAPSHOT
VERSION_CODE=2
GROUP=com.twotoasters.servos
GROUP=com.ticketmaster.servos

POM_DESCRIPTION=Android library for shared helpers, views, and more
POM_URL=https://github.com/twotoasters/servos
POM_SCM_URL=https://github.com/twotoasters/servos
POM_SCM_CONNECTION=scm:[email protected]:twotoasters/servos.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:twotoasters/servos.git
POM_URL=https://github.com/ticketmaster/servos
POM_SCM_URL=https://github.com/ticketmaster/servos
POM_SCM_CONNECTION=scm:[email protected]:ticketmaster/servos.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:ticketmaster/servos.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=jbarr21
POM_DEVELOPER_NAME=James Barr
POM_DEVELOPER_ID=ticketmaster
POM_DEVELOPER_NAME=Ticketmaster Mobile Studio

ANDROID_BUILD_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.2
ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_SDK_VERSION=22
ANDROID_BUILD_TOOLS_VERSION=22.0.1
ANDROID_BUILD_TARGET_SDK_VERSION=22
ANDROID_BUILD_MIN_SDK_VERSION=14

BINTRAY_RELEASE_ENABLED=false
BINTRAY_PROJECT_NAME=com.twotoasters.servos
BINTRAY_PROJECT_NAME=com.ticketmaster.servos
BINTRAY_PROJECT_LICENSE=Apache-2.0
BINTRAY_SITE_URL=https://github.com/twotoasters/servos
BINTRAY_GIT_URL=https://github.com/twotoasters/servos.git
BINTRAY_SITE_URL=https://github.com/ticketmaster/servos
BINTRAY_GIT_URL=https://github.com/ticketmaster/servos.git
10 changes: 5 additions & 5 deletions test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.jcandksolutions.gradle:android-unit-test:2.0.+'
}
}

apply plugin: 'com.android.application'
Expand Down Expand Up @@ -46,7 +43,10 @@ android {
}
}

apply plugin: 'android-unit-test'
// Required to resolve conflict between our version and AssertJ's transitive dependency. Try removing and re-compiling test-app in the future.
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:22.2.0'
}

dependencies {
compile project(':util')
Expand All @@ -64,4 +64,4 @@ dependencies {
androidTestCompile 'junit:junit:4.10'
androidTestCompile 'org.mockito:mockito-all:1.9.5'
androidTestCompile 'org.robolectric:robolectric:2.4'
}
}
2 changes: 1 addition & 1 deletion test-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.twotoasters.servos.tests" >
package="com.ticketmaster.servos.tests" >

<application
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.tests;
package com.ticketmaster.servos.tests;

import android.app.Activity;
import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos;
package com.ticketmaster.servos;

import org.junit.runners.model.InitializationError;
import org.robolectric.RobolectricTestRunner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import android.content.Context;

import com.twotoasters.servos.ServosRobolectricTestRunner;
import com.ticketmaster.servos.ServosRobolectricTestRunner;

import org.junit.Before;
import org.junit.Ignore;
Expand All @@ -44,6 +44,8 @@ public void itShouldGetVersionName() {
assertThat(AppInfo.getVersionName(context)).isEqualTo("0.0.1");
}

// Ignored test since version number will keep changing
@Ignore
@Test
public void itShouldGetVersionCode() {
assertThat(AppInfo.getVersionCode(context)).isEqualTo(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import org.junit.Test;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import android.util.Pair;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import com.twotoasters.servos.ServosRobolectricTestRunner;
import com.ticketmaster.servos.ServosRobolectricTestRunner;

import org.junit.Before;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import android.content.Context;
import android.net.ConnectivityManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import com.twotoasters.servos.ServosRobolectricTestRunner;
import com.ticketmaster.servos.ServosRobolectricTestRunner;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import android.graphics.Rect;
import android.view.View;

import com.twotoasters.servos.ServosRobolectricTestRunner;
import com.twotoasters.servos.tests.MainActivity;
import com.twotoasters.servos.tests.R;
import com.twotoasters.servos.util.LayoutUtils.TouchAreaSizer;
import com.ticketmaster.servos.ServosRobolectricTestRunner;
import com.ticketmaster.servos.tests.MainActivity;
import com.ticketmaster.servos.tests.R;
import com.ticketmaster.servos.util.LayoutUtils.TouchAreaSizer;

import junit.framework.Assert;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util;
package com.ticketmaster.servos.util;

import android.widget.TextView;

import com.twotoasters.servos.ServosRobolectricTestRunner;
import com.twotoasters.servos.tests.MainActivity;
import com.ticketmaster.servos.ServosRobolectricTestRunner;
import com.ticketmaster.servos.tests.MainActivity;

import org.junit.Before;
import org.junit.Test;
Expand Down
4 changes: 2 additions & 2 deletions util-butterknife/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ android {
}

dependencies {
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.jakewharton:butterknife:6.1.0'
}

if (Boolean.parseBoolean(BINTRAY_RELEASE_ENABLED)) {
apply from: 'https://raw.githubusercontent.com/twotoasters/servos/master/gradle-scripts/bintray-upload.gradle'
apply from: '../gradle-scripts/bintray-upload.gradle'
}
2 changes: 1 addition & 1 deletion util-butterknife/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest package="com.twotoasters.servos.util.butterknife">
<manifest package="com.ticketmaster.servos.util.butterknife">
<application />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util.butterknife;
package com.ticketmaster.servos.util.butterknife;

import android.view.View;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util.butterknife;
package com.ticketmaster.servos.util.butterknife;

import android.view.View;

Expand Down
2 changes: 1 addition & 1 deletion util-otto-retrofit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ dependencies {
}

if (Boolean.parseBoolean(BINTRAY_RELEASE_ENABLED)) {
apply from: 'https://raw.githubusercontent.com/twotoasters/servos/master/gradle-scripts/bintray-upload.gradle'
apply from: '../gradle-scripts/bintray-upload.gradle'
}
2 changes: 1 addition & 1 deletion util-otto-retrofit/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest package="com.twotoasters.servos.util.ottoretrofit">
<manifest package="com.ticketmaster.servos.util.ottoretrofit">
<application />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util.ottoretrofit;
package com.ticketmaster.servos.util.ottoretrofit;

import com.twotoasters.servos.util.otto.BusProvider;
import com.ticketmaster.servos.util.otto.BusProvider;

import java.io.IOException;

Expand Down
4 changes: 2 additions & 2 deletions util-otto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ android {
}

dependencies {
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.squareup:otto:1.3.6'
}

if (Boolean.parseBoolean(BINTRAY_RELEASE_ENABLED)) {
apply from: 'https://raw.githubusercontent.com/twotoasters/servos/master/gradle-scripts/bintray-upload.gradle'
apply from: '../gradle-scripts/bintray-upload.gradle'
}
2 changes: 1 addition & 1 deletion util-otto/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest package="com.twotoasters.servos.util.otto">
<manifest package="com.ticketmaster.servos.util.otto">
<application />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util.otto;
package com.ticketmaster.servos.util.otto;

/**
* Maintains a singleton instance for obtaining the bus. Ideally this would be replaced with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.twotoasters.servos.util.otto;
package com.ticketmaster.servos.util.otto;

import android.os.Handler;
import android.os.Looper;
Expand Down Expand Up @@ -42,4 +42,4 @@ public void run() {
});
}
}
}
}
Loading

0 comments on commit 63b2f88

Please sign in to comment.