diff options
author | pedroGitt <pedro.contreiras@amdocs.com> | 2016-10-27 18:47:14 +0200 |
---|---|---|
committer | pedroGitt <pedro.contreiras@amdocs.com> | 2016-10-27 18:47:14 +0200 |
commit | 724d9ea20b938630b81bbdfe5d0ce36d86cbd09e (patch) | |
tree | a862f6c38b8c9dd85ae4028875fdd66865e5d8c9 /java/android/OlmLibSdk/olm-sdk/src/main | |
parent | 1f1cbf2b3edff5b2f358e9170350566a564f80f4 (diff) |
Add new API to provide the SDK version
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk/src/main')
-rw-r--r-- | java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java index 21734dc..92fbe2b 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java +++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmManager.java @@ -24,6 +24,7 @@ import android.util.Log; */ public class OlmManager { private static final String LOG_TAG = "OlmManager"; + private static final String SDK_OLM_VERSION = "V0.1.0_1"; static { try { @@ -33,6 +34,12 @@ public class OlmManager { } } + public String getSdkOlmVersion() { + //Date currentDate = Calendar.getInstance().getTime(); + //String retVal = new SimpleDateFormat("yyyyMMdd_HH:mm:ss").format(currentDate); + return SDK_OLM_VERSION; + } + /** * Get the OLM lib version. * @return the lib version as a string |