Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib embedding #219

Closed
wants to merge 4 commits into from
Closed

lib embedding #219

wants to merge 4 commits into from

Conversation

dupuchba
Copy link
Contributor

need @cgrand review + documentation on how to write a lib with dart/flutter deps

result is a cljd library author can embed a pure flutter/dart
dependency in its cljd lib.
@dupuchba dupuchba requested a review from cgrand as a code owner April 12, 2023 12:13
@@ -168,16 +169,72 @@
(-> (Thread/currentThread) .getContextClassLoader (.getResourceAsStream "analyzer.dart") (.transferTo out))))
(.getPath analyzer-dir)))

(defn ensure-pubspec-dependencies []
(let [scan-pubspec (fn [filter-line-fn rf]
(->> (reduce (fn [[acc seen-cljd-tag] line]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that we'll have to bite the bullet and use a proper yaml parser

first
rf))
;; take all "old" deps from cljd libraries `pubspec.yaml` and remove them
_ (run!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one can pass all packages to a single pub remove

@cgrand
Copy link
Contributor

cgrand commented Oct 24, 2023

see #280

@cgrand cgrand closed this Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants