Skip to content

Commit

Permalink
Restructure project, bring in libcmark_gfm as a dependency instead of…
Browse files Browse the repository at this point in the history
… including in project directly, add support for Swift Package Manager. Update tests to include example markdown directly instead of bundled files (to allow tests to run with Swift PM).
  • Loading branch information
KristopherGBaker committed Dec 24, 2017
1 parent 1a6a3a9 commit e80de22
Show file tree
Hide file tree
Showing 174 changed files with 1,394 additions and 39,856 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
Package.resolved
9 changes: 4 additions & 5 deletions Maaku.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ Pod::Spec.new do |s|
s.default_subspec = 'Core'

s.subspec 'CMark' do |core|
core.source_files = "Maaku/CMark/**/*.swift", "Maaku/libcmark/**/*{.c,.h}"
core.preserve_paths = "Maaku/libcmark/**/*"
core.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "$(PODS_TARGET_SRCROOT)/Maaku/libcmark/**", "LIBRARY_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/Maaku/" }
core.source_files = "Sources/Maaku/CMark/**/*.swift"
core.dependency 'libcmark_gfm'
end

s.subspec 'Core' do |md|
md.source_files = "Maaku/Core/**/*.swift"
md.source_files = "Sources/Maaku/Core/**/*.swift"
md.dependency 'Maaku/CMark'
end

s.subspec 'Plugins' do |plugins|
plugins.source_files = "Maaku/Plugins/**/*.swift"
plugins.source_files = "Sources/Maaku/Plugins/**/*.swift"
plugins.dependency 'Maaku/CMark'
plugins.dependency 'Maaku/Core'
end
Expand Down
2,706 changes: 1,035 additions & 1,671 deletions Maaku.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions Maaku/Maaku.h

This file was deleted.

103 changes: 0 additions & 103 deletions Maaku/libcmark/libcmark_gfm/arena.c

This file was deleted.

Loading

0 comments on commit e80de22

Please sign in to comment.