|
@@ -3,6 +3,7 @@ package com.fusi24.rfid.data.api;
|
3
|
3
|
import androidx.annotation.NonNull;
|
4
|
4
|
|
5
|
5
|
import com.fusi24.rfid.BuildConfig;
|
|
6
|
+import com.fusi24.rfid.config.Constant;
|
6
|
7
|
import com.google.gson.Gson;
|
7
|
8
|
import com.google.gson.GsonBuilder;
|
8
|
9
|
|
|
@@ -24,7 +25,7 @@ public class RestServiceFactory {
|
24
|
25
|
|
25
|
26
|
Retrofit retrofit = new Retrofit.Builder()
|
26
|
27
|
//.baseUrl(Constant.BASE_URL)
|
27
|
|
- .baseUrl("http://192.168.12.129:40002")
|
|
28
|
+ .baseUrl(Constant.BASE_URL)
|
28
|
29
|
.client(okHttp)
|
29
|
30
|
.addConverterFactory(GsonConverterFactory.create(gson))
|
30
|
31
|
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
|