Get meta information about the SDK
This method gets the related meta information of the SDK, such as version number, build number, and build type.
Android - Java
final GAHMetaInformation gahInformation = GAHCore.getSDKVersionInfo();
Log.d(TAG, gahInformation.getBuild());
Log.d(TAG, gahInformation.getName());
Log.d(TAG, gahInformation.getVersion());
Log.d(TAG, "Debug: " + gahInformation.isDebug());
iOS
Add the GAH.plist file from the Resources folder in the Risk Management.framework to Copy Bundle Resources in Build Phases of the Application targets. Only after adding the plist file to application, can meta information be obtained from the SDK.
Objective C
GAHMetaInformation *info = [GAHCore getSDKVersionInfo];
NSString *signalSdkName = [info getName];
NSString *build = [info getBuild];
NSString *version = [info getVersion];
NSString *debugStr = [info isDebugMode] ? @"True" : @"false";
Swift
var info: GAHMetaInformation? = GAHCore. getSDKVersionInfo ()
var signalSdkName: String? = info?.getName()
var build: String? = info?.getBuild()
var version: String? = info?.getVersion()
var debugStr: Bool = (info?.isDebugMode())!