Compile from command line
Monkey Targets Forums/Android/Compile from command line
| ||
Hello, Please,can somebody tell me how i can compile my monkey project from command line? I need to do some changes manually (native code) to my android project. For Mac OS. Regards, Javier |
| ||
Please,can somebody tell me how i can compile my monkey project from command line? If you mean from the Monkey X side then *this* should help you. Or do you want to compile it yourself without using Monkey X? In this case you probably need the Android SDK with Eclipse included or do you want the commandline for that? In this case you can take a look @ MonkeyPro/src/transcc/builders/android.monkey MonkeyPro/src/transcc/transcc.monkey I need to do some changes manually (native code) to my android project. You could also try to edit the template in the targets folder: MonkeyPro/targets/android_new/template (In case you are already using the new target; Otherwise only android) (affects all projects, make a copy of the folder first) |
| ||
Thank you Pharmahaus. Exactly what I want is to get current device language. I didn't find an option in Monkey to do it, that's the reason for this manual changes. I don't know if somebody found a way to do it. Any help will be appreciated. Regards, Javier |
| ||
Exactly what I want is to get current device language. I didn't find an option in Monkey to do it, that's the reason for this manual changes. Try this module (untested): ' Usage ' Print(GetDeviceLanguage()) Extern #If TARGET="android" Function GetDeviceLanguage:String() = "java.util.Locale.getDefault().toString" #EndIf Public #If TARGET<>"android" Function GetDeviceLanguage:String() Return "en_US" End Function #EndIf |
| ||
Hello, Sorry for delay in answer. Thanks for the information. Really works and it's a better option than i wanted to do. Thank you so much, Javier |