11 ms·
Another good option if you want to write Android apps in Lisp is lein-droid [1] which allows you to use Clojure on Android. This means you can use any standard
by sxp 10y ago
Another good option if you want to write Android apps in Lisp is lein-droid [1] which allows you to use Clojure on Android. This means you can use any standard Android API, library or SDK in your app without additional bridge components.
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 https://github.com/clojure-android/lein-droid
- nikki93 10y agoYou 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-clojurescript.html https://docs.expo.io/versions/v14.0.0/guides/using-clojuresc...
- bschwindHN 10y agoI 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.
- swah 10y agoYou mentioned doing an app with re-natal around 3 months ago - did you succeeded with it? Sorry for spamming here, no email on profile ;)
- Regenaxer 10y agoNote 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) ) )