File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/io/getstream/chat/java/services/framework Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ private Retrofit buildRetrofitClient() {
9595 .newBuilder ()
9696 .url (url )
9797 .header ("Content-Type" , "application/json" )
98- .header ("X-Stream-Client" , "stream-java-client-" + getSdkVersion () )
98+ .header ("X-Stream-Client" , "stream-java-client-" + sdkVersion )
9999 .header ("Stream-Auth-Type" , "jwt" )
100100 .header ("Authorization" , jwtToken (apiSecret ))
101101 .build ();
@@ -203,6 +203,8 @@ private static String getStreamChatBaseUrl(@NotNull Properties properties) {
203203 return url .toString ();
204204 }
205205
206+ private static final @ NotNull String sdkVersion = getSdkVersion ();
207+
206208 private static @ NotNull String getSdkVersion () {
207209 var clsLoader = DefaultClient .class .getClassLoader ();
208210 try (var inputStream = clsLoader .getResourceAsStream ("version.properties" )) {
You can’t perform that action at this time.
0 commit comments