File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11[versions ]
2- gateway = " 2.1.0.16315 "
3- kotlin = " 1.8.10 "
4- coroutines = " 1.6.4 "
2+ gateway = " 2.1.0.16946 "
3+ kotlin = " 1.9.0 "
4+ coroutines = " 1.7.3 "
55serialization = " 1.5.0"
66okhttp = " 4.10.0"
77slf4j = " 2.0.3"
Original file line number Diff line number Diff line change 11package toolbox.gateway.sample
22
33import com.jetbrains.toolbox.gateway.EnvironmentVisibilityState
4- import com.jetbrains.toolbox.gateway.RemoteEnvironmentPropertiesConsumer
54import com.jetbrains.toolbox.gateway.RemoteProviderEnvironment
65import com.jetbrains.toolbox.gateway.environments.EnvironmentContentsView
6+ import com.jetbrains.toolbox.gateway.states.StateConsumer
77import java.util.concurrent.CompletableFuture
88
99class SampleRemoteEnvironment (
@@ -12,10 +12,10 @@ class SampleRemoteEnvironment(
1212 override fun getId (): String = environment.id
1313 override fun getName (): String = environment.name
1414
15- override fun addStateListener (consumer : RemoteEnvironmentPropertiesConsumer ) {
15+ override fun addStateListener (consumer : StateConsumer ) {
1616 }
1717
18- override fun removeStateListener (consumer : RemoteEnvironmentPropertiesConsumer ) {
18+ override fun removeStateListener (consumer : StateConsumer ) {
1919 }
2020
2121 override fun getContentsView (): CompletableFuture <EnvironmentContentsView > {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import com.jetbrains.toolbox.gateway.RemoteProvider
66import kotlinx.coroutines.*
77import kotlinx.serialization.json.Json
88import kotlinx.serialization.json.okio.decodeFromBufferedSource
9- import okhttp3.CacheControl
109import okhttp3.OkHttpClient
1110import okhttp3.Request
1211import org.slf4j.LoggerFactory
@@ -58,7 +57,7 @@ class SampleRemoteProvider(
5857 override fun canCreateNewEnvironments (): Boolean = true
5958 override fun isSingleEnvironment (): Boolean = false
6059
61- override fun setVisibilityState (visibilityState : ProviderVisibilityState ) {}
60+ override fun setVisible (visibilityState : ProviderVisibilityState ) {}
6261
6362 override fun addEnvironmentsListener (listener : RemoteEnvironmentConsumer ) {}
6463 override fun removeEnvironmentsListener (listener : RemoteEnvironmentConsumer ) {}
Original file line number Diff line number Diff line change 77 "vendor" : " Toolbox + Gateway" ,
88 "url" : " https://github.com/kropp/toolbox-gateway-sample" ,
99 "backgroundColors" : {
10- "start" : " #fdb60d" ,
11- "top" : " #ff318c" ,
12- "end" : " #6b57ff"
10+ "start" : { "hex" : " #fdb60d" , "opacity" : 0.6 } ,
11+ "top" : { "hex" : " #ff318c" , "opacity" : 0.6 } ,
12+ "end" : { "hex" : " #6b57ff" , "opacity" : 0.6 }
1313 }
1414 },
1515 "compatibleVersionRange" : {
You can’t perform that action at this time.
0 commit comments