36 строки
1.3 KiB
C#
36 строки
1.3 KiB
C#
using System;
|
|
|
|
#if MTOUCH || MMP || BUNDLER
|
|
using Xamarin.Bundler;
|
|
using Xamarin.Utils;
|
|
#endif
|
|
|
|
#if MTOUCH
|
|
using MonoTouch;
|
|
#endif
|
|
|
|
namespace Xamarin {
|
|
sealed class ProductConstants {
|
|
public string Version;
|
|
public string Revision;
|
|
public const string Hash = "@PRODUCT_HASH@";
|
|
|
|
ProductConstants (string version, string revision)
|
|
{
|
|
Version = version;
|
|
Revision = revision;
|
|
}
|
|
#if BUNDLER
|
|
public readonly static ProductConstants iOS = new ProductConstants ("@IOS_NUGET_VERSION@", "@IOS_NUGET_REVISION@");
|
|
public readonly static ProductConstants tvOS = new ProductConstants ("@TVOS_NUGET_VERSION@", "@TVOS_NUGET_REVISION@");
|
|
public readonly static ProductConstants watchOS = new ProductConstants ("@WATCHOS_NUGET_VERSION@", "@WATCHOS_NUGET_REVISION@");
|
|
public readonly static ProductConstants macOS = new ProductConstants ("@MACOS_NUGET_VERSION@", "@MACOS_NUGET_REVISION@");
|
|
#else
|
|
public readonly static ProductConstants iOS = new ProductConstants ("@IOS_VERSION@", "@IOS_REVISION@");
|
|
public readonly static ProductConstants tvOS = new ProductConstants ("@TVOS_VERSION@", "@TVOS_REVISION@");
|
|
public readonly static ProductConstants watchOS = new ProductConstants ("@WATCHOS_VERSION@", "@WATCHOS_REVISION@");
|
|
public readonly static ProductConstants macOS = new ProductConstants ("@MACOS_VERSION@", "@MACOS_REVISION@");
|
|
#endif
|
|
}
|
|
}
|