CocoaPods trunk is moving to be read-only. Read more on the blog, there are 8 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | Apache 2 |
| ReleasedLast Release | Jun 2016 |
Maintained by Rene Cacheaux.
| Depends on: | |
| Alamofire | ~> 3.0 |
| SDWebImage | ~> 3.7.3 |
JIRAMobileConnect is an iOS library that can be embedded into any iOS App to provide:
Before distributing your software you must include the contents of the LICENCES file JIRAMobileConnect/JMCClasses/LICENSES somewhere within you app along with the License information that you can find lower in this document.
"Carthage is intended to be the simplest way to add frameworks to your Cocoa application."
# Add to Cartfile:
git "https://bitbucket.org/atlassian/jiraconnect-apple.git" >= 1.2.6"CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects. It has over ten thousand libraries and can help you scale your projects elegantly."
# Add to Podfile:
pod "JIRAMobileConnect", "1.2.6"Instructions coming soon.
UIApplicationDelegate
Swift
import JIRAMobileConnectObjective-C
@import JIRAMobileConnectAdd the source below and:
Swift
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
JMC.sharedInstance().configureJiraConnect("https://connect.onjira.com/",
projectKey: "NERDS", apiKey: "591451a6-bc59-4ca9-8840-b67f8c1e440f")
return true
}Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[JMC sharedInstance]
configureJiraConnect:@"https://connect.onjira.com/"
projectKey:@"NERDS"
apiKey:@"591451a6-bc59-4ca9-8840-b67f8c1e440f"];
return YES;
}The JIRA instance at the URL you configured above, will need to have:
JIRA Mobile Connect enabled for your project:
'Administer Project' --> Your Project --> Settings --> JIRA Mobile Connect
Grant 'Create Issues' permission to jiraconnectuser. Enabling the JIRA Mobile Connect plugin, for a project will automatically create a user in JIRA which will be used for creating all feedback and crash reports. This user must have the 'Create Issues' permission for the project you enabled the plugin on. In other words, the jiraconnectuser must be in a Group, Project Role or added explicitly to the 'Create Issues' permission in the permission scheme for your project. See Administration --> --> Permissions
There are some other configuration options you can choose to set, if the defaults aren't what you require. To do this, explore the [JMC sharedInstance] configureXXX] methods.
JMCOptions
JMCOptions supports most of the advanced settings. This object gets passed to JMC when configure is called -- i.e. during applicationDidFinishLaunching.
JMCOptions lets you configure:
See JMC.h for all JMCOptions available.
JMCCustomDataSource
JMCCustomDataSource can be used to provide JIRA with extra data at runtime. The following is supported:
notifierEndFrame: used to control where the notifier is animated from and to )See JMCCustomDataSource.h for more information on these settings.
Provide a trigger mechanism to allow users to invoke the Feedback view. This typically goes on the 'About' or 'Info' view. (Or, if you are feeling creative: add it to the Shake Gesture as is done in the sample Angry Nerds App!)
For example:
- (IBAction)triggerCreateIssueView
{
[self presentModalViewController:[[JMC sharedInstance] viewController] animated:YES];
}The view controller returned by JMC shared instance's viewController is designed to be presented modally. [[JMC sharedInstance] viewController] will return the 'Create Issue' view until the user creates feedback. From then on, the 'Issue Inbox' view is displayed, from where the user can tap the 'Create' icon to send more feedback.
If your info view controller is in a UINavigationController stack, then you can use the following snippet to show both the feedback view, and the history view.
If you would like your users to always access the Create Issue view, then you can do so by presenting the [[JMC sharedInstance] feedbackViewController] directly. e.g. the following will present just the create issue ViewController programatically:
- (IBAction)triggerCreateIssueView
{
[self presentModalViewController:[[JMC sharedInstance] feedbackViewController] animated:YES];
}Use [[JMC sharedInstance] issuesViewController] to simply present the inbox directly.
You can test Crash Reporting by simply adding a CFRelease(NULL); statement somewhere in your code.
If you wish to enable JMC debug logging in the console, then define the JMC_DEBUG=1 Preprocessor Macro for your build target. In Xcode: Targets --> --> Preprocessor Macross --> Debug --> + --> JMC_DEBUG=1 .
The notification view that slides up when a notification is received, is added to the application's keyWindow.
(These have not been updated yet.)
There are sample iPhone and iPad Apps in the jiraconnect-apple/samples directory. AngryNerds and AngryNerds4iPad both demonstrate submitting feedback and crashes to the NERDS public project.
You will need access to a JIRA instance with the JIRA Mobile Connect Plugin installed. If you don't yet have access to a JIRA instance, you can use the NERDS project at http://connect.onjira.com for testing.
Use http://connect.onjira.com/browse/CONNECT to raise any issue with the JIRA Mobile Connect library.
If you have any questions regarding JIRA Mobile Connect, please ask on Atlassian Answers.
Copyright 2011-2015 Atlassian Software.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
plcrashreporter MIT Copyright (c) 2008-2009 Plausible Labs Cooperative, Inc.
crash-reporter Copyright (c) 2009 Andreas Linde & Kent Sutherland.
UIImageCategories Created by Trevor Harmon.
FMDB MIT Copyright (c) 2008 Flying Meat Inc.