Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import Foundation
|
||||
|
||||
/// Load the editable lesson from the same source shipped in the example tree.
|
||||
final class DevelopmentStarterSource {
|
||||
static func planet(withExtension ext: String) -> String? {
|
||||
for bundle in [Bundle.main, Bundle(for: DevelopmentStarterSource.self)] {
|
||||
if let file = bundle.url(forResource: "planet", withExtension: ext),
|
||||
let source = try? String(contentsOf: file, encoding: .utf8) {
|
||||
return source
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user