Skip to content

Commit

Permalink
Cleanup and testing for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Archdoog committed Oct 13, 2024
1 parent 7e3cfb1 commit 7f990b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let package = Package(
],
path: "apple/Sources/Valhalla",
resources: [
.copy("SupportData")
.process("SupportData")
]
),
.target(
Expand Down
8 changes: 4 additions & 4 deletions apple/Sources/Valhalla/Extensions/ValhallaConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ extension ValhallaConfig {
///
/// This can be used to manipulate select values as a var.
init() {
guard let configJsonURL = Bundle.module.url(forResource: "SupportData/default", withExtension: "json") else {
fatalError("ValhallaConfig SupportData/default.json config resource not found in module bundle.")
guard let configJsonURL = Bundle.module.url(forResource: "default", withExtension: "json") else {
fatalError("ValhallaConfig default.json config resource not found in module bundle.")
}

do {
Expand Down Expand Up @@ -68,8 +68,8 @@ extension ValhallaConfig {
}

static func loadDefault() -> ValhallaConfig {
guard let configJsonURL = Bundle.module.url(forResource: "SupportData/default", withExtension: "json") else {
fatalError("ValhallaConfig SupportData/default.json config resource not found in module bundle.")
guard let configJsonURL = Bundle.module.url(forResource: "default", withExtension: "json") else {
fatalError("ValhallaConfig default.json config resource not found in module bundle.")
}

do {
Expand Down
2 changes: 1 addition & 1 deletion apple/Sources/Valhalla/ValhallaFileManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ enum ValhallaFileManager {
/// Learn more see <https://github.com/HowardHinnant/date>
/// and <https://howardhinnant.github.io/date/tz.html#Installation>
static func injectTzdataIntoLibrary() throws {
guard let tzdataFileURL = Bundle.module.url(forResource: "SupportData/tzdata", withExtension: "tar") else {
guard let tzdataFileURL = Bundle.module.url(forResource: "tzdata", withExtension: "tar") else {
throw ValhallaFileManagerError.tzdataNotFound
}

Expand Down

0 comments on commit 7f990b9

Please sign in to comment.