Create .apk file locally mendix mobile app

0
I created a mendix mobile app and the entire code is currently on my local disk and is not yet uploaded to mendix cloud. I want to know if there is a way to create .apk file from my project so that I can copy this file to my mobile and install the app.  At present I don't want to upload my project to cloud.  Please let me know if there is a way to achieve my requirement.
asked
1 answers
1

Hi Mohan, you can create mobile .apk file that points to your local development pc. You need to customise the environments.json in the config folder of your hybrid app package. Then add development section, i.e.

  "development" : {
    "name" : "Your-app-name",
    "identifier" : "Your-identifier",
    "url" : "http://your-local-pc-or-ip:8080"
  }

Make sure to use an url or ip that can be accessed by mobile using WIFI network.  After that you need to rebuild the mobile package to target the development endpoint, i.e.

$ npm run package -- --env.target=development

For more information on how to customise your package see, https://github.com/mendix/hybrid-app-template

answered