1/29/2024 0 Comments Video2brain phonegapIn the Create Configuration dialog, type a value for the Title property. In the CQ Operations area, click Cloud Services.Ĭlick the Configure Now link for PhoneGap Build. Provide the user name and password of the PhoneGap Build account that you will use to build your mobile applications. Connecting to PhoneGap BuildĬreate a PhoneGap Build configuration so that you can use the PhoneGap Build services from within AEM. To perform this procedure, you must first create a PhoneGap Build configuration. Use the PhoneGap cloud service to build your app. For example, the following command builds the app for Android: phonegap build android For example, the following changes the directory to the file: cd ~/Downloads/ng-app-cli.1392137825303Įnter the phonegap command for the platform that you are targeting. Open a terminal or command prompt and change the current directory to the downloaded application ZIP file. For information about how to use the PhoneGap CLI, see the PhoneGap Command-line Interface documentation. Use the PhoneGap CLI to compile and install the application. On the toolbar, click or tap the Download CLI Assets icon.Īfter you have saved the ZIP file, click Close on the Success dialog. Clearing the cache voids all cached updates. The cache holds content updates for installed applications. (Optional) To build the application for complete installations, on the toolbar, click or tap the Clear Cache icon. On the Mobile Applications page, select your application. Move the content of your mobile application to your file system. To build Android apps, install the Android SDK. To build apps for the iOS platform, install the latest version of Xcode.(Optional) Obtain the SDK for the mobile platform that you are targeting: When the installation is succesful, the terminal shows where the libraries are installed similar to the following example: /usr/local/bin/phonegap -> /usr/local/lib/node_modules/phonegap The terminal shows the results of a series of HTTP GET commands. On a Unix or Linux system, you may need to prefix the command with sudo. Open a terminal or command prompt and enter the following node command to install the PhoneGap utility: npm install -g phonegap You require an internet connection to perform the following procedure. To build using the PhoneGap CLI, you need to install Node.js and the PhoneGap client utility. Download the ZIP file and include it in your build. To include the AEM content into your application, AEM creates a ZIP file that contains the content of your mobile application, Content Sync configurations, and other required assets. Tip: To move a package from the author instance to the publish instance, use the Replicate command on the package.īuilding Using the PhoneGap Command Line InterfaceĬompile the PhoneGap application on your computer using the PhoneGap Command-line Interface (CLI). The following node must be moved to the publish instance: /content/phonegap/content/phonegapapp. Create a package that contains the content and replicate the package.įor example, a mobile application named phonegapapp is created.Use the Activate Tree command on the replication console.The files in the /content/phonegap/apps/ branch are moved when the author activates the pages.ĪEM provides two methods for moving bulk content to the publish instance: You only need to move the files in the /content/phonegap/content/ branch to the publish instance. If you do not move the application files to the publish instance, content authors cannot update the Content Sync cache. /content/phonegap/content/: Application configuration files and Content Sync configurations./content/phonegap/apps/: The web pages that authors create and activate.Applications consist of two node branches in the repository: Move application files to the publish instance so that you can provide content updates to the installed instances of the mobile application, and to build the application using the published content. Moving the Application to the Publish Instance You can build applications locally using the PhoneGap Command Line Interface, or in the cloud using PhoneGap Build.Ī complete step-by-step article on how to build a mobile application using code available from GitHub is available here. Learn more.īuild your application to install to a device or simulator for testing or for publishing to app stores. Adobe recommends using the SPA Editor for projects that require single page application framework-based client-side rendering (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |