KOINS.Studio - Articles - Инсталляция и настройка программ - Android Application / Version 2

Android Application / Version 2

Build and compile

  1. Create a copy of the application project in libs / wl-phonegap / [branch Business ID - Preferred Domain] copy of the application (trunk). The name of the project copy must have a “Business ID - preferred domain”. Download the libs / wl-phonegap / [Business ID-Preferred] project to the local computer.

    Note: All images below should be download to the local computer in advance, renamed according to the specified rules, and placed in the specified directories.

  2. res/icon/android

    Put the following icons:
    1. 36x36 - icon-36-ldpi.png

    2. 48x48 - icon-48-mdpi.png

    3. 72x72 - icon-72-hdpi.png

    4. 96x96 - icon-96-xhdpi.png

  3. res/splash/android

    Put the following loading screens:
    1. 200x320 - splash-ldpi-portrait.png

    2. 320x480 - splash-mdpi-portrait.png

    3. 480x800 - splash-hdpi-portrait.png

    4. 720px1280 - splash-xhdpi-portrait.png

      Note: If you need urgently assemble the application ONLY for Android, then steps 6, 7, 8 do not need perform but recommend perform these steps,because the iOS application will be compiled using the current sources.

  4. res/splash/ios

    Put the following loading screen:
    1. 640x1136 logo-568h@2x.png (yes, only 1 file)

  5. res/icon/ios

    Put the following icons:
    1. 1024x1024 - iTunesArtwork@2x.png

    2. 120x120 - Icon-60@2x.png

    3. 180x180 - Icon-60@3x.png

    4. 76x76 - Icon-76.png

    5. 152x152 - Icon-76@2x.png

    6. 167x167 - Icon-83.5@2x.png

    7. 40x40 - Icon-Small-40.png

    8. 80x80 - Icon-Small-40@2x.png

    9. 120x120 - Icon-Small-40@3x.png

    10. 29x29 - Icon-Small.png

    11. 58x58 - Icon-Small@2x.png

    12. 87x87 - Icon-Small@3x.png

  6. res/screen/ios

    Put the following lading screens:
    1. 750x1334 - Default@2x~iphone~comany.png

    2. 1242x2208 - Default@3x~iphone~comany.png

    3. 1278x2732 - Default@2x~ipad~comany.png

    4. 1334x750 - Default@2x~iphone~comcom.png

    5. 1334x1334 - Default@2x~iphone~anyany.png

    6. 2208x1242 - Default@3x~iphone~anycom.png

    7. 2208x2208 - Default@3x~iphone~anyany.png

    8. 2732x2732 - Default@2x~ipad~anyany.png

  7. config.xml
    1. In the attribute id of the tag Widget set Preferred Domain.

    2. In the tag Name set Application Name.

  8. www/index.html
    1. Find tag iframe. Add string “?s_id = [Preferred Domain]” in the end link of tag src.

  9. www/icon.png
    1. Delete this file. Take from the loading screens for a new application, which have size 1242 * 2208. Rename to icon.png. Add this file instead of deleted file.

  10. www/js/communication.js
    1. In the Communication.messageGet () method, replace the string com.wellnessliving.achieve with the new application ID.

  11. www/css/index.css
    1. For app-splash-image, set the height: 100%; and width: 100%;

    2. For app-splash-image img, delete everything that starts with animation-, and opacity. Adding display: block;

    3. For fidelity, you can compare it with index.css of any custom application.

  12. Next step: Setting up a push - notifications.

  13. Commit changes.

  14. Open directory of the custom application on the local computer.

  15. Create a .zip archive with the project.

  16. Open page: https://build.phonegap.com/people/sign_in.

  17. Authorize with the Adobe ID (article in passwords: adobe@dev.1024.info/build.phonegap.com). For personal use, it recommended that you create your account.

  18. Open private tab.

  19. Upload the zip. archive of the application.

  20. Click button Ready to build and use production key (adobe@dev.1024.info/build.phonegap.com). Wait for the Application  finish compiling.

  21. Download apk file.

  22. Make sure, that application work correctly on the emulator or Android device.

  23. Next step: Setting up an account in google play.

Setting up an account in google play

  1. Log in https://play.google.com/apps/publish/signup/ password can be take from the article (WLMobileApps@wellnessliving.com/play.google.com/ business apps ).

  2. Click button Create Application and set App Name.

  3. Further in the section Store listing we fill the following fields:
    1. Short description - take from the description of the task in the field Short App Description.

    2. Full description - take from the description to the task in the App Description field.

    3. Upload following screenshots:
      1. for phone use screenshots of size 1248x2208.

      2. for tablets 7 inch use screenshots size:  2048x2732.

      3. for tablets 9 inch use screenshots size: 2048x2732.

    4. Add icon of application,which have size: 512x512 and Feature Graphic size: 1024x500.

    5. In the field Application type, select Application.

    6. In the field Category, select the category according to the requirements, if there are no special requirements, select - Health & Fitness.

    7. In the field Website, need to insert a link to the business microsite for which the application is building to, for this:
      1. Log in to https://www.wellnessliving.com/  Business to Enter backend to Enter Business ID.

      2. Make sure setup page, open Business to Business URLs to copy the Directory Listing.

    8. In the field Email and Phone items, you need to insert the e-mail address and phone number of the current business, for this:
      1. Repeat the first step, in the section (Setting up an account in google play).

      2. In the business, settings go Location and copy Email and Phone to any of the business locations.

    9. In the Privacy Policy section, set the following link: https://www.wellnessliving.com/text/privacy.html.

    10. Save changes.

  4. In the App releases section:
    1. Select Manage in the Production track section.

    2. Click Create release.

    3. After that, we refuse App signing by Google Play.

    4. We add the apk file that was generated at the stage (Build and compilation).

    5. At this point, you will not yet have access to send the application to the release. First, you need to execute steps 5 and 6.

    6. Only then, press review and start reload to production.

  5. In the Content rating section:
    1. Add the email address generated in the step (Setting up the account in google play).

    2. In the section UTILITY, PRODUCTIVITY, COMMUNICATION, OR OTHER form the age rating of the application. In each of the items you need to answer No other than Does the app allow users to purchase digital goods?.

    3. Save changes.

  6. In the Pricing & distribution section:
    1. Section in the Countries, select all countries.

    2. In the section Primarily Child-Directed, Contains ads answer No.

    3. Then, select the Content guidelines, US export laws.

    4. Save changes.

  7. Final action should be performed in section 4, item 4.6.

Setting up a push - notifications

  1. Open page:  https://console.firebase.google.com/ (password Google Account koins.dev/google.com/gmail.com article).

  2. Create a new project (Add project).

  3. Click on the button with gear, select Project settings.

  4. Add a new application. When creating, specify the identifier used in your application.

  5. Create a “google-services.json” file.

  6. Put this file in the repository of the custom application.

Links

  1. Adobe PhoneGap Docs: http://docs.phonegap.com/

  2. Apache Cordova Docs: https://cordova.apache.org/docs/en/latest

  3. Compiling service: https://build.phonegap.com/

  4. Google play account: https://play.google.com/apps/publish/

  5. Business contacts: https://www.wellnessliving.com/

Russian version:

  1. https://docs.google.com/document/d/1RSsDEOKY3Gvfy4tnTiyNKWj4DsK_XkFhmD9uHPDkxbw/edit?usp=sharing

Last modification: 28.12.18 19:17