Thursday, April 11, 2013

1.0.0.62: What's new?

To get the latest version, run "Check for updates" from the Device Center or download.

New: Added simple GPS sample showing how to query the current location.

This sample shows the use of the GPS based location service. Read more.

New: Added support for specifying the target SDK version.

[do not use property TargetSdkVersion of PackageAttribute - this property will be replaced by a Project property in the next update]

The minimum Android version supported by your application is determined by the "Android version" specified in your dot42 project (see project properties - Android tab).

We have added a new property called TargetSdkVersion to the Package attribute. With this property you can specify the target SDK version of your application. This the maximum Android version for which forward-compatibility will be enabled. This property is typically used to enable the Android Holo theme when your app runs on a modern device. The app will still run on the minimum Android version.

This property corresponds to the android:targetSdkVersion attribute of the uses-sdk element in the Android manifest file.

You can use this property as follows:
[assembly: Package(TargetSdkVersion = "v4.0.3")]

Change: Reachable detection phase of the compiler has changed.

The dot42 compiler includes the minimum number of types and members that are required to have a working application. These types and member are identified during the reachable detection phase. This phase has changed. Before all public types were included. In this release only those types that are marked with an ApplicationRoot attribute (or derived attribute such as Activity) are included.

Fixed: Rare verify error

The major compiler redesign of 1.0.0.61 introduced a verify error in rare cases involving calling methods. This has been fixed.

No comments:

Post a Comment