Discussion:
[ceylon-dev] Ceylon on Android
Stephane Epardaud
2016-06-02 13:11:01 UTC
Permalink
You can find all the info on how to run Ceylon on Android here:
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/

Feel free to try this and report any issues you find. Or better yet,
contribute :)

Cheers!
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAKU9E9tozaS0-cFjmVYdzQZUKu-U9JxzaETVsNb4xm_QJsUVwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Gavin King
2016-06-02 14:03:43 UTC
Permalink
Yay!

On Thu, Jun 2, 2016 at 3:11 PM, Stephane Epardaud
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups
"ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-dev/CAKU9E9tozaS0-cFjmVYdzQZUKu-U9JxzaETVsNb4xm_QJsUVwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Gavin King
***@ceylon-lang.org
http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAP7PoCds0q5mPWdQ8YWxO0cF8L5P6oWhYUE3u%3Dv-%2BAuu5LMohw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Rohit Mohan
2016-06-04 14:43:36 UTC
Permalink
I tried using Ceylon with Android today with some popular Android libraries
and couldn’t get all of them to work.

The libraries that I tried were:

- Retrofit <http://square.github.io/retrofit/> (A popular HTTP client
for Android)
- Picasso <http://square.github.io/picasso/>/Glide (Two image
downloading and caching libraries)
- Butterknife <http://jakewharton.github.io/butterknife/> (Field and
method binding for Android views)

Out of all these, I could get only Retrofit to work.

With Picasso, I get this error. (Similar error with Glide)

Modules containing the following packages need to be declared as imports:
(Tip: try running again with the '--show-suggestions' option)
com.squareup.okhttp ... [shared]
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED

With butterknife, I get this.

Note: Visiting transitive dependencies for com.android.support.support-annotations/23.4.0
shared com.android.support.support-annotations/23.4.0 ... [OK, but seems unused]
Note: Visiting transitive dependencies for com.jakewharton.butterknife-annotations/8.0.1
shared com.jakewharton.butterknife-annotations/8.0.1 ... [OK, but seems unused]
Modules containing the following packages need to be declared as imports:
(Tip: try running again with the '--show-suggestions' option)
android.support.v4.graphics.drawable
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED

I'm not sure if I'm doing something wrong on my part.

--

Rohit Mohan
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
​
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stephane Epardaud
2016-06-06 13:44:01 UTC
Permalink
So the problem with picasso is that it has an optional dependency on okhttp
and the methods I use in Gradle's API to traverse dependencies do not list
optional dependencies, so I'm looking for a workaround.
Post by Rohit Mohan
I tried using Ceylon with Android today with some popular Android
libraries and couldn’t get all of them to work.
- Retrofit <http://square.github.io/retrofit/> (A popular HTTP client
for Android)
- Picasso <http://square.github.io/picasso/>/Glide (Two image
downloading and caching libraries)
- Butterknife <http://jakewharton.github.io/butterknife/> (Field and
method binding for Android views)
Out of all these, I could get only Retrofit to work.
With Picasso, I get this error. (Similar error with Glide)
(Tip: try running again with the '--show-suggestions' option)
com.squareup.okhttp ... [shared]
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
With butterknife, I get this.
Note: Visiting transitive dependencies for com.android.support.support-annotations/23.4.0
shared com.android.support.support-annotations/23.4.0 ... [OK, but seems unused]
Note: Visiting transitive dependencies for com.jakewharton.butterknife-annotations/8.0.1
shared com.jakewharton.butterknife-annotations/8.0.1 ... [OK, but seems unused]
(Tip: try running again with the '--show-suggestions' option)
android.support.v4.graphics.drawable
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
I'm not sure if I'm doing something wrong on my part.
--
Rohit Mohan
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
​
Post by Stephane Epardaud
--
You received this message because you are subscribed to the Google Groups
"ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com
<https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAKU9E9t7ms1xtcm7Gt1_CKvqRPKq%3D2rpRa-PDhUY0LtztXEwfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Stephane Epardaud
2016-06-06 15:10:28 UTC
Permalink
And the second one is due to a missing dependency in the descriptor. I just
released version 0.0.5 of the Gradle Ceylon Android plugin, where you can
set `ceylon { forceImports true }` to bypass Maven descriptor issues.

Let me know how it works for you?

Thanks!
Post by Stephane Epardaud
So the problem with picasso is that it has an optional dependency on
okhttp and the methods I use in Gradle's API to traverse dependencies do
not list optional dependencies, so I'm looking for a workaround.
Post by Rohit Mohan
I tried using Ceylon with Android today with some popular Android
libraries and couldn’t get all of them to work.
- Retrofit <http://square.github.io/retrofit/> (A popular HTTP client
for Android)
- Picasso <http://square.github.io/picasso/>/Glide (Two image
downloading and caching libraries)
- Butterknife <http://jakewharton.github.io/butterknife/> (Field and
method binding for Android views)
Out of all these, I could get only Retrofit to work.
With Picasso, I get this error. (Similar error with Glide)
(Tip: try running again with the '--show-suggestions' option)
com.squareup.okhttp ... [shared]
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
With butterknife, I get this.
Note: Visiting transitive dependencies for com.android.support.support-annotations/23.4.0
shared com.android.support.support-annotations/23.4.0 ... [OK, but seems unused]
Note: Visiting transitive dependencies for com.jakewharton.butterknife-annotations/8.0.1
shared com.jakewharton.butterknife-annotations/8.0.1 ... [OK, but seems unused]
(Tip: try running again with the '--show-suggestions' option)
android.support.v4.graphics.drawable
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
I'm not sure if I'm doing something wrong on my part.
--
Rohit Mohan
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
​
Post by Stephane Epardaud
--
You received this message because you are subscribed to the Google Groups
"ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com
<https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Stéphane Épardaud
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAKU9E9s5Q6ivxafZUch2T%2BOC9_X0Rznci97ZD3G4Fg0D%2BCarTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Rohit Mohan
2016-06-06 16:44:48 UTC
Permalink
Thanks. The project with Butterknife builds now. But the app crashes when I
run it and I get this error:

https://gist.github.com/rohitmohan96/6e6d3729fb8bc909bf4cbadef317e8e8

On Mon, Jun 6, 2016 at 8:40 PM Stephane Epardaud <
Post by Stephane Epardaud
And the second one is due to a missing dependency in the descriptor. I
just released version 0.0.5 of the Gradle Ceylon Android plugin, where you
can set `ceylon { forceImports true }` to bypass Maven descriptor issues.
Let me know how it works for you?
Thanks!
Post by Stephane Epardaud
So the problem with picasso is that it has an optional dependency on
okhttp and the methods I use in Gradle's API to traverse dependencies do
not list optional dependencies, so I'm looking for a workaround.
Post by Rohit Mohan
I tried using Ceylon with Android today with some popular Android
libraries and couldn’t get all of them to work.
- Retrofit <http://square.github.io/retrofit/> (A popular HTTP
client for Android)
- Picasso <http://square.github.io/picasso/>/Glide (Two image
downloading and caching libraries)
- Butterknife <http://jakewharton.github.io/butterknife/> (Field and
method binding for Android views)
Out of all these, I could get only Retrofit to work.
With Picasso, I get this error. (Similar error with Glide)
(Tip: try running again with the '--show-suggestions' option)
com.squareup.okhttp ... [shared]
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
With butterknife, I get this.
Note: Visiting transitive dependencies for com.android.support.support-annotations/23.4.0
shared com.android.support.support-annotations/23.4.0 ... [OK, but seems unused]
Note: Visiting transitive dependencies for com.jakewharton.butterknife-annotations/8.0.1
shared com.jakewharton.butterknife-annotations/8.0.1 ... [OK, but seems unused]
(Tip: try running again with the '--show-suggestions' option)
android.support.v4.graphics.drawable
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
I'm not sure if I'm doing something wrong on my part.
--
Rohit Mohan
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
​
Post by Stephane Epardaud
--
You received this message because you are subscribed to the Google
Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com
<https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Stéphane Épardaud
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups
"ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/CAKU9E9s5Q6ivxafZUch2T%2BOC9_X0Rznci97ZD3G4Fg0D%2BCarTw%40mail.gmail.com
<https://groups.google.com/d/msgid/ceylon-users/CAKU9E9s5Q6ivxafZUch2T%2BOC9_X0Rznci97ZD3G4Fg0D%2BCarTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAF7ZTx%2BROjJaDGCPnQYgd2JTEpXcp8hG4utJcXn%2BZ188Ad%2BnaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Stephane Epardaud
2016-06-28 12:16:21 UTC
Permalink
Hi, Can you test with the latest 0.0.6 Gradle Android Ceylon plugin and a
new distrib? It should support APT now, at least enough for butterknife.

There's a trick, though, it's that you have to declare your injected value
with `@packageProtected shared late` annotations, because it's an
annotation limited to fields and we can't make fields public in Ceylon,
hence the `@packageProtected` compiler annotation trick.

Can you let me know if it works for you?

Thanks, cheers.
Post by Rohit Mohan
Thanks. The project with Butterknife builds now. But the app crashes when
https://gist.github.com/rohitmohan96/6e6d3729fb8bc909bf4cbadef317e8e8
On Mon, Jun 6, 2016 at 8:40 PM Stephane Epardaud <
Post by Stephane Epardaud
And the second one is due to a missing dependency in the descriptor. I
just released version 0.0.5 of the Gradle Ceylon Android plugin, where you
can set `ceylon { forceImports true }` to bypass Maven descriptor issues.
Let me know how it works for you?
Thanks!
Post by Stephane Epardaud
So the problem with picasso is that it has an optional dependency on
okhttp and the methods I use in Gradle's API to traverse dependencies do
not list optional dependencies, so I'm looking for a workaround.
Post by Rohit Mohan
I tried using Ceylon with Android today with some popular Android
libraries and couldn’t get all of them to work.
- Retrofit <http://square.github.io/retrofit/> (A popular HTTP
client for Android)
- Picasso <http://square.github.io/picasso/>/Glide (Two image
downloading and caching libraries)
- Butterknife <http://jakewharton.github.io/butterknife/> (Field
and method binding for Android views)
Out of all these, I could get only Retrofit to work.
With Picasso, I get this error. (Similar error with Glide)
(Tip: try running again with the '--show-suggestions' option)
com.squareup.okhttp ... [shared]
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
With butterknife, I get this.
Note: Visiting transitive dependencies for com.android.support.support-annotations/23.4.0
shared com.android.support.support-annotations/23.4.0 ... [OK, but seems unused]
Note: Visiting transitive dependencies for com.jakewharton.butterknife-annotations/8.0.1
shared com.jakewharton.butterknife-annotations/8.0.1 ... [OK, but seems unused]
(Tip: try running again with the '--show-suggestions' option)
android.support.v4.graphics.drawable
ceylon import-jar: Problems were found, aborting.
:app:compileDebugCeylonWithCeylonc FAILED
I'm not sure if I'm doing something wrong on my part.
--
Rohit Mohan
Post by Stephane Epardaud
http://ceylon-lang.org/blog/2016/06/02/ceylon-on-android/
Feel free to try this and report any issues you find. Or better yet,
contribute :)
Cheers!
--
Stéphane Épardaud
​
Post by Stephane Epardaud
--
You received this message because you are subscribed to the Google
Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com
<https://groups.google.com/d/msgid/ceylon-users/35b8878c-538c-4dce-9453-94a3d284e1bd%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Stéphane Épardaud
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups
"ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-users/CAKU9E9s5Q6ivxafZUch2T%2BOC9_X0Rznci97ZD3G4Fg0D%2BCarTw%40mail.gmail.com
<https://groups.google.com/d/msgid/ceylon-users/CAKU9E9s5Q6ivxafZUch2T%2BOC9_X0Rznci97ZD3G4Fg0D%2BCarTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ceylon-dev/CAF7ZTx%2BROjJaDGCPnQYgd2JTEpXcp8hG4utJcXn%2BZ188Ad%2BnaQ%40mail.gmail.com
<https://groups.google.com/d/msgid/ceylon-dev/CAF7ZTx%2BROjJaDGCPnQYgd2JTEpXcp8hG4utJcXn%2BZ188Ad%2BnaQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Stéphane Épardaud
--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+***@googlegroups.com.
To post to this group, send email to ceylon-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAKU9E9vVeHXSKY4Rxoh1gHwSZzUAu7BKnY3vRzJncoBMO_ecCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...