mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-11-15 20:27:24 +01:00
chore: Update UP and automatically re-register UP on startup
This commit is contained in:
parent
34b29e3e64
commit
90b0a43b44
@ -85,7 +85,7 @@ dependencies {
|
|||||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||||
implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
|
implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher
|
||||||
implementation 'com.github.UnifiedPush:android-connector:1.0.0-beta3' // needed for unifiedpush
|
implementation 'com.github.UnifiedPush:android-connector:1.1.0' // needed for unifiedpush
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file("google-services.json").exists()){
|
if(file("google-services.json").exists()){
|
||||||
|
|||||||
@ -318,6 +318,11 @@ class BackgroundPush {
|
|||||||
// make sure the endpoint is up-to-date etc.
|
// make sure the endpoint is up-to-date etc.
|
||||||
await _newUpEndpoint(
|
await _newUpEndpoint(
|
||||||
await store.getItem(SettingKeys.unifiedPushEndpoint));
|
await store.getItem(SettingKeys.unifiedPushEndpoint));
|
||||||
|
|
||||||
|
// re-register the app without a dialog. This should be safe,
|
||||||
|
// and allows recovering from app deletion in gotify, for instance
|
||||||
|
Logs().i('[Push] UnifiedPush registration found, re-registering');
|
||||||
|
await UnifiedPush.registerApp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,10 +14,7 @@ dependencies:
|
|||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/famedlysdk.git
|
url: https://gitlab.com/famedly/famedlysdk.git
|
||||||
ref: main
|
ref: main
|
||||||
unifiedpush:
|
unifiedpush: ^1.0.2
|
||||||
git:
|
|
||||||
url: https://github.com/UnifiedPush/flutter-connector.git
|
|
||||||
ref: main
|
|
||||||
fcm_shared_isolate:
|
fcm_shared_isolate:
|
||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
|
url: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user