-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from StepicOrg/release/1.32
Release/1.32
- Loading branch information
Showing
245 changed files
with
4,259 additions
and
1,263 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Sb/** filter=git-crypt diff=git-crypt | ||
cert/** filter=git-crypt diff=git-crypt | ||
fastlane/** filter=git-crypt diff=git-crypt | ||
StepicTests/TestInfo.plist filter=git-crypt diff=git-crypt | ||
.gitattributes !filter !diff |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// DefaultsContainer.swift | ||
// Stepic | ||
// | ||
// Created by Alexander Karpov on 07.04.17. | ||
// Copyright © 2017 Alex Karpov. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/* | ||
Used to store application data, generated by an app | ||
*/ | ||
class DefaultsContainer { | ||
private init() {} | ||
static let launch = LaunchDefaultsContainer() | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// LaunchDefaultsContainer.swift | ||
// Stepic | ||
// | ||
// Created by Alexander Karpov on 07.04.17. | ||
// Copyright © 2017 Alex Karpov. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
class LaunchDefaultsContainer { | ||
fileprivate let defaults = UserDefaults.standard | ||
|
||
fileprivate let didLaunchKey = "didLaunchKey" | ||
|
||
var didLaunch : Bool { | ||
get { | ||
if let did = defaults.value(forKey: didLaunchKey) as? Bool { | ||
return did | ||
} else { | ||
return false | ||
} | ||
} | ||
|
||
set(value) { | ||
defaults.set(value, forKey: didLaunchKey) | ||
defaults.synchronize() | ||
} | ||
} | ||
} |
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
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.