Ce document liste toutes les informations nécessaires afin de soumettre rapidement une application iOS sur iTunesConnect pour:
- Une nouvelle application
- Une mise à jour d'application
| <html> | |
| <head> | |
| <style> | |
| :root { | |
| color-scheme: light dark; | |
| } | |
| body { | |
| font-family: -apple-system; | |
| font-size: 10pt; |
| extension UserDefaults { | |
| func colorForKey(key: String) -> UIColor? { | |
| var colorReturnded: UIColor? | |
| if let colorData = data(forKey: key) { | |
| do { | |
| if let color = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(colorData) as? UIColor { | |
| colorReturnded = color | |
| } | |
| } catch { | |
| print("Error UserDefaults") |
| disabled_rules: # rule identifiers to exclude from running | |
| - variable_name | |
| - nesting | |
| - function_parameter_count | |
| opt_in_rules: # some rules are only opt-in | |
| - control_statement | |
| - empty_count | |
| - trailing_newline | |
| - colon | |
| - comma |
| import Foundation | |
| extension Date { | |
| func toString(format: String = "yyyy-MM-dd") -> String { | |
| let formatter = DateFormatter() | |
| formatter.dateStyle = .short | |
| formatter.dateFormat = format | |
| return formatter.string(from: self) | |
| } |
| ## How to hide API keys from github ## | |
| 1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
| retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
| 2. In the terminal, create a config.js file and open it up: | |
| touch config.js | |
| atom config.js |
| extension NSUserDefaults { | |
| func colorForKey(key: String) -> UIColor? { | |
| var color: UIColor? | |
| if let colorData = dataForKey(key) { | |
| color = NSKeyedUnarchiver.unarchiveObjectWithData(colorData) as? UIColor | |
| } | |
| return color | |
| } |