import Foundation
import UIKit
import Raygun4iOS

@objc(RaygunNativePlugin) class RaygunNativePlugin : CDVPlugin  {
    func startNativeRaygun(_ command: CDVInvokedUrlCommand) {
        let params: [String: Any] = command.arguments[0] as! [String: Any]
        let user: String = params["user"] as! String
        let apiKey: String = params["api"] as! String
        Raygun.sharedReporter(withApiKey: apiKey)
        (Raygun.sharedReporter() as AnyObject).identify(user)
    }

    func testCrash(_ command: CDVInvokedUrlCommand) {
        var crashWithMissingValueInDicitonary = Dictionary<Int,Int>()
        _ = crashWithMissingValueInDicitonary[1]!
    }
}

import Foundation
import UIKit
//import Raygun4iOS

@objc(RaygunNativePlugin) class RaygunNativePlugin : CDVPlugin  {
    func startNativeRaygun(_ command: CDVInvokedUrlCommand) {
//        let params: [String: Any] = command.arguments[0] as! [String: Any]
//        let user: String = params["user"] as! String
//        let apiKey: String = params["api"] as! String
//        Raygun.sharedReporter(withApiKey: apiKey)
//        (Raygun.sharedReporter() as AnyObject).identify(user)
    }

    func testCrash(_ command: CDVInvokedUrlCommand) {
        var crashWithMissingValueInDicitonary = Dictionary<Int,Int>()
        _ = crashWithMissingValueInDicitonary[1]!
    }
}

--- 
+++ 
@@ -1,14 +1,14 @@
 import Foundation
 import UIKit
-//import Raygun4iOS
+import Raygun4iOS
 
 @objc(RaygunNativePlugin) class RaygunNativePlugin : CDVPlugin  {
     func startNativeRaygun(_ command: CDVInvokedUrlCommand) {
-//        let params: [String: Any] = command.arguments[0] as! [String: Any]
-//        let user: String = params["user"] as! String
-//        let apiKey: String = params["api"] as! String
-//        Raygun.sharedReporter(withApiKey: apiKey)
-//        (Raygun.sharedReporter() as AnyObject).identify(user)
+        let params: [String: Any] = command.arguments[0] as! [String: Any]
+        let user: String = params["user"] as! String
+        let apiKey: String = params["api"] as! String
+        Raygun.sharedReporter(withApiKey: apiKey)
+        (Raygun.sharedReporter() as AnyObject).identify(user)
     }
 
     func testCrash(_ command: CDVInvokedUrlCommand) {
Revert "comment the native raygun provider for now"

This reverts commit 555c5979072bfad1f726e06376bf4812aa87393b.
