Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import cats.implicits._
import com.fortysevendeg.smarthome.client.common._
import com.fortysevendeg.smarthome.client.common.Implicits._
import fs2.Stream
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

class ClientProgram[F[_]: ConcurrentEffect: ContextShift: Timer] extends ClientBoot[F] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import com.fortysevendeg.smarthome.client.common._
import com.fortysevendeg.smarthome.client.process.SmartHomeServiceApi
import com.fortysevendeg.smarthome.config.ConfigService
import fs2.Stream
import io.chrisdavenport.log4cats.Logger
import io.chrisdavenport.log4cats.slf4j.Slf4jLogger
import org.typelevel.log4cats.Logger
import org.typelevel.log4cats.slf4j.Slf4jLogger
import pureconfig.generic.auto._

abstract class ClientBoot[F[_]: ConcurrentEffect: ContextShift: Timer] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cats.effect.{Async, Timer}
import cats.syntax.flatMap._
import com.fortysevendeg.smarthome.protocol.messages._
import fs2.Stream
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

import scala.concurrent.duration._
import scala.math.BigDecimal.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.fortysevendeg.smarthome.client.common._
import com.fortysevendeg.smarthome.protocol.messages._
import com.fortysevendeg.smarthome.protocol.services._
import fs2.Stream
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger
import higherkindness.mu.rpc.ChannelForAddress
import higherkindness.mu.rpc.channel.{ManagedChannelInterpreter, UsePlaintext}
import io.grpc.{CallOptions, ManagedChannel}
Expand Down
2 changes: 1 addition & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object ProjectPlugin extends AutoPlugin {

lazy val V = new {
val catsEffect = "2.5.3"
val log4cats = "1.1.1"
val log4cats = "1.2.0"
val logbackClassic = "1.2.6"
val mu = "0.21.3"
val pureconfig = "0.14.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.fortysevendeg.smarthome.server.process._
import com.fortysevendeg.smarthome.protocol.services._
import com.permutive.pubsub.producer.PubsubProducer
import higherkindness.mu.rpc.server.{AddService, GrpcServer}
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

class ServerProgram[F[_]: ConcurrentEffect: Timer] extends ServerBoot[F] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import com.fortysevendeg.smarthome.server.common._
import com.permutive.pubsub.producer.{Model, PubsubProducer}
import com.permutive.pubsub.producer.encoder.MessageEncoder
import com.permutive.pubsub.producer.grpc.{GooglePubsubProducer, PubsubProducerConfig}
import io.chrisdavenport.log4cats.Logger
import io.chrisdavenport.log4cats.slf4j.Slf4jLogger
import org.typelevel.log4cats.Logger
import org.typelevel.log4cats.slf4j.Slf4jLogger
import io.circe.generic.auto._, io.circe.syntax._
import pureconfig.generic.auto._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cats.syntax.functor._
import com.fortysevendeg.smarthome.protocol.messages._
import com.fortysevendeg.smarthome.protocol.services._
import fs2._
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

class SmartHomeServiceHandler[F[_]: Async: Logger: Timer: TemperatureReader: SmartHomeSupervisor]
extends SmartHomeService[F] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.fortysevendeg.smarthome.protocol.messages._
import com.fortysevendeg.smarthome.server.common.Row
import com.permutive.pubsub.producer.Model.MessageId
import com.permutive.pubsub.producer.PubsubProducer
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

trait SmartHomeSupervisor[F[_]] {
def performAction(location: Location): F[List[SmartHomeAction]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cats.effect._
import cats.syntax.flatMap._
import com.fortysevendeg.smarthome.protocol.messages._
import fs2.Stream
import io.chrisdavenport.log4cats.Logger
import org.typelevel.log4cats.Logger

import scala.concurrent.duration._
import scala.math.BigDecimal.RoundingMode
Expand Down