Package com.meawallet.mcd
Class MeaCardData.Configuration
java.lang.Object
com.meawallet.mcd.MeaCardData.Configuration
- Enclosing class:
- MeaCardData
MCD SDK configuration information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns build type of the SDK.static String
hash()
Returns hash of the loaded configuration.static void
loadConfig
(String configFileName) Loads custom configuration file.static int
Returns version code of the SDK.static String
Returns version name of the SDK.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
versionCode
public static int versionCode()Returns version code of the SDK.- Returns:
- Version code as int.
-
versionName
Returns version name of the SDK. Example: "mcd-mea-test-1.0.0-6"- Returns:
- Version name as String.
-
buildType
Returns build type of the SDK. Possible values: "debug" or "release".- Returns:
- Build type of the package as String.
-
loadConfig
Loads custom configuration file.- Parameters:
configFileName
- file name in the `raw` folder or path to file on the Application's private internal storage.- Throws:
McdException
- UseMcdException.getMcdError()
()} to get error object with error code and error description.
-
hash
Returns hash of the loaded configuration.- Returns:
- hash of the loaded configuration or an empty string when configuration is not loaded.
-