Re:PilBox – Building Mobile Apps in PicoLisp
by Regenaxer on Monday March 13, 2017 @02:44AM
(#13855725)
Note that in PilBox you can also directly call the standard Android API, and use
the REPL of course.
Taking a picture, for example, needs only
(android~takePicture (tmp "img")
'((Intent)
(... do something with the image) ) )
The function 'takePicture' is in "lib/android.l": (de takePicture (Dst Fun)
(startActivityForResult Fun
"android.media.action.IMAGE_CAPTURE"
"output" (fileUri Dst) ) )
Re:PilBox – Building Mobile Apps in PicoLisp
by nikki93 on Sunday March 12, 2017 @09:28PM
(#13854532)
You can also use ClojureScript on React Native for both iOS and Android. Lets you use things like reagent or re-frame that work well with persistent data structures. It's actually super easy with Expo, which makes it so you don't have to do any Xcode or Android Studio stuff: https://docs.expo.io/versions/v14.0.0/guides/using-clojuresc...
Re:PilBox – Building Mobile Apps in PicoLisp
by bschwindHN on Monday March 13, 2017 @02:10AM
(#13855603)
I would highly recommend this! I use re-natal and it lets you target Android and iOS (simultaneously if you really want to) with live code reloading and native UI elements. Reagant + re-frame is a very pleasant setup for UI development and handling data flows.
The initial build & deploy times for Clojure on Android are annoying, but using a REPL to edit your Android app dynamically is amazing.
[1] https://github.com/clojure-android/lein-droid