Skip to content

Commit

Permalink
Fixed TreeSitter import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent committed May 5, 2023
1 parent 789721f commit 549cc5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Runestone/TextView/Appearance/DefaultTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,12 @@ private extension UIColor {
self.init(named: "theme_" + name, in: .module, compatibleWith: nil)!
}
}

#if !SWIFT_PACKAGE
extension Bundle {
static var module: Bundle {
class Dummy {}
return Bundle(for: Dummy.self)
}
}
#endif
1 change: 1 addition & 0 deletions TreeSitter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '14.0'

s.source_files = 'tree-sitter/src/lib.c', 'tree-sitter/src/api.h', 'tree-sitter/src/parser.h'
s.resources = 'tree-sitter/src/*.{h,c}'

end

0 comments on commit 549cc5a

Please sign in to comment.