Skip to content

Commit

Permalink
Merge pull request #143 from soygul/contacts
Browse files Browse the repository at this point in the history
Move sub projects to their own repos
  • Loading branch information
soygul authored Oct 3, 2016
2 parents 1432360 + 808c15d commit 98a1b85
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 386 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src/main/java/com/nbusy/app/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private Config(Optional<Env> env, Optional<String> serverUrl) {
this.serverUrl = "ws://127.0.0.1:3001"; // local test server
break;
default:
this.serverUrl = null; // determined by NBusy SDK
this.serverUrl = "wss://nbusy.herokuapp.com";
break;
}
}
Expand Down
13 changes: 5 additions & 8 deletions app/src/main/java/com/nbusy/app/InstanceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import com.nbusy.app.worker.Worker;
import com.nbusy.app.worker.eventbus.EventBus;
import com.nbusy.app.worker.eventbus.UIThreadExecutor;
import com.nbusy.sdk.Client;
import com.nbusy.sdk.ClientImpl;

import titan.client.Client;
import titan.client.ClientImpl;

/**
* Creator and keeper of all the instances.
Expand Down Expand Up @@ -85,12 +86,8 @@ public static synchronized Client getClient() {
}

private static synchronized Client getNewClientInstance() {
if (getConfig().serverUrl != null) {
// todo: we always have to use async client otherwise we'll get android.os.NetworkOnMainThreadException, which only happens on TLS mode for reasons unknown to me!
return new ClientImpl(getConfig().serverUrl, true);
} else {
return new ClientImpl(true);
}
// todo: we always have to use async client otherwise we'll get android.os.NetworkOnMainThreadException, which only happens on TLS mode for reasons unknown to me!
return new ClientImpl(getConfig().serverUrl, true);
}

public static synchronized EventBus getEventBus() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/nbusy/app/worker/ConnManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
import com.nbusy.app.services.ConnManagerService;
import com.nbusy.app.worker.eventbus.ChatsUpdatedEvent;
import com.nbusy.app.worker.eventbus.EventBus;
import com.nbusy.sdk.Client;

import java.util.List;
import java.util.Set;

import titan.client.Client;
import titan.client.callbacks.ConnCallbacks;
import titan.client.callbacks.JWTAuthCallback;
import titan.client.messages.MsgMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import android.util.Log;

import com.nbusy.app.data.UserProfile;
import com.nbusy.sdk.Client;

import java.util.concurrent.atomic.AtomicBoolean;

import titan.client.Client;
import titan.client.callbacks.ConnCallbacks;
import titan.client.callbacks.GoogleAuthCallback;
import titan.client.messages.MsgMessage;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/nbusy/app/worker/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
import com.nbusy.app.data.composite.ChatsAndMessages;
import com.nbusy.app.worker.eventbus.ChatsUpdatedEvent;
import com.nbusy.app.worker.eventbus.EventBus;
import com.nbusy.sdk.Client;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import titan.client.Client;
import titan.client.callbacks.SendMsgsCallback;
import titan.client.messages.MsgMessage;

Expand Down
35 changes: 0 additions & 35 deletions app/src/main/java/com/nbusy/capacitor/Container.java

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/java/com/nbusy/capacitor/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions app/src/main/java/com/nbusy/capacitor/Subscriber.java

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/java/com/nbusy/organizer/data/ApiClient.java

This file was deleted.

22 changes: 0 additions & 22 deletions app/src/main/java/com/nbusy/organizer/data/DataService.java

This file was deleted.

90 changes: 0 additions & 90 deletions app/src/main/java/com/nbusy/organizer/data/JsonClient.java

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/java/com/nbusy/organizer/enums/TaskState.java

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/java/com/nbusy/organizer/enums/TaskType.java

This file was deleted.

18 changes: 0 additions & 18 deletions app/src/main/java/com/nbusy/organizer/enums/ThreadMode.java

This file was deleted.

44 changes: 0 additions & 44 deletions app/src/main/java/com/nbusy/organizer/event/Event.java

This file was deleted.

28 changes: 0 additions & 28 deletions app/src/main/java/com/nbusy/organizer/event/EventBus.java

This file was deleted.

Loading

0 comments on commit 98a1b85

Please sign in to comment.