| Type | Action |
|---|---|
| App name | insert content |
| Version | insert content |
| Date of submission | insert content |
This form is to document the testing that has been done on each app
| # Connects gpg-agent to the OSX keychain via the brew-installed | |
| # pinentry program from GPGtools. This is the OSX 'magic sauce', | |
| # allowing the gpg key's passphrase to be stored in the login | |
| # keychain, enabling automatic key signing. | |
| pinentry-program /usr/local/bin/pinentry-mac |
| let file = "file.txt" //this is the file. we will write to and read from it | |
| let text = "some text" //just a text | |
| if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { | |
| let fileURL = dir.appendingPathComponent(file) | |
| //writing | |
| do { |
| let queue1 = DispatchQueue(label: "com.reejo.test", | |
| qos: .userInitiated, | |
| attributes: .concurrent, | |
| autoreleaseFrequency: .inherit, | |
| target: DispatchQueue.global()) | |
| queue1.async { | |
| print("welcome!") | |
| } | |
| extension UIColor { | |
| public convenience init(hex: UInt32) { | |
| let mask = 0x000000FF | |
| let r = Int(hex >> 16) & mask | |
| let g = Int(hex >> 8) & mask | |
| let b = Int(hex) & mask | |
| let red = CGFloat(r) / 255 |
| if let path = Bundle.main.path(forResource: "<#nameOfPlist#>", ofType: "<#plist#>"), | |
| let myDict = NSDictionary(contentsOfFile: path), | |
| let apiKey = myDict.value(forKey: "API_Key") as? String { | |
| print("API Key: \(apiKey)") | |
| } |
| class StringCache: NSCache<NSString, String> { | |
| static let shared = ImageCache() | |
| func set(_ text: String, for keyString: String) { | |
| self.setObject(text, forKey: keyString as NSString) | |
| } | |
| func textFrom(_ keyString: String?) -> String? { | |
| guard let keyString = keyString else { |
| /* | |
| See LICENSE folder for this sample’s licensing information. | |
| Abstract: | |
| `ImageCacheManager` serves as a simple image cache for caching media artwork from a remote server. | |
| */ | |
| import UIKit | |
| class ImageCacheManager { |
| // | |
| // CAPSScrollView.swift | |
| // Pods | |
| // | |
| // Created by Reejo Samuel on 12/6/16. | |
| // | |
| // | |
| import Foundation | |
| import UIKit |
| breakpoint set -n openURL | |
| breakpoint set -S openURL: |