mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
Thanks to @aboedo for the suggestion. ### Changes - Moved signature verification files and tests to new `Security` folder - Moved `CacheFetchPolicy` inside `Caching` - Split files inside `Misc` into subfolders
28 lines
626 B
Swift
28 lines
626 B
Swift
//
|
|
// Copyright RevenueCat Inc. All Rights Reserved.
|
|
//
|
|
// Licensed under the MIT License (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://opensource.org/licenses/MIT
|
|
//
|
|
// DateProvider.swift
|
|
//
|
|
// Created by Josh Holtz on 6/28/21.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class DateProvider {
|
|
|
|
func now() -> Date {
|
|
return Date()
|
|
}
|
|
|
|
}
|
|
|
|
// @unchecked because:
|
|
// - Class is not `final` (it's mocked). This implicitly makes subclasses `Sendable` even if they're not thread-safe.
|
|
extension DateProvider: @unchecked Sendable {}
|