This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
*/ | |
; Segment __TEXT | |
; Range: [0x100000000; 0x10028c000[ (2670592 bytes) | |
; File offset : [0; 2670592[ (2670592 bytes) | |
; Permissions: readable / executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct AppSecrets { | |
static let firebaseKey: String? = "QWERTYUIOPASDFGHJKLZXCVBNM" | |
static let googleMapsKey: String? = "ASDFGHJKLZXCVBNMQWERTYasdUI" | |
static let imageRendererKey: String? = "QWERTYUIDFGHJKCVBNM" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "dotgpg" | |
class SecretsHandler | |
@secret_output_path = "./" #Path to your secret sturct in the project | |
def decrypt | |
decrytped_secrets = decrypt_secrets() | |
secrets_dict = extract_secrets_from(decrypt_secrets) | |
inject_into_swift(secrets_dict) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let button = AchieveMeButton(title: LoginLocalization.signInSignUp.text, | |
normalColor: .white, | |
touchColor: .lightGray, | |
titleColor: UIColor.amBlue()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
func localized(bundle: Bundle = .main, tableName: String = "Localization") -> String { | |
return NSLocalizedString(self, tableName: tableName, value: "\(self)**", comment: "") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"module.login.termsAndCond" = "Terms And Cond"; | |
"module.login.signIn" = "SIGN IN"; | |
"module.login.signUp" = "SIGN UP"; | |
"module.login.signUpShort" = "SIGN UP"; | |
"module.login.email" = "Email"; | |
"module.login.password" = "Password"; | |
"module.login.repeatPassword" = "Repeat Password"; | |
"module.login.signUPWithFB" = "SIGN UP WITH FACEBOOK"; | |
"module.login.signInWithFB" = "SIGN IN WITH FACEBOOK"; | |
"module.login.selectAvatar" = "SELECT AVATAR"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum LoginLocalization: String, LocalizedStringRepresentable { | |
//WelcomeVC | |
case signInSignUp | |
//SignInSignUpVC | |
case termsAndCond, signIn, signUp, signUpShort, email, password, repeatPassword, | |
signInWithFB, signUPWithFB, selectAvatar, selectAnother | |
//SignInWalkthroughVC | |
case wCreateGoal, wSelectCategoryOfGoals, wTrackAchievements, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol LocalizedStringRepresentable { | |
var text: String { get } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CCFeature2Flow: Flow { | |
public var finish: (Flow) -> () = { _ in } | |
public var services: Services | |
public var navigation: UINavigationController? | |
public required init(services: Services, navigationVC: UINavigationController?) { | |
self.services = services | |
self.navigation = navigationVC | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Every child flow must implement Flow protocol | |
- func start: Starts the flow process, it usually decides what is | |
going to be presented | |
- var services: Property that contains all the services that are | |
being used in the app | |
- var finish: Is a closure that notifies parent Flow | |
that the child flow is finished. | |
- var currentVC: Returns view controller that is currently being displayed | |
*/ |
NewerOlder