Add support for preview versions of platforms.
ro.build.version.codename is a new property indicating whether a platform is in its release form (value = REL) or in development (value = dev branch name such as Donut). When the codename indicates a development/preview version then the API level must be ignored and this codename is used as a unique identifier of the platform. IAndroidTarget has been changed to return an instance of a new class AndroidVersion instead of the api level directly. This class helps deals with the logic of comparing version from targets or devices. This change impacts all of the sdk manager to deal with targets identified by codename instead of api level. This in turn impacts everything that relies on the sdkmanager: ADT (build, launch, project creation), the AVD manager, the SDK updater.
This commit is contained in:
@@ -28,8 +28,11 @@ import java.util.Map;
|
||||
public interface IDevice {
|
||||
|
||||
public final static String PROP_BUILD_VERSION = "ro.build.version.release";
|
||||
public final static String PROP_BUILD_VERSION_NUMBER = "ro.build.version.sdk";
|
||||
public final static String PROP_BUILD_API_LEVEL = "ro.build.version.sdk";
|
||||
public final static String PROP_BUILD_CODENAME = "ro.build.version.codename";
|
||||
|
||||
public final static String PROP_DEBUGGABLE = "ro.debuggable";
|
||||
|
||||
/** Serial number of the first connected emulator. */
|
||||
public final static String FIRST_EMULATOR_SN = "emulator-5554"; //$NON-NLS-1$
|
||||
/** Device change bit mask: {@link DeviceState} change. */
|
||||
@@ -39,6 +42,9 @@ public interface IDevice {
|
||||
/** Device change bit mask: build info change. */
|
||||
public static final int CHANGE_BUILD_INFO = 0x0004;
|
||||
|
||||
/** @deprecated Use {@link #PROP_BUILD_API_LEVEL}. */
|
||||
public final static String PROP_BUILD_VERSION_NUMBER = PROP_BUILD_API_LEVEL;
|
||||
|
||||
/**
|
||||
* The state of a device.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user