Skip to content

Instantly share code, notes, and snippets.

public interface IConfigurationSettings { string ThirdPartyApiKey {get;} string AnotherThirdPartyApiKey { get; } } public class DebugConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public DebugConfigurationSettings () { ThirdPartyApiKey = "debugKey"; AnotherThirdPartyApiKey = "otherDebugKey"; } } public class ReleaseConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public ReleaseConfigurationSettings () { ThirdPartyApiKey = "stagingKey"; AnotherThirdPartyApiKey = "otherStagingKey"; } } public class AppStoreConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public AppStoreConfigurationSettings() { ThirdParyApiKey = "liveKey"; AnotherThirdParyApiKey = "otherLiveKey"; } }
@markgibaud
markgibaud / Output
Created January 15, 2016 20:21 — forked from fabiopelosin/Output
This scripts prints out the a list of the command line tools used by Xcode. It provides insight to what Xcode does to process resource files.
-> CopyPNGFile
Copies a .png file resource, optionally compressing it.
$ copypng [options] $(IPHONE_OPTIMIZE_OPTIONS) [input] [output]
-> Code Sign
Code-sign a framework, application, or other built target.
$ /usr/bin/codesign
-> Strip Symbols
Remove or modify the symbol table of a Mach-O binary
@markgibaud
markgibaud / NBuilderUtility.cs
Last active June 10, 2017 05:01
NBuilder Utility
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using FizzWare.NBuilder;
namespace NBuilder
{
public static class NBuilderUtility
{