2.1 KiB
Introduction
The SDK provides integrated support to automatically configure the Atlassian JIRA Mobile Connect (JMC). It will take the JIRA configuration that is associated to your app on HockeyApp and use that to configure JMC.
Requirements
The binary distribution of HockeySDK does not provide this integration. You need to follow the Installation & Setup Advanced Guide and activate the JMC integration as described below.
HowTo
-
Select
HockeySDK.xcodeproj
project in the Xcode navigator -
Select
HockeySDKLib
target -
Search for
Preprocessor Macros
-
Double tab in the
HockeySDKLib
column and add the following two values$(inherited) JIRA_MOBILE_CONNECT_SUPPORT_ENABLED=1
-
Setup JMC as described in the JMC instructions
-
Sign in to HockeyApp
-
Select the app and edit the apps bug tracker
-
Choose
JIRA
orJIRA5
. -
Enter your JIRA credentials. Make sure you supply the credentials for a user with admin rights, otherwise HockeyApp cannot fetch the JMC token from JIRA.
-
Download the latest JMC client file: https://bitbucket.org/atlassian/jiraconnect-ios/downloads
-
Unzip the file and move the folder into your project directory.
-
Drag & drop the JMC folder from your project directory to your Xcode project. Select
Create groups for any added folders
and set the checkmark for your target. Then clickFinish
. -
The class
BITHockeyManager
automatically fetches the API token and project key for JMC from HockeyApp, so you don't need to adjust the configuration in your AppDelegate.m file. The only thing you need to do is find a place in your UI to open the feedback view, such as a button and table view cell. You can then open the feedback view as follows:In SomeViewController.m: [self presentModalViewController:[[JMC sharedInstance] viewController] animated:YES];
-
You can customize the options of JMC like this:
In AppDelegate.m: [[[JMC sharedInstance] options] setBarStyle:UIBarStyleBlack];