1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 13:57:10 +09:00

DROID-2244 Protocol | Enhancement | MW 0.32.0-rc6 (#903)

This commit is contained in:
Evgenii Kozlov 2024-02-22 17:25:05 +01:00 committed by uburoiubu
parent 294be4609d
commit a84bae531b
No known key found for this signature in database
GPG key ID: C8FB80E0A595FBB6
4 changed files with 28 additions and 3 deletions

View file

@ -1,5 +1,5 @@
[versions]
middlewareVersion = "v0.32.0-rc4"
middlewareVersion = "v0.32.0-rc6"
kotlinVersion = '1.8.22'
androidxCoreVersion = "1.12.0"

View file

@ -317,7 +317,7 @@ class MentionExtTest {
ObjectType.Layout.values().iterator().forEach { layout: ObjectType.Layout ->
when (layout) {
ObjectType.Layout.BASIC -> equalsMentionBase(mark, layout)
ObjectType.Layout.PROFILE -> equalsMentionProfile(mark, layout)
ObjectType.Layout.PROFILE, ObjectType.Layout.PARTICIPANT -> equalsMentionProfile(mark, layout)
ObjectType.Layout.TODO -> equalsMentionTodo(mark, layout)
ObjectType.Layout.SET -> equalsMentionNoIcon(mark, layout)
ObjectType.Layout.COLLECTION -> equalsMentionNoIcon(mark, layout)
@ -329,7 +329,6 @@ class MentionExtTest {
ObjectType.Layout.NOTE -> equalsMentionNoIcon(mark, layout)
ObjectType.Layout.SPACE -> equalsMentionNoIcon(mark, layout)
ObjectType.Layout.PDF -> equalsMentionNoIcon(mark, layout)
ObjectType.Layout.PARTICIPANT -> equalsMentionNoIcon(mark, layout)
else -> {}
}
}

View file

@ -26,6 +26,7 @@ message Rpc {
message App {
message GetVersion {
message Request {
option (no_auth) = true;
}
message Response {
Error error = 1;
@ -585,6 +586,7 @@ message Rpc {
bool disableLocalNetworkSync = 5; // Disable local network discovery
NetworkMode networkMode = 6; // optional, default is DefaultConfig
string networkCustomConfigFilePath = 7; // config path for the custom network mode }
bool preferYamuxTransport = 8; // optional, default is false, recommended in case of problems with QUIC transport
}
/**
* Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account
@ -704,6 +706,7 @@ message Rpc {
bool disableLocalNetworkSync = 3; // Disable local network discovery
NetworkMode networkMode = 4; // optional, default is DefaultConfig
string networkCustomConfigFilePath = 5; // config path for the custom network mode
bool preferYamuxTransport = 6; // optional, default is false, recommended in case of problems with QUIC transport
}
/**
@ -6283,6 +6286,26 @@ message Rpc {
}
}
}
message Test {
message Request {}
message Response {
Error error = 1;
anytype.model.Notification notification = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
INTERNAL_ERROR = 3;
}
}
}
}
}
message Broadcast {
message PayloadEvent {

View file

@ -964,6 +964,7 @@ message Notification {
Export export = 8;
GalleryImport galleryImport = 9;
RequestToJoin requestToJoin = 10;
Test test = 11;
}
string space = 7;
@ -999,6 +1000,8 @@ message Notification {
string identityIcon = 4;
}
message Test {}
enum Status {
Created = 0;
Shown = 1;