AEM Forms App Source Code Package refers to the adobe-lc-mobileworkspace-src-<version>.zip archive. This archive includes the source code required to build a custom AEM Forms app. The archive is included in the adobe-aemfd-forms-app-src-pkg-<version>.zip package available on the package share.
In AEM package share, search adobe-aemfd-forms-app-src-pkg-<version>.zip, click the package applicable to your operating system, and click Download. Read and accept the license agreement and click OK. The download starts. Once downloaded, the word Downloaded appears next to the package.
The following image displays the structure of the adobe-lc-mobileworkspace-src-<version>.zip\android folder.
Set the following environment variables before starting the build process for the AEM Forms app:
- Set the JAVA_HOME environment variable to the location of JDK software on the local file system. For example, C:\Program Files\Java\jdk1.8.0_181
- Set the ANDROID_SDK_ROOT system environment variable to the SDK location for Android. For example, C:\Users\<username>\AppData\Local\Android\Sdk
- Set the Path system environment variable to include the platform-tools and tools folder locations for Android. For example, C:\Users\<username>\AppData\Local\Android\Sdk\platform-tools and C:\Users\<username>\AppData\Local\Android\Sdk\tools.
Select the Android device from the Connected Devices section on the Select Deployment Target dialog box and click OK.
Once you have built the development environment successfully, you can now apply customizations on the app. Use the following articles to customize the app:
After applying appropriate customizations to your app, you can generate the .apk file for distribution.
Once the .apk file has been generated, execute the following command to install the application on an Android device using the Android Debug Bridge.
Windows users: adb install %HOMEPATH%\Projects\[your-project]\adobe-lc-mobileworkspace-src-[version]\android\build\outputs\apk\android-debug.apk
MAC users: adb install [User_Home]/Projects/[your-project]/adobe-lc-mobileworkspace-src-[version]/android/build/outputs/apk/android-debug.apk