mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-16 19:35:48 +01:00
22 lines
535 B
Swift
22 lines
535 B
Swift
//
|
|
// DefaultFeedsImporter.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Brent Simmons on 8/13/15.
|
|
// Copyright © 2015 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Account
|
|
import RSCore
|
|
|
|
struct DefaultFeedsImporter {
|
|
|
|
static func importDefaultFeeds(account: Account) {
|
|
appDelegate.logDebugMessage("Importing default feeds.")
|
|
let defaultFeedsURL = Bundle.main.url(forResource: "DefaultFeeds", withExtension: "opml")!
|
|
AccountManager.shared.defaultAccount.importOPML(defaultFeedsURL) { result in }
|
|
}
|
|
}
|
|
|