 import Social
 import Photos
 import NetworkFramework
+import Locksmith
 
 class ShareViewController: SLComposeServiceViewController, ReposSelectionTableViewControllerDelegate {
     

    var publicRepoNames  = [String]()
    var fullRepoName: String?
    let repoItem:SLComposeSheetConfigurationItem = SLComposeSheetConfigurationItem()
    
    override func presentationAnimationDidFinish() {
        let userDefaults = UserDefaults(suiteName: "group.justin999.gitap")
        guard let privateRepos = userDefaults?.value(forKey: "privateRepoNames") as? [String],
            let publicRepos = userDefaults?.value(forKey: "publicRepoNames") as? [String] else {
                let alert = UIAlertController(title: "No Repos found", message: "open Gitap app and authorize your GitHub Account.", preferredStyle: .alert)

                }

                if let data = imageData {
                    ImgurManager.shared.uploadImage(image: data) { [weak self] (uploadedData, error) in
                        guard let weakSelf = self else { return }
                        if let error = error {
                            weakSelf.showAlert(message: weakSelf.makeErrorMessage(message: "Failed to upload an image. Retry later.", error: error) , completionHandler: nil)
                            return
                        }
                        
