Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon

Packaging and publishing an Oracle JET Hybrid mobile application

Save for later
  • 4 min read
  • 17 Apr 2018

article-image
Today, we will learn how to package and publish an Oracle JET mobile application on Apple Store and Android Play Store.

We can package and publish Oracle JET-based hybrid mobile applications to Google Play or Apple App stores, using framework support and third-party tools.

Packaging a mobile application


An Oracle JET Hybrid mobile application can be packaged with the help of Grunt build release commands, as described in the following steps:

  1. The Grunt release command can be issued with the desired platform as follows: grunt build:release --platform={ios|android}

  1. Code sign the application based on the platform in the buildConfig.json component.


Note: Further details regarding code sign per platform are available at: Android: https:// cordova.apache.org/docs/en/latest/guide/platforms/android/tools. html.iOS:https:// cordova.apache.org/docs/en/latest/guide/platforms/ios/tools.Html.

  1. We can pass the code sign details and rebuild the application using the following command:

grunt build:release --platform={ios|android}

--buildConfig=path/buildConfig.json

  1. The application can be tested after the preceding changes using the following serve command:

grunt serve:release --platform=ios|android [--web=true

--serverPort=server-port-number

--livereloadPort=live-reload-port-number -

-destination=emulator-name|device]

--buildConfig==path/buildConfig.json

Publishing a mobile application


Publishing an Oracle JET hybrid mobile application is as per the platform-specific guidelines. Each platform has defined certain standards and procedures to distribute an app on the respective platforms.

Publishing on an iOS platform


The steps involved in publishing iOS applications include:

  1. Enrolling in the Apple Developer Program to distribute the app.
  2. Adding advanced, integrated services based on the application type.
  3. Preparing our application with approval and configuration according to iOS standards.
  4. Testing our app on numerous devices and application releases.
  5. Submitting and releasing the application as a mobile app in the store.
  6. Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at $19.99/month. Cancel anytime


Alternatively, we can also distribute the app outside the store. The iOS distribution process is represented in the following diagram:

packaging-and-publishing-an-oracle-jet-hybrid-mobile-application-img-0

Please note that the process for distributing applications on iOS presented in the preceding diagram is the latest, as of writing this chapter. It may be altered by the iOS team at a later point. The preceding said process is up-to-date, as of writing this chapter.

Note: For the latest iOS app distribution procedure, please refer to the official iOS documentation at: https://developer.apple.com/library/ios/documentation/IDEs/ Conceptual/AppDistributionGuide/Introduction/Introduction.html

Publishing on an Android platform


There are multiple approaches to publish our application on Android platforms. The following are the steps involved in publishing the app on Android:

  1. Preparing the app for release. We need to perform the following activities to prepare an app for release:

  • Configuring the app for release, including logs and manifests.
  • Testing the release version of the app on multiple devices.
  • Updating the application resources for the release.
  • Preparing any remote applications or services the app interacts with.


2. Releasing the app to the market through Google Play. We need to perform the following activities to prepare an app for release through Google Play:

  • Prepare any promotional documentation required for the app.
  • Configure all the default options and prepare the components.
  • Publish the prepared release version of the app to Google Play.


3. Alternately, we can publish the application through email, or through our own website, for users to download and install.

The steps involved in publishing Android applications are advised in the following diagram:

packaging-and-publishing-an-oracle-jet-hybrid-mobile-application-img-1

Please note that the process for distributing applications on Android presented in the preceding diagram is the latest, as of writing this chapter. It may be altered by the Android team at a later point.

Note: For the latest Android app distribution procedure, please refer to the official Android documentation at http://developer.android.com/tools/publishing/publishing_overview. html#publishing-release.

You enjoyed an excerpt  from Oracle JET for Developers written by Raja Malleswara Rao Pattamsetti.  With this book, you will learn to leverage Oracle JavaScript Extension Toolkit (JET) to develop efficient client-side applications.


packaging-and-publishing-an-oracle-jet-hybrid-mobile-application-img-2

Auditing Mobile Applications

Creating and configuring a basic mobile application