Skip to content

Commit

Permalink
Fix SwiftPM naming issue using modulemap
Browse files Browse the repository at this point in the history
# Conflicts:
#	Package.swift
  • Loading branch information
4brunu authored and Jeehut committed Dec 31, 2019
1 parent d18733f commit 75673fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ let package = Package(
targets: [
.target(
name: "MBProgressHUD",
dependencies: [],
path: ".",
exclude: ["Demo"],
sources: ["MBProgressHUD.h", "MBProgressHUD.m"]
sources: ["MBProgressHUD.h", "MBProgressHUD.m"],
publicHeadersPath: "include"
)
]
)
1 change: 1 addition & 0 deletions include/MBProgressHUD/MBProgressHUD.h
5 changes: 5 additions & 0 deletions include/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module MBProgressHUD {
umbrella header "MBProgressHUD/MBProgressHUD.h"
export *
module * { export * }
}

0 comments on commit 75673fd

Please sign in to comment.