Question
How do I check the Mobile SDK version my project is using?
Answer
Depending on the way the Mobile SDK has been integrated into your project, the process may vary.
Android - Manual integration and Fabric integration
- Open up Android Studio project pane.
- Switch to Android.
- Open up Gradle Scripts > build.gradle.
- In dependencies, find the line:
implementation 'com.zendesk:support:x.x.x'
In the example, the Mobile SDK version is 2.3.1.
iOS - CocoaPods integration
You can check the version number by opening the Podfile.lock file. The file can be opened with any text editor.
Example
PODS:
- AnswerBotSDK (1.0.0-EAP1):
- AnswerBotSDK/CommonUI (= 1.0.0-EAP1)
- AnswerBotSDK/Providers (= 1.0.0-EAP1)
- AnswerBotSDK/SDK (= 1.0.0-EAP1)
- ZendeskSDK (= 2.2.0)
- AnswerBotSDK/CommonUI (1.0.0-EAP1):
- ZendeskSDK (= 2.2.0)
- AnswerBotSDK/Providers (1.0.0-EAP1):
- ZendeskSDK (= 2.2.0)
- AnswerBotSDK/SDK (1.0.0-EAP1):
- AnswerBotSDK/CommonUI
- AnswerBotSDK/Providers
- ZendeskSDK (= 2.2.0)
- ZendeskSDK (2.2.0):
- ZendeskSDK/Providers (= 2.2.0)
- ZendeskSDK/UI (= 2.2.0)
- ZendeskSDK/Core (2.2.0)
- ZendeskSDK/Providers (2.2.0):
- ZendeskSDK/Core
- ZendeskSDK/UI (2.2.0):
- ZendeskSDK/Core
- ZendeskSDK/Providers
DEPENDENCIES:
- AnswerBotSDK (= 1.0.0-EAP1)
- ZendeskSDK
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AnswerBotSDK
- ZendeskSDK
COCOAPODS: 1.6.0.beta.2
In the example, the Mobile SDK version is 2.2.0.
iOS - Manual integration
To find out the version number of each framework, navigate to the .framework file, locate and open the Info.plist file.
If you are using an IDE (Integrated Development Environment), such as Xcode, look for the value for the key Bundle versions string. Xcode automatically formats the file in a table.
If you are not using an IDE, the value to look for is CFBundleShortVersionString.
A GitHub repository including both CocoaPod, and manually integrated frameworks is available in the SupportSDKSamples.
For more information, see the developer documentation for Android and iOS SDKs.