|
|
@ -163,7 +163,7 @@ public class BaseActivity extends AppCompatActivity { |
|
|
|
|
|
|
|
|
|
|
|
protected void createTuskyApi() { |
|
|
|
protected void createTuskyApi() { |
|
|
|
Retrofit retrofit = new Retrofit.Builder() |
|
|
|
Retrofit retrofit = new Retrofit.Builder() |
|
|
|
.baseUrl("https://" + getString(R.string.tusky_api_domain) + ":8080") |
|
|
|
.baseUrl("https://" + getString(R.string.tusky_api_url)) |
|
|
|
.client(OkHttpUtils.getCompatibleClient()) |
|
|
|
.client(OkHttpUtils.getCompatibleClient()) |
|
|
|
.addConverterFactory(GsonConverterFactory.create()) |
|
|
|
.addConverterFactory(GsonConverterFactory.create()) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
@ -173,7 +173,7 @@ public class BaseActivity extends AppCompatActivity { |
|
|
|
|
|
|
|
|
|
|
|
protected void createPushNotificationClient() { |
|
|
|
protected void createPushNotificationClient() { |
|
|
|
pushNotificationClient = new PushNotificationClient(getApplicationContext(), |
|
|
|
pushNotificationClient = new PushNotificationClient(getApplicationContext(), |
|
|
|
"ssl://" + getString(R.string.tusky_api_domain) + ":8883"); |
|
|
|
"ssl://" + getString(R.string.tusky_api_url) + ":8883"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void redirectIfNotLoggedIn() { |
|
|
|
protected void redirectIfNotLoggedIn() { |
|
|
|