-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Added Airframe.Configuration
- Renamed build to Airframe - Add Configuration for nuspec id
- Loading branch information
1 parent
c3c4463
commit 36b831b
Showing
6 changed files
with
136 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd"> | ||
<metadata> | ||
<id>Rocket.Surgery.Airframe.Configuration</id> | ||
<version>$version$</version> | ||
<authors>RLittlesII</authors> | ||
<owners >Rocket Surgeons Guild</owners> | ||
<copyright>Copyright Rodney Littles, II © 2019</copyright> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>ReactiveUI base abstractions for Xamarin.</description> | ||
<projectUrl>https://github.com/RocketSurgeonsGuild/Airframe.git</projectUrl> | ||
<repository type="git" url="https://github.com/RocketSurgeonsGuild/Airframe"/> | ||
<iconUrl>https://raw.githubusercontent.com/RocketSurgeonsGuild/graphics/master/png/social-square-thrust-rounded.png</iconUrl> | ||
<tags>ReactiveUI Xamarin MVVM</tags> | ||
<dependencies> | ||
<group> | ||
<dependency id="ReactiveUI" version="9.7.2" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
|
||
<file src="..\src\Configuration\bin\$configuration$\netstandard2.0\Rocket.Surgery.Airframe.Configuration.dll" target="lib\netstandard2.0" /> | ||
<file src="..\src\Configuration\bin\$configuration$\netstandard2.0\Rocket.Surgery.Airframe.Configuration.pdb" target="lib\netstandard2.0" /> | ||
|
||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
namespace Rocket.Surgery.Airframe.Configuration | ||
{ | ||
/// <summary> | ||
/// Enumeration of environment configurations. | ||
/// </summary> | ||
public enum Configuration | ||
{ | ||
/// <summary> | ||
/// Debug Mock. | ||
/// </summary> | ||
DebugMock, | ||
|
||
/// <summary> | ||
/// Debug Dev. | ||
/// </summary> | ||
DebugDev, | ||
|
||
/// <summary> | ||
/// Debug Test. | ||
/// </summary> | ||
DebugTest, | ||
|
||
/// <summary> | ||
/// Mock. | ||
/// </summary> | ||
Mock, | ||
|
||
/// <summary> | ||
/// Dev. | ||
/// </summary> | ||
Dev, | ||
|
||
/// <summary> | ||
/// Test. | ||
/// </summary> | ||
Test, | ||
|
||
/// <summary> | ||
/// Store. | ||
/// </summary> | ||
Store | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>Rocket.Surgery.Airframe.Configuration</RootNamespace> | ||
<AssemblyName>Rocket.Surgery.Airframe.Configuration</AssemblyName> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Rocket.Surgery.Airframe.Configuration | ||
{ | ||
/// <summary> | ||
/// Represents a default xamarin mobile configuration. | ||
/// </summary> | ||
[SuppressMessage("Microsoft.Usage", "CA2214", Justification = "Consumer is aware of virtual constructor call.", Scope = "member")] | ||
public abstract class SolutionConfiguration | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SolutionConfiguration"/> class. | ||
/// </summary> | ||
protected SolutionConfiguration() | ||
{ | ||
ConfigureEnvironment(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the current environment configuration. | ||
/// </summary> | ||
public Configuration Current { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to user mock data. | ||
/// </summary> | ||
public bool UseMockData { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the appcenter configuration. | ||
/// </summary> | ||
public Dictionary<string, string> AppCenter { get; set; } | ||
|
||
/// <summary> | ||
/// Overrideable method to configure environment. | ||
/// </summary> | ||
public abstract void ConfigureEnvironment(); | ||
} | ||
} |