Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23759] Windows: Allow a user to define a target Windows version and Minimum Version in the tiapp.xml

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-08-16T17:39:20.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsqe-5.4.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-08-10T19:16:28.000+0000
Updated2019-04-29T01:44:36.000+0000

Description

Description

In TIMOB-23758 it was discovered that the minimum and target SDK versions for a project are set to the same version which is the highest version on the machine. This should be configurable by the user in the tiapp.xml in a similar way to iOS and Android, and similar to Android maintain as close to a native setting as possible. Below is a proposed example that matches the values found in a native project (.csproj or .vcxproj) file
<windows>
    <TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
    <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
</windows>
<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21"/>
    </manifest>
</android>
<ios>
    <min-ios-ver>4.3</min-ios-ver>
</ios>

Comments

  1. Gary Mathews 2016-08-12

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/819
  2. Kota Iguchi 2016-08-15

    https://github.com/appcelerator/titanium_mobile_windows/pull/818
  3. Samir Mohammed 2017-02-01

    Verified fixed, was able to define a target version and a minimum target version. *Steps taken to verify:* 1. Add the following in to the tiapp.xml of an application
        <windows>
               <TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
               <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
           </windows>
       
    2. Went to the project directory and used the following commands:
       appc run -p windows -T wp-device -S 10.0.10586.0 --build-only
       
       appc run -p windows -T wp-device -S 10.0.10586.0
       
    With these commands I was able to build the project and also run it successfully. *Environment*
       Phone : Lumia 640 LTE (RM-1073)
       Operating System:
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 32bit
       

    CPUs = 4

    Memory = 17034395648 Node.js: Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium SDK: SDK Version = 6.1.0.v20170131075226

JSON Source