Skip to content

Commit

Permalink
added default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Marcussen committed Feb 7, 2018
1 parent f9e8d88 commit 7278d24
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 31 deletions.
8 changes: 5 additions & 3 deletions Types/BuildConfigRecordSetType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public BuildConfigRecordSetType(int value
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType) : base(value, displayName, projectType, FieldHolderType.Packaging, true, order, isForClient, isProdReady, fieldDisplayType)
, StringFieldDisplayType fieldDisplayType
, string defaultValue) : base(value, displayName, projectType, FieldHolderType.Packaging, true, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}

Expand All @@ -23,8 +24,9 @@ public Shared(int value
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType)
: base(value, displayName, ProjectType.Shared, order, isForClient, isProdReady, fieldDisplayType)
, StringFieldDisplayType fieldDisplayType
, string defaultValue)
: base(value, displayName, ProjectType.Shared, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}
}
Expand Down
38 changes: 19 additions & 19 deletions Types/FieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,48 +284,48 @@ public static readonly AppIconFieldType AppIcon29x29_3x

//packaging
public static PackagingFieldType PackagingSharedName
= new PackagingFieldType(-50, "Shared name", ProjectType.Shared, true, 10, false, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-50, "Shared name", ProjectType.Shared, true, 10, false, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingSharedIdentifier
= new PackagingFieldType(-51, "Shared identifier", ProjectType.Shared, true, 20, false, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-51, "Shared identifier", ProjectType.Shared, true, 20, false, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingSharedVersionText
= new PackagingFieldType(-52, "Shared version", ProjectType.Shared, true, 30, false, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-52, "Shared version", ProjectType.Shared, true, 30, false, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingSharedVersionNumber
= new PackagingFieldType(-53, "Shared version number", ProjectType.Shared, true, 40, false, true, StringFieldDisplayType.Number);
= new PackagingFieldType(-53, "Shared version number", ProjectType.Shared, true, 40, false, true, StringFieldDisplayType.Number, String.Empty);


public static PackagingFieldType PackagingDroidName
= new PackagingFieldType(-54, "Droid name", ProjectType.Droid, true, 10, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-54, "Droid name", ProjectType.Droid, true, 10, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingDroidIdentifier
= new PackagingFieldType(-55, "Droid identifier", ProjectType.Droid, true, 20, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-55, "Droid identifier", ProjectType.Droid, true, 20, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingDroidVersionText
= new PackagingFieldType(-56, "Droid version", ProjectType.Droid, true, 30, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-56, "Droid version", ProjectType.Droid, true, 30, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingDroidVersionNumber
= new PackagingFieldType(-57, "Droid version number", ProjectType.Droid, true, 40, true, true, StringFieldDisplayType.Number);
= new PackagingFieldType(-57, "Droid version number", ProjectType.Droid, true, 40, true, true, StringFieldDisplayType.Number, String.Empty);
public static PackagingFieldType PackagingDroidAppIconName
= new PackagingFieldType(-63, "Droid app icon name", ProjectType.Droid, false, 50, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-63, "Droid app icon name", ProjectType.Droid, false, 50, true, true, StringFieldDisplayType.Text, "ic_launcher");
public static PackagingFieldType PackagingDroidSplashName
= new PackagingFieldType(-64, "Droid splash image name", ProjectType.Droid, false, 60, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-64, "Droid splash image name", ProjectType.Droid, false, 60, true, true, StringFieldDisplayType.Text, "ic_splash");

public static PackagingFieldType PackagingIosName
= new PackagingFieldType(-58, "Ios name", ProjectType.Ios, true, 10, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-58, "Ios name", ProjectType.Ios, true, 10, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingIosIdentifier
= new PackagingFieldType(-59, "Ios identifier", ProjectType.Ios, true, 20, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-59, "Ios identifier", ProjectType.Ios, true, 20, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingIosVersionText
= new PackagingFieldType(-60, "Ios version", ProjectType.Ios, true, 30, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-60, "Ios version", ProjectType.Ios, true, 30, true, true, StringFieldDisplayType.Text, String.Empty);
public static PackagingFieldType PackagingIosVersionNumber
= new PackagingFieldType(-61, "Ios version number", ProjectType.Ios, true, 40, true, true, StringFieldDisplayType.Number);
= new PackagingFieldType(-61, "Ios version number", ProjectType.Ios, true, 40, true, true, StringFieldDisplayType.Number, String.Empty);
public static PackagingFieldType PackagingIosAssetCatalogueName
= new PackagingFieldType(-67, "Ios asset catalogue name", ProjectType.Ios, false, 50, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-67, "Ios asset catalogue name", ProjectType.Ios, false, 50, true, true, StringFieldDisplayType.Text, "BuildAssets");
public static PackagingFieldType PackagingIosAppIconXcAssetsName
= new PackagingFieldType(-65, "Ios app icon xcassets name", ProjectType.Ios, false, 60, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-65, "Ios app icon xcassets name", ProjectType.Ios, false, 60, true, true, StringFieldDisplayType.Text, "AppIcon");
public static PackagingFieldType PackagingIosLaunchImageXcAssetsName
= new PackagingFieldType(-66, "Ios launch image xcassets name", ProjectType.Ios, false, 70, true, true, StringFieldDisplayType.Text);
= new PackagingFieldType(-66, "Ios launch image xcassets name", ProjectType.Ios, false, 70, true, true, StringFieldDisplayType.Text, "Launch");
public static PackagingFieldType PackagingIosUsesNonExemptEncryption
= new PackagingFieldType(-62, "Ios uses non exempt encryption", ProjectType.Ios, false, 80, true, true, StringFieldDisplayType.Bool);
= new PackagingFieldType(-62, "Ios uses non exempt encryption", ProjectType.Ios, false, 80, true, true, StringFieldDisplayType.Bool, "0");


public static BuildConfigRecordSetType BuildConfigFieldSetCompilerConstants
= new BuildConfigRecordSetType(-70, "Compiler constants", ProjectType.Shared, 10, true, true, StringFieldDisplayType.Text);
= new BuildConfigRecordSetType(-70, "Compiler constants", ProjectType.Shared, 10, true, true, StringFieldDisplayType.Text, String.Empty);

//splash
public static readonly SplashFieldType SplashSharedMaster
Expand Down
21 changes: 13 additions & 8 deletions Types/PackagingFieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ public PackagingFieldType(int value
, bool isShared
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType) : base(value, displayName, projectType, FieldHolderType.Packaging, isShared, order, isForClient, isProdReady, fieldDisplayType)
, bool isProdReady
, StringFieldDisplayType fieldDisplayType
, string defaultValue)
: base(value, displayName, projectType, FieldHolderType.Packaging, isShared, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}

Expand All @@ -26,8 +28,9 @@ public Shared(int value
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType)
: base(value, displayName, ProjectType.Shared, isShared, order, isForClient, isProdReady, fieldDisplayType)
, StringFieldDisplayType fieldDisplayType
, string defaultValue
) : base(value, displayName, ProjectType.Shared, isShared, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}
}
Expand All @@ -40,8 +43,9 @@ public Droid(int value
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType)
: base(value, displayName, ProjectType.Droid, isShared, order, isForClient, isProdReady, fieldDisplayType)
, StringFieldDisplayType fieldDisplayType
, string defaultValue
) : base(value, displayName, ProjectType.Droid, isShared, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}
}
Expand All @@ -54,8 +58,9 @@ public Ios(int value
, bool isShared
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType)
: base(value, displayName, ProjectType.Ios, isShared, order, isForClient, isProdReady, fieldDisplayType)
, StringFieldDisplayType fieldDisplayType
, string defaultValue
) : base(value, displayName, ProjectType.Ios, isShared, order, isForClient, isProdReady, fieldDisplayType, defaultValue)
{
}
}
Expand Down
8 changes: 7 additions & 1 deletion Types/StringFieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public class StringFieldType : FieldType

private bool _isShared;
public bool IsShared { get { return _isShared; } }

private string _defaultValue;
public string DefaultValue;

public StringFieldType(int value
, string displayName
, ProjectType projectType
Expand All @@ -19,10 +23,12 @@ public StringFieldType(int value
, int order
, bool isForClient
, bool isProdReady
, StringFieldDisplayType fieldDisplayType) : base(value, displayName, projectType, fieldHolderType, order, isForClient, isProdReady)
, StringFieldDisplayType fieldDisplayType
, string defaultValue) : base(value, displayName, projectType, fieldHolderType, order, isForClient, isProdReady)
{
_isShared = isShared;
_fieldDisplayType = fieldDisplayType;
_defaultValue = defaultValue;
}

}
Expand Down

0 comments on commit 7278d24

Please sign in to comment.