mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 04:59:34 +01:00
Better cleanup
Signed-off-by: Mario Danic <mario@lovelyhq.com> # Conflicts: # app/build.gradle
This commit is contained in:
parent
28e24992fd
commit
e5cb10e386
@ -38,8 +38,13 @@ android {
|
|||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
versionCode 107
|
versionCode 107
|
||||||
versionName "6.2.0"
|
versionName "6.2.0"
|
||||||
|
=======
|
||||||
|
versionCode 108
|
||||||
|
versionName "6.1.6"
|
||||||
|
>>>>>>> cde40d6e... Better cleanup
|
||||||
|
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
renderscriptTargetApi 19
|
renderscriptTargetApi 19
|
||||||
|
@ -232,8 +232,7 @@ public interface NcApi {
|
|||||||
|
|
||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
@POST
|
@POST
|
||||||
Observable<Void> registerDeviceForNotificationsWithProxy(@Header("Authorization") String authorization,
|
Observable<Void> registerDeviceForNotificationsWithProxy(@Url String url,
|
||||||
@Url String url,
|
|
||||||
@FieldMap Map<String, String> fields);
|
@FieldMap Map<String, String> fields);
|
||||||
|
|
||||||
|
|
||||||
@ -244,8 +243,7 @@ public interface NcApi {
|
|||||||
- "userPublicKey": "{{userPublicKey}}"
|
- "userPublicKey": "{{userPublicKey}}"
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
Observable<Void> unregisterDeviceForNotificationsWithProxy(@Header("Authorization") String authorization,
|
Observable<Void> unregisterDeviceForNotificationsWithProxy(@Url String url,
|
||||||
@Url String url,
|
|
||||||
@QueryMap Map<String, String> fields);
|
@QueryMap Map<String, String> fields);
|
||||||
|
|
||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
|
@ -116,7 +116,7 @@ public class AccountRemovalWorker extends Worker {
|
|||||||
finalPushConfigurationState.getDeviceIdentifierSignature());
|
finalPushConfigurationState.getDeviceIdentifierSignature());
|
||||||
|
|
||||||
ncApi.unregisterDeviceForNotificationsWithProxy
|
ncApi.unregisterDeviceForNotificationsWithProxy
|
||||||
("", ApiUtils.getUrlPushProxy(), queryMap)
|
(ApiUtils.getUrlPushProxy(), queryMap)
|
||||||
.subscribe(new Observer<Void>() {
|
.subscribe(new Observer<Void>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSubscribe(Disposable d) {
|
public void onSubscribe(Disposable d) {
|
||||||
|
@ -269,7 +269,7 @@ public class PushUtils {
|
|||||||
.getData().getPublicKey());
|
.getData().getPublicKey());
|
||||||
|
|
||||||
|
|
||||||
ncApi.registerDeviceForNotificationsWithProxy("",
|
ncApi.registerDeviceForNotificationsWithProxy(
|
||||||
ApiUtils.getUrlPushProxy(), proxyMap)
|
ApiUtils.getUrlPushProxy(), proxyMap)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.subscribe(new Observer<Void>() {
|
.subscribe(new Observer<Void>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user