-
Notifications
You must be signed in to change notification settings - Fork 96
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
Is possible develop app using full command line, no android studio on linux? #20
Comments
Hi, You can run builds on the command line if you have android studio installed ( no need to open it here ).
This will build the bodendemo app without launching Android Studio. You can run the app in an emulator:
There is no direct command to debug the application though yet. We are planning to improve/add documention for the build tool in the future. |
Hi @Maddimax, Thanks very much for a very useful tool. Further to your answer to @kitech, is it also possible to have a more "native" workflow using CMake and Ninja directly rather than the Many thanks for your time. |
Hi @mcraveiro, Yes its possible to use plain cmake. If you run the
There are some limitations though:
so the easier way would still be to just call the ./boden tool from your ide of choice. |
Thanks for the very prompt response @Maddimax, and excellent news! As I am only targeting android and as I intend to do this as a learning exercise, I will try to do it the hard way. Even if I end up using the tool and the IDE in the end, hopefully this will give me a better understanding of what is going on underneath the covers. Out of (morbid) curiosity, with regards to:
Do you think this will change in the future, or is this just something to do with the APK format itself? It looks rather complicated [1]. [1] https://en.wikipedia.org/wiki/Android_application_package |
Generating .apks using make is on our Todo list, but not with a high priority at the moment. Its not just generating the apk package, but also implementing all the dependency mechanisms and java compilation that gradle does for you. I'm afraid it will be some time before we get around to doing this. |
Wow, that would be awesome, whenever that happens! I'm sure you get a lot of non-requested feedback so I'll try not to spam you too much :-) but let me describe where I am coming from and why I think Boden is really cool - I suspect there are more devs like me. I'd like to get into the whole "mobile" thing, but I don't really have the spare time to play around with kotlin, gradle, etc etc. Its just too much to pick up given the available time. Also, given I am an "old hand" at programming, I profoundly hate doing things without really understanding what I am doing, which makes learning large new stacks impracticable in the little spare time I have. So what would really fit the bill is something that takes advantage of the stuff I am already familiar with (such as ninja, cmake, etc) and adds just a little bit of complexity such that I can still pick it up in my spare time. This is why for me Boden fits perfectly. Anyways, my 2 cents :-) Thanks. |
We are happy about any and all feedback! Hope you'll enjoy Boden, please don't hesitate to let us know what we can improve. |
For anyone reading this ticket, and wanting to setup a "really" native environment, here's a SO question [1] on how to build an APK manually. It also has a C++ project demonstrating it [2]. I am still playing around with it so not entirely sure how good/complete it is, but it may be a useful pointer. See also the keesj fork, with more work on it using the Guardian project tooling [3]. [1] https://stackoverflow.com/questions/39091845/create-android-apk-manually-via-command-line-makefile |
@Maddimax are there any documents explaining how boden "binds" to java, by any chance? I mean, I just about got my head around the whole Native Activity and |
Ah, I think I get it, its |
android studio is so heavy
Be nice if there are some document about command line.
The text was updated successfully, but these errors were encountered: