Store and exchange client minor versions.

These don't affect client visibility.
This commit is contained in:
akwizgran
2018-04-16 17:16:14 +01:00
parent 2e570ba50d
commit 05deaf42e3
18 changed files with 164 additions and 54 deletions

View File

@@ -22,6 +22,11 @@ public interface TransportPropertyManager {
*/
int MAJOR_VERSION = 0;
/**
* The current minor version of the transport property client.
*/
int MINOR_VERSION = 0;
/**
* Stores the given properties received while adding a contact - they will
* be superseded by any properties synced from the contact.

View File

@@ -25,7 +25,7 @@ public interface ClientVersioningManager {
* Registers a client that will be advertised to contacts. This method
* should be called before {@link LifecycleManager#startServices(String)}.
*/
void registerClient(ClientId clientId, int majorVersion);
void registerClient(ClientId clientId, int majorVersion, int minorVersion);
/**
* Registers a hook that will be called when the visibility of the given