--
You received this message because you are subscribed to the Google Groups "clojure-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-andro...@googlegroups.com.
To post to this group, send email to clojure...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojure-android.
For more options, visit https://groups.google.com/d/optout.
Thanks for you answer!
I had time for some quick testing right now, but I will read up more on the profiles and profile mergning later, but I wanted to share some results right now.
Regarding the :repl profile, I'm actually not sure where I got that. It might be something I read somewhere trying to fix my problems, but since I don't know I try to comment it out for now.
Regarding the android-sdk and the android-common and android-user profiles, that setup I got from the lein droid tutorial:
https://github.com/clojure-android/lein-droid/wiki/Tutorial
And the events tutorial:
https://github.com/alexander-yakushev/events/blob/master/tutorial.md
But maybe I didn't understand it right?
I experimented with "with-profile" and pprint a bit, but if I do:
lein droid pprint
and:
lein with-profile +user,+android-common,+android-user droid pprint
The result is almost identical. The only difference is:
{:aot-exclude-ns
("clojure.parallel"
"clojure.core.reducers"
"cider.nrepl"
"cider-nrepl.plugin"
"cider.nrepl.middleware.util.java.parser"
#"cljs-tooling\..+"
"cider.nrepl.middleware.util.java.parser"
"cider.nrepl"
"cider-nrepl.plugin"),
....
:dependencies
(...
[org.clojure/tools.nrepl "0.2.10"]
for "lein droid pprint", vs:
{:aot-exclude-ns
("clojure.parallel"
"clojure.core.reducers"
"cider.nrepl"
"cider-nrepl.plugin"
"cider.nrepl.middleware.util.java.parser"
#"cljs-tooling\..+"
"cider.nrepl.middleware.util.java.parser"
"cider.nrepl"
"cider-nrepl.plugin"
"cider.nrepl.middleware.util.java.parser"
"cider.nrepl"
"cider-nrepl.plugin"),
....
:dependencies
(...
[org.clojure/tools.nrepl "0.2.12"]
for the "with-profile" comman.
This is when I execute the above command in the folder created with:
lein new droid events org.stuff.events :activity MainActivity :target-sdk 15 :app-name EventsListing
following the "event tutorial".
I will continue trying and also read up on the profiles tomorrow. Thanks for the help so so far!
/Mattias
{:repl {:dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
(*a)
in production. This macro may return a paused/stopped
activity which can lead to undefined behavior, or even yield nil. So for the
release build use the activity instance provided as first argument to
methods (this
) and properly pass it to your functions that operate on the
Activity."rm -Rf events2/
lein new droid events2 org.stuff.events :activity MainActivity :target-sdk 15 :app-name EventsListing
Edited project.clj to use cider-nrepl 0.14.0 and tools.nrepl 0.12.2 and added the SDK path:
:dev
[:android-common :android-user
{:dependencies [[org.clojure/tools.nrepl "0.2.12"]
[cider/cider-nrepl "0.14.0"]]
...
:android {;; Specify the path to the Android SDK directory.:sdk-path "/home/matny/prg/Android/Sdk"