Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from centrifugal/mavenpush-cleanup
Browse files Browse the repository at this point in the history
removed unused classes;
  • Loading branch information
SammyVimes committed May 10, 2016
2 parents 5923e6f + 79fbf0d commit 68743ef
Show file tree
Hide file tree
Showing 55 changed files with 173 additions and 1,222 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
to <b>repositories</b>
and
```
compile 'com.github.sammyvimes:acentrifugo:0.36-SNAPSHOT'
compile 'com.github.centrifugal:centrifuge-android:0.36-SNAPSHOT'
```
to <b>dependencies</b> in your <b>build.gradle</b>

Expand Down Expand Up @@ -46,11 +46,11 @@ android {
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.github.sammyvimes:acentrifugo:0.36-SNAPSHOT'
compile 'com.github.centrifugal:centrifuge-android:0.36-SNAPSHOT'
}
```

Have a look at example [application](https://github.com/SammyVimes/ACentrifugo/tree/dev/app)
Have a look at example [application](https://github.com/Centrifugal/centrifuge-android/tree/dev/app)


2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# centrifuge-android test android application
This android application is intended to be used with
test web application ([`:testwebapp`](https://github.com/SammyVimes/ACentrifugo/tree/master/testwebapp))
test web application ([`:testwebapp`](https://github.com/Centrifugal/centrifuge-android/tree/master/testwebapp))

### Usage
+ Run testwebapp
Expand Down
31 changes: 24 additions & 7 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
<option name="SELECTED_TEST_ARTIFACT" value="_unit_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugUnitTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugUnitTestSources" />
<afterSyncTasks>
<task>generateDebugSources</task>
<task>mockableAndroidJar</task>
<task>prepareDebugUnitTestDependencies</task>
</afterSyncTasks>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
Expand All @@ -38,34 +34,52 @@
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
Expand All @@ -76,17 +90,20 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-verifier" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-support" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/reload-dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/restart-dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
<excludeFolder url="file://$MODULE_DIR$/build/ivy.xml" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
Expand All @@ -96,8 +113,8 @@
<orderEntry type="library" exported="" name="okio-1.6.0" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
<orderEntry type="library" exported="" name="okhttp-3.2.0" level="project" />
<orderEntry type="library" exported="" name="Java-WebSocket-1.3.0" level="project" />
<orderEntry type="library" exported="" name="jsr305-3.0.1" level="project" />
<orderEntry type="library" exported="" name="Java-WebSocket-1.3.0" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="junit-4.12" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
<orderEntry type="library" exported="" name="design-23.1.0" level="project" />
Expand Down
15 changes: 8 additions & 7 deletions 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.centrifugal.centrifuge.android.test" >
<manifest package="com.centrifugal.centrifuge.android.test"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>

Expand All @@ -9,16 +9,17 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
android:theme="@style/AppTheme">

<activity
android:name="com.centrifugal.centrifuge.android.test.MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER" />

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
package com.centrifugal.centrifuge.android.test;

/**
* This file is part of ACentrifugo.
*
* ACentrifugo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ACentrifugo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with ACentrifugo. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.
*
* This file is part of centrifuge-android
* Created by Semyon on 08.05.2016.
*/
import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
tools:context="com.centrifugal.centrifuge.test.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">

<android.support.v7.widget.Toolbar
Expand Down
42 changes: 21 additions & 21 deletions app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/main"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.centrifugal.centrifuge.test.MainActivity">

<EditText
android:id="@+id/address"
android:hint="Web application address"
android:text="192.168.31.203:1337"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:hint="Web application address"
android:text="192.168.31.203:1337"/>

<EditText
android:id="@+id/user_name"
android:hint="User name"
android:text="User1337"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:hint="User name"
android:text="User1337"/>

<LinearLayout
android:weightSum="1"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">

<EditText
android:layout_weight="1"
android:id="@+id/channel_name"
android:hint="Channel name"
android:text="Test-channel"
android:layout_width="0dp"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="Channel name"
android:text="Test-channel"/>

<Button
android:id="@+id/subscribe"
android:text="Subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:text="Subscribe"/>

</LinearLayout>

<Button
android:id="@+id/login"
android:text="Login"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Login"/>

<ListView
android:id="@+id/messages"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-v21/styles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<resources>>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources>
<string name="app_name">ACentrifugo</string>
<string name="app_name">Centrifuge-android Test App</string>
<string name="title_activity_main">MainActivity</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>

</resources>
31 changes: 16 additions & 15 deletions gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,36 @@
apply plugin: 'maven'
apply plugin: 'signing'


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

//def getReleaseRepositoryUrl() {
// return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
// : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
//}
//
//def getSnapshotRepositoryUrl() {
// return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
// : "https://oss.sonatype.org/content/repositories/snapshots/"
//}

def getReleaseRepositoryUrl() {
Properties _properties = new Properties()
_properties.load(project.rootProject.file('local.properties').newDataInputStream())
return _properties.getProperty('RELEASE_REPOSITORY_URL') != null ? _properties.getProperty('RELEASE_REPOSITORY_URL')
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: ""
}

def getSnapshotRepositoryUrl() {
Properties _properties = new Properties()
_properties.load(project.rootProject.file('local.properties').newDataInputStream())
return _properties.getProperty('SNAPSHOT_REPOSITORY_URL') != null ? _properties.getProperty('SNAPSHOT_REPOSITORY_URL')
: "https://oss.sonatype.org/content/repositories/snapshots/"
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: ""
}

def getRepositoryUsername() {
Properties _properties = new Properties()
_properties.load(project.rootProject.file('local.properties').newDataInputStream())
return _properties.getProperty('NEXUS_USERNAME') != null ? _properties.getProperty('NEXUS_USERNAME') : ""
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}

def getRepositoryPassword() {
Properties _properties = new Properties()
_properties.load(project.rootProject.file('local.properties').newDataInputStream())
return _properties.getProperty('NEXUS_PASSWORD') != null ? _properties.getProperty('NEXUS_PASSWORD') : ""
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}

afterEvaluate { project ->
Expand Down
15 changes: 7 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
# org.gradle.parallel=true

VERSION_NAME=0.36-SNAPSHOT
#VERSION_NAME=0.34-DEV-SNAPSHOT
VERSION_CODE=9
GROUP=com.github.sammyvimes
VERSION_CODE=1
GROUP=com.github.centrifugal

POM_DESCRIPTION=Centrifugo android client service
POM_URL=https://github.com/SammyVimes/ACentrifugo
POM_SCM_URL=https://github.com/SammyVimes/ACentrifugo
POM_SCM_CONNECTION=scm:git@github.com:SammyVimes/ACentrifugo.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:SammyVimes/ACentrifugo.git
POM_DESCRIPTION=Centrifugo android client
POM_URL=https://github.com/centrifugal/centrifuge-android
POM_SCM_URL=https://github.com/centrifugal/centrifuge-android
POM_SCM_CONNECTION=scm:git@github.com:centrifugal/centrifuge-android.git
POM_SCM_DEV_CONNECTION=scm:git:ssh:@github.com:centrifugal/centrifuge-android.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
Expand Down
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
POM_NAME=ACentrifugo Library
POM_ARTIFACT_ID=acentrifugo
POM_NAME=Centrifuge-android Library
POM_ARTIFACT_ID=centrifuge-android
POM_PACKAGING=aar
Loading

0 comments on commit 68743ef

Please sign in to comment.