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
| extension String { | |
| func deleteOccurences(of: String) -> String { | |
| return self.replacingOccurrences(of: of, with: "") | |
| } | |
| func deleteMarker() -> String { | |
| let markerBRange = self.range(of: "<") |
| /* | |
| In response of Tom Lokhort's article. | |
| A third alternative: alternative 2 under steroïds | |
| --- | |
| Source: http://tom.lokhorst.eu/2017/07/strongly-typed-identifiers-in-swift | |
| */ | |
| struct GenericIdentifier<T>: RawRepresentable, Hashable, Equatable { | |
| let rawValue: String |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import Foundation | |
| var str = "Hello, playground" | |
| protocol JSONRepresentable { | |
| var JSONRepresentation: AnyObject{ get } | |
| } |
| /* 1 - When your backend dev doesn't know how to REST*/ | |
| let backEndLOL: [[String: String]] = [["Key":"CAPACITY","Value":"323"],["Key":"rate","Value":"3.00"]] | |
| // Okay let's do his/her job | |
| extension Collection where Iterator.Element == [String: String] { | |
| var trueFuckingJson: [String: String] { | |
| let tupleArray: [(String, String)] = self.map{ dict -> [String: String] in |
| import Foundation | |
| import Result | |
| import RxSwift | |
| enum ResponseErrorType: Error, CustomStringConvertible { | |
| case technical | |
| case notFound | |
| case other(message: Array<String>) | |
| extension NSObject { | |
| private enum SetValuableErrorType: Error, CustomStringConvertible { | |
| case unknown(key: String, type: NSObject) | |
| var description: String { | |
| switch self { | |
| case .unknown(key: let k, type: let t): | |
| return "Unknown parameters \(k) for object typped \(String(describing:t))" | |
| } |
| /** | |
| * Copyright (c) 2017 Razeware LLC | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
| /// **From App to SDK(system)** | |
| /// | |
| /// Give informations thanks to user interaction | |
| /// Called by the app, when user interacts about routing or location stuff | |
| /// | |
| /// `[App].call(sdkSystemDatasource.function(params))` | |
| protocol PositionHelperDatasource { | |
| /// Call this datasourced-function when a routing or a re-position is asked by the user |
| enum Restaurant: RawRepresentable { | |
| typealias RawValue = Array<Int> | |
| case toto | |
| case tata | |
| var rawValue: Array<Int> { | |
| switch self { | |
| case .tata: |