Applies to Kony Visualizer Classic.
The process of developing and deploying a Kony Visualizer app for the Windows 10 platform consists of three phases:
In the pursuit of this process, this section covers the following topics:
Prerequisites to building applications for Windows 10
Setting up the environment for development
Create APPX files from zip files (x86/x64/ARM)
Deploying an x86 zip on a x86/x64 computer
Deploying an x64 APPX on ax64 computer
Before building an application for Windows 7/8/8.1/10, ensure you have knowledge about the prerequisites, compatibility matrix, and processor architecture of the machine.
Following are the prerequisites and compatibility matrix to build applications:
Windows 7
Windows 8
Windows 10
Important: While developing a Windows app, do not create a variable with the name uid
.
The following compatibility matrix shows APPX install possibility in a machine. For example, if you want to install a 64-bit APPX file, you need a 64-bit system.
x86 machine | x64 machine | ARM machine | |
---|---|---|---|
x86 APPX | Yes | Yes | No |
x64 APPX | No | Yes | No |
ARM APPX | No | No | Yes |
Before deploying an APPX file, you must know the processor architecture of the machine.
To know the processor architecture, follow these steps:
Processor Architecture | Result |
---|---|
x86 based | x86 |
x64 | AMD64 |
ARM based | ARM |
Alternatively, you can find the architecture type from the system properties.
The following chart shows the system type and result.
System Type |
Result |
---|---|
X86 |
x86 |
X64 |
x64 |
ARM |
ARM |
To run the Windows 10 simulator and test applications, you have to download and install Visual Studio Community 2015 for Windows 10 from Microsoft's website.
In this section, you will learn about:
To setup development environment, follow these steps:
Windows 10 vs_community.exe
file from https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspxImportant: To build Windows 10 applications, either Windows 7, Windows 8/8.1, or Windows 10 can be used. But to run Windows 10 applications, you need a Windows 10 machine.
To enable developer mode, follow these steps:
The Windows 10 binary contains platform code, application code (JavaScript) and other resources. Platform code is secured from disassembly when the application is built in Release mode. Windows internally uses native .Net Compilation in release mode and classic .net compilation in debug mode.
To hide the JavaScript code, Kony Visualizer needs to pass hideSourceCode property with True as value to the build process. You have to set the flag so that the build process ensures the application is hidden from dis-assembly.
To set hideSourceCode property, follow these steps:
build.xml
in an editor.<property name="hideSourceCode" value="true"/>
.Windows 10 allows a single application binary to be deployed and run on multiple device families such as mobile, desktop/tablet, Xbox and IoT. You can choose the binary to be run on any Windows 10 device (of any device family) or you can restrict the binary to be allowed to run on particular device family/families only. Currently, the allowed device families are:
Kony Visualizer needs to pass this option to platform build scripts. Currently, in 7.0 there is no way to pass this flag. By default, all apps are allowed to run on any Windows 10 device.
If you want to restrict the application to a device family, follow these steps:
build.xml
in any editor. win10targetdevicefamily
, and set its value to Universal/Mobile/Desktop. For example, <property name="win10targetdevicefamily" value="Desktop"/>
. Note: You can also open the manifest file in Visual Studio and reuse the manifest.
If you build the application for Windows 10, the build fails for the first time because of extension SDKs.
To resolve this issue, follow these steps:
Location of KonyApp.sln
file:
%Workspace% \ temp \ %Application% \ build \ windows10 \ windows10 \ KonyApp \ KonyApp.sln
The deployable component for Windows 10 tablet/desktop is an APPX file. If an application is built using Kony Visualizer on Windows 10, the application creates an APPX file with the name <applicationname>.appx
in target build output folders <workspace>\temp\<eclipseproject>\build\windows10\windows10\KonyApp\x86|x64|ARM\<applicationname>.appx
.
If an application is built using Kony Visualizer on Windows 7 or Windows 8/8.1 system, a zip file is created with all the required information with name konywindows10.zip
in the build output folder. The file can help you to create an APPX file.
In this section, you will learn about:
If an application is built on Windows 7, Windows 8/8.1, or Windows 10, a zip file named konywindows10.zip
is created with all the required information at:
On a separate Windows 10 system with development configuration, copy the above output folder (through a USB or pen drive). Ensure the extracted folder is not a system folder such as Program Files or Windows. The folder has the following batch file:
PackageFromZipFile.bat
– for x86, x64 and ARM. You can use PackageFromZipFile.bat
with either of the following options to deploy the application on to a x86/x64/ARM-based Windows 10 machine. Ensure APPX file is created in the same folder. The batch file deploys the application when the APPX file is created.
http://10.10.4.56:8888/<appid>r?type=windows10
.konywindows10.zip debug|release x86|x64|arm
.APPX files can be deployed to the Windows 10 machine (x86/x64/ARM) as mentioned in the compatibility matrix.
Add-AppDevPackage.ps1
with PowerShell on device. Windows10\KonyApp\x86|x64|ARM
folder, and execute Add-AppDevPackage.ps1
.If the application is built on Windows 7 or Windows 8/8.1, konywindows10.zip
file is created at <EclipseWorkspace>\temp\<Eclipse project name>\build\windows10\Windows10
.
To deploy an x64 APPX on an x64 machine, follow these steps:
To deploy an ARM APPX on an ARM tablet, follow these steps:
If an application is built on Windows 7 or Windows 8/8.1 the konyWindows10.zip
file is created at <EclipseWorkspace>\temp\<Eclipse project name>\build\windows10\Windows10
.
To deploy an ARM zip file on an ARM tablet, follow these steps:
Do not use Kony developer certificate to sign the customer application. The Kony developer certificate should be used only during the application development. When submitting the application to the store, you can use your own certificate to sign the APPX package.
To use different developer certificates, follow these steps:
To use the existing certificate file, use the Certificate file section, and select the required PFX certificate file. Ensure the publisher name of the existing certificate matches the publisher name provided previously. The build fails if the publisher names does not match.
makecert -cy end -eku 1.3.6.1.5.5.7.3.3 -sv yourcompany.pvk -n "CN=yourcompany" yourcompany.cer -b mm/dd/yyyy -e mm/dd/yyyy –r
pvk2pfx -pvk yourcompany.pvk -spc yourcompany.cer -pfx yourcompany.pfx
Once you have created and configured an app’s assets, resources, and services, you compile and link them by building your app.
To save time and effort you can rebuild your app with your most recent build settings, or you can build with new or different settings.
To build an app with your most recent build settings, do the following:
To build an app with new or different settings, do the following:
Note: While building a Windows application, you cannot build the app for other platforms. This is a limitation of Windows emulator.
Kony helps you launch and debug applications in Visual Studio.
Debugging an application involves two steps:
To open a Kony application in Visual Studio, follow these steps:
To debug the application, follow these steps:
You can open the solution folder, and make changes to the app manifest file. You must place the updated manifest file in the Resources folder so that the build process picks and uses for application build.
Note: After you place the new manifest file in resources, any change done in Kony Application properties page will not be considered as the files provided by user replace all Kony Application Properties page.
To update the manifest file and code signing certificate, follow these steps:
To create the app package, follow the Microsoft MSDN guidelines at https://msdn.microsoft.com/en-us/library/hh454036.aspx. You can also refer, https://msdn.microsoft.com/en-us/library/windows/hardware/dn265142%28v=vs.85%29.aspx.
Copyright © 2013 Kony, Inc. All rights reserved. |