Optimized imports.
This commit is contained in:
parent
3fb6c009ba
commit
721c99c6d9
7 changed files with 9 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
package com.nutomic.ensichat.fragments
|
||||
|
||||
import android.content.{Intent, SharedPreferences}
|
||||
import android.content.SharedPreferences.OnSharedPreferenceChangeListener
|
||||
import android.content.{Intent, SharedPreferences}
|
||||
import android.os.Bundle
|
||||
import android.preference.{PreferenceFragment, PreferenceManager}
|
||||
import com.nutomic.ensichat.activities.EnsichatActivity
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.nutomic.ensichat.service
|
||||
|
||||
import android.content.{Intent, Context, BroadcastReceiver}
|
||||
import android.content.{BroadcastReceiver, Context, Intent}
|
||||
import android.preference.PreferenceManager
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.nutomic.ensichat.service
|
||||
|
||||
import android.content.{Context, Intent}
|
||||
import android.content.Intent
|
||||
import android.support.v4.content.LocalBroadcastManager
|
||||
import com.nutomic.ensichat.core.interfaces.CallbackInterface
|
||||
import com.nutomic.ensichat.core.{ConnectionHandler, Message}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.nutomic.ensichat.core
|
||||
|
||||
import java.io.File
|
||||
import java.util.Date
|
||||
|
||||
import com.nutomic.ensichat.core.body.{ConnectionInfo, MessageBody, UserInfo}
|
||||
|
|
|
@ -4,9 +4,10 @@ import java.io.IOException
|
|||
import java.net.{InetAddress, Socket}
|
||||
|
||||
import com.nutomic.ensichat.core.body.ConnectionInfo
|
||||
import com.nutomic.ensichat.core.interfaces.{SettingsInterface, Log, TransmissionInterface}
|
||||
import com.nutomic.ensichat.core.interfaces.{Log, SettingsInterface, TransmissionInterface}
|
||||
import com.nutomic.ensichat.core.util.FutureHelper
|
||||
import com.nutomic.ensichat.core.{Address, ConnectionHandler, Crypto, Message}
|
||||
|
||||
import scala.concurrent.ExecutionContext.Implicits.global
|
||||
|
||||
object InternetInterface {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
package com.nutomic.ensichat.core.internet
|
||||
|
||||
import java.io.{IOException, PrintStream}
|
||||
import java.net.{Socket, ServerSocket}
|
||||
import java.io.IOException
|
||||
import java.net.ServerSocket
|
||||
|
||||
import com.nutomic.ensichat.core.{Message, Crypto}
|
||||
import com.nutomic.ensichat.core.interfaces.Log
|
||||
|
||||
import scala.io.BufferedSource
|
||||
import com.nutomic.ensichat.core.{Crypto, Message}
|
||||
|
||||
class InternetServerThread(crypto: Crypto, onConnected: (InternetConnectionThread) => Unit,
|
||||
onDisconnected: (InternetConnectionThread) => Unit, onReceive: (Message, InternetConnectionThread) => Unit) extends Thread {
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.concurrent.TimeUnit
|
|||
import com.nutomic.ensichat.core.body.Text
|
||||
import com.nutomic.ensichat.core.interfaces.SettingsInterface._
|
||||
import com.nutomic.ensichat.core.interfaces.{CallbackInterface, Log, SettingsInterface}
|
||||
import com.nutomic.ensichat.core.{Message, ConnectionHandler, Crypto}
|
||||
import com.nutomic.ensichat.core.{ConnectionHandler, Crypto, Message}
|
||||
import scopt.OptionParser
|
||||
|
||||
object Main extends App with CallbackInterface {
|
||||
|
|
Reference in a new issue