зеркало из https://github.com/mozilla/glean.git
Use a siglneton through a public static and hide the initializer
This commit is contained in:
Родитель
0c6500d674
Коммит
beeee96bf0
|
@ -8,9 +8,11 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
open class Glean {
|
||||
public class Glean {
|
||||
public static let shared = Glean()
|
||||
|
||||
private var initialized: Bool = false
|
||||
public init() {
|
||||
private init() {
|
||||
self.initialized = true
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче