Removing Xcode project and source.

This commit is contained in:
Simon Blommegård
2017-02-14 13:15:12 +01:00
parent 971dbc3826
commit f2bac2760b
14 changed files with 7 additions and 823 deletions
-10
View File
@@ -1,10 +0,0 @@
language: objective-c
osx_image: xcode7.3
env:
- "DESTINATION='platform=iOS Simulator,name=iPhone 6S' ACTION=build"
- "DESTINATION='platform=OS X' ACTION=build"
- "DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' ACTION=build"
script:
- set -o pipefail && xcodebuild -scheme FlagKit -destination "$DESTINATION" $ACTION | xcpretty
-141
View File
@@ -1,141 +0,0 @@
#
# Be sure to run `pod spec lint FlagKit.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# These will help people to find your library, and whilst it
# can feel like a chore to fill in it's definitely to your advantage. The
# summary should be tweet-length, and the description more in depth.
#
s.name = "FlagKit"
s.version = "1.1.1"
s.summary = "Beautiful flag icons for usage in apps and on the web."
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Beautiful flag icons for usage in your apps.
Includes the vast majority of country flags out there and some special ones (World, EU).
DESC
s.homepage = "https://github.com/madebybowtie/FlagKit"
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Licensing your code is important. See http://choosealicense.com for more info.
# CocoaPods will detect a license file if there is a named LICENSE*
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
#
#s.license = "MIT (example)"
s.license = { :type => "MIT", :file => "LICENSE" }
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the authors of the library, with email addresses. Email addresses
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
# accepts just a name if you'd rather not provide an email address.
#
# Specify a social_media_url where others can refer to, for example a twitter
# profile URL.
#
s.author = { "Bowtie" => "howdy@madebybowtie.com" }
# Or just: s.author = "Simon Blommegård"
# s.authors = { "Simon Blommegård" => "simon@blommegard.se" }
s.social_media_url = "http://twitter.com/madebybowtie"
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target. You can optionally include the target after the platform.
#
# s.platform = :ios
# s.platform = :ios, "5.0"
# When using multiple platforms
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
# s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#
s.source = { :git => "https://github.com/madebybowtie/FlagKit.git", :tag => "v1.1.1" }
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# CocoaPods is smart about how it includes source code. For source files
# giving a folder will include any swift, h, m, mm, c & cpp files.
# For header files it will include any header in the folder.
# Not including the public_header_files will make all headers public.
#
s.ios.source_files = "Source/FlagKit.swift", "Source/UIImage.swift"
s.tvos.source_files = "Source/FlagKit.swift", "Source/UIImage.swift"
s.osx.source_files = "Source/FlagKit.swift", "Source/NSImage.swift"
#s.exclude_files = "Classes/Exclude"
# s.public_header_files = "Classes/**/*.h"
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script. Anything else will be cleaned.
# You can preserve files from being cleaned, please don't preserve
# non-essential files like tests, examples and documentation.
#
s.resource = "FlagKit.xcassets"
#s.resources = "Resources/*.png"
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Link your library with frameworks, or libraries. Libraries do not include
# the lib prefix of their name.
#
# s.framework = "SomeFramework"
# s.frameworks = "SomeFramework", "AnotherFramework"
# s.library = "iconv"
# s.libraries = "iconv", "xml2"
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If your library depends on compiler flags you can set them in the xcconfig hash
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.
# s.requires_arc = true
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
end
-335
View File
@@ -1,335 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
F47E01E41C609F960038898A /* Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47E01E31C609F960038898A /* Image.swift */; };
F47E01EB1C60AF0C0038898A /* FlagKit.h in Headers */ = {isa = PBXBuildFile; fileRef = F47E01EA1C60AF0C0038898A /* FlagKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
F4AD7BD61BDD6EB200713F1B /* FlagKit.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4AD7BD51BDD6EB200713F1B /* FlagKit.xcassets */; };
F4AD7BD91BDD6ED800713F1B /* FlagKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4AD7BD81BDD6ED800713F1B /* FlagKit.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
F44A7B8A1D5FE3E200547A0B /* FlagKitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlagKitTests.swift; sourceTree = "<group>"; };
F44A7B8C1D5FE3E200547A0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F47E01DD1C6099340038898A /* Info-iOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = "<group>"; };
F47E01DF1C60993F0038898A /* Info-OSX.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-OSX.plist"; sourceTree = "<group>"; };
F47E01E11C6099480038898A /* Info-tvOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-tvOS.plist"; sourceTree = "<group>"; };
F47E01E31C609F960038898A /* Image.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Image.swift; sourceTree = "<group>"; };
F47E01EA1C60AF0C0038898A /* FlagKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FlagKit.h; sourceTree = "<group>"; };
F4AD7BBC1BDD6B6D00713F1B /* FlagKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FlagKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F4AD7BD51BDD6EB200713F1B /* FlagKit.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = FlagKit.xcassets; sourceTree = SOURCE_ROOT; };
F4AD7BD81BDD6ED800713F1B /* FlagKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlagKit.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
F4AD7BB81BDD6B6D00713F1B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
F44A7B891D5FE3E200547A0B /* FlagKitTests */ = {
isa = PBXGroup;
children = (
F44A7B8A1D5FE3E200547A0B /* FlagKitTests.swift */,
F44A7B8C1D5FE3E200547A0B /* Info.plist */,
);
path = FlagKitTests;
sourceTree = "<group>";
};
F47E01DC1C6099010038898A /* Supporting Files */ = {
isa = PBXGroup;
children = (
F47E01E11C6099480038898A /* Info-tvOS.plist */,
F47E01DF1C60993F0038898A /* Info-OSX.plist */,
F47E01DD1C6099340038898A /* Info-iOS.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
F4AD7BB21BDD6B6D00713F1B = {
isa = PBXGroup;
children = (
F4AD7BD41BDD6E8300713F1B /* Source */,
F44A7B891D5FE3E200547A0B /* FlagKitTests */,
F4AD7BBD1BDD6B6D00713F1B /* Products */,
);
sourceTree = "<group>";
};
F4AD7BBD1BDD6B6D00713F1B /* Products */ = {
isa = PBXGroup;
children = (
F4AD7BBC1BDD6B6D00713F1B /* FlagKit.framework */,
);
name = Products;
sourceTree = "<group>";
};
F4AD7BD41BDD6E8300713F1B /* Source */ = {
isa = PBXGroup;
children = (
F47E01EA1C60AF0C0038898A /* FlagKit.h */,
F4AD7BD81BDD6ED800713F1B /* FlagKit.swift */,
F47E01E31C609F960038898A /* Image.swift */,
F4AD7BD51BDD6EB200713F1B /* FlagKit.xcassets */,
F47E01DC1C6099010038898A /* Supporting Files */,
);
path = Source;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
F4AD7BB91BDD6B6D00713F1B /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
F47E01EB1C60AF0C0038898A /* FlagKit.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
F4AD7BBB1BDD6B6D00713F1B /* FlagKit */ = {
isa = PBXNativeTarget;
buildConfigurationList = F4AD7BC41BDD6B6D00713F1B /* Build configuration list for PBXNativeTarget "FlagKit" */;
buildPhases = (
F4AD7BB71BDD6B6D00713F1B /* Sources */,
F4AD7BB81BDD6B6D00713F1B /* Frameworks */,
F4AD7BB91BDD6B6D00713F1B /* Headers */,
F4AD7BBA1BDD6B6D00713F1B /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = FlagKit;
productName = "FlagKit-iOS";
productReference = F4AD7BBC1BDD6B6D00713F1B /* FlagKit.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F4AD7BB31BDD6B6D00713F1B /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = Bowtie;
TargetAttributes = {
F4AD7BBB1BDD6B6D00713F1B = {
CreatedOnToolsVersion = 7.1;
LastSwiftMigration = 0800;
};
};
};
buildConfigurationList = F4AD7BB61BDD6B6D00713F1B /* Build configuration list for PBXProject "FlagKit" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = F4AD7BB21BDD6B6D00713F1B;
productRefGroup = F4AD7BBD1BDD6B6D00713F1B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
F4AD7BBB1BDD6B6D00713F1B /* FlagKit */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
F4AD7BBA1BDD6B6D00713F1B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4AD7BD61BDD6EB200713F1B /* FlagKit.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
F4AD7BB71BDD6B6D00713F1B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4AD7BD91BDD6ED800713F1B /* FlagKit.swift in Sources */,
F47E01E41C609F960038898A /* Image.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
F4AD7BC21BDD6B6D00713F1B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
name = Debug;
};
F4AD7BC31BDD6B6D00713F1B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
TVOS_DEPLOYMENT_TARGET = 9.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
name = Release;
};
F4AD7BC51BDD6B6D00713F1B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Source/Info-iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.madebybowtie.FlagKit;
PRODUCT_NAME = FlagKit;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 2.3;
TARGETED_DEVICE_FAMILYS = "";
};
name = Debug;
};
F4AD7BC61BDD6B6D00713F1B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Source/Info-iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.madebybowtie.FlagKit;
PRODUCT_NAME = FlagKit;
SKIP_INSTALL = YES;
SWIFT_VERSION = 2.3;
TARGETED_DEVICE_FAMILYS = "";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
F4AD7BB61BDD6B6D00713F1B /* Build configuration list for PBXProject "FlagKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F4AD7BC21BDD6B6D00713F1B /* Debug */,
F4AD7BC31BDD6B6D00713F1B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F4AD7BC41BDD6B6D00713F1B /* Build configuration list for PBXNativeTarget "FlagKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F4AD7BC51BDD6B6D00713F1B /* Debug */,
F4AD7BC61BDD6B6D00713F1B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = F4AD7BB31BDD6B6D00713F1B /* Project object */;
}
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:/Users/simon/Dev/FlagKit/FlagKit-iOS/FlagKit.xcodeproj">
</FileRef>
</Workspace>
@@ -1,80 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0710"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4AD7BBB1BDD6B6D00713F1B"
BuildableName = "FlagKit.framework"
BlueprintName = "FlagKit"
ReferencedContainer = "container:FlagKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4AD7BBB1BDD6B6D00713F1B"
BuildableName = "FlagKit.framework"
BlueprintName = "FlagKit"
ReferencedContainer = "container:FlagKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F4AD7BBB1BDD6B6D00713F1B"
BuildableName = "FlagKit.framework"
BlueprintName = "FlagKit"
ReferencedContainer = "container:FlagKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
-35
View File
@@ -1,35 +0,0 @@
//
// FlagKitTests.swift
// FlagKitTests
//
// Created by Simon Blommegard on 14/08/16.
// Copyright © 2016 Bowtie. All rights reserved.
//
import XCTest
class FlagKitTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}
}
-24
View File
@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
+7 -24
View File
@@ -2,37 +2,20 @@
Beautiful flag icons for usage in apps and on the web.
## Installation (iOS/OSX)
#### `FlagKit.xcassets`
Just add `FlagKit.xcassets` to your target.
#### Carthage
Add FlagKit to your `Cartfile`:
```
github "madebybowtie/FlagKit"
```
#### CocoaPods
Add FlagKit to your `Podfile`:
```
pod 'FlagKit'
```
## Usage (iOS/tvOS/macOS/watchOS)
Add `FlagKit.xcassets` to your target.
## Usage (iOS/OSX)
For OSX, just replace `UIImage` with `NSImage` below
#### Examples
For macOS, just replace `UIImage` with `NSImage` below.
Get an icon for your locale or a world flag:
```swift
UIImage(flagImageWithCountryCode: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountryCode) as! String)
UIImage(flagImageForSpecialFlag: .World)
```
```objc
[[UIImage alloc] initWithFlagImageWithCountryCode:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];
```
If you are just adding `FlagKit.xcassets` to you target, you can simply use the standard `UIImage/NSImage` methods:
Get the image for your locale and get a specific image:
```swift
UIImage(named: NSLocale.autoupdatingCurrentLocale().objectForKey(NSLocaleCountryCode) as! String)
UIImage(named: "LGBT")
```
```objc
[UIImage imageNamed:[[NSLocale autoupdatingCurrentLocale] objectForKey:NSLocaleCountryCode]];
[UIImage imageNamed:@"LGBT"];
```
## Sketch
-19
View File
@@ -1,19 +0,0 @@
//
// FlagKit.h
// FlagKit
//
// Created by Simon Blommegard on 25/10/15.
// Copyright © 2015 Bowtie. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for FlagKit.
FOUNDATION_EXPORT double FlagKitVersionNumber;
//! Project version string for FlagKit.
FOUNDATION_EXPORT const unsigned char FlagKitVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <FlagKit/PublicHeader.h>
-34
View File
@@ -1,34 +0,0 @@
//
// UIImage+FlagKit.swift
// FlagKit
//
// Created by Simon Blommegård on 22/09/15.
// Copyright © 2015 Bowtie. All rights reserved.
//
import Foundation
public class FlagKit {
public enum SpecialFlag: String {
case World = "WW"
case EuropeanUnion = "EU"
case NorthAmerica = "WW-NAM"
case SouthAmerica = "WW-SAM"
case Europe = "WW-EUR"
case Africa = "WW-AFR"
case Asia = "WW-ASI"
case Oceania = "WW-AUS"
case California = "US-CA"
case Skåne = "SE-SKA"
case England = "GB-ENG"
case Scotland = "GB-SCT"
case Wales = "GB-WLS"
case Pride = "LGBT"
}
public class var assetBundle: NSBundle {
get {
return NSBundle(forClass: FlagKit.self)
}
}
}
-34
View File
@@ -1,34 +0,0 @@
//
// Image.swift
// FlagKit
//
// Created by Simon Blommegård on 21/10/15.
// Copyright © 2015 Bowtie. All rights reserved.
//
#if os(OSX)
import Cocoa
typealias Image = NSImage
#else
import UIKit
typealias Image = UIImage
#endif
public extension Image {
#if os(OSX)
public convenience init?(flagImageWithCountryCode countryCode: String) {
guard let image = FlagKit.assetBundle.imageForResource(countryCode) else {return nil}
guard let CGImage = image.CGImageForProposedRect(nil, context: nil, hints: nil) else {return nil}
self.init(CGImage:CGImage, size:image.size)
}
#else
public convenience init?(flagImageWithCountryCode countryCode: String) {
self.init(named:countryCode, inBundle:FlagKit.assetBundle, compatibleWithTraitCollection:nil)
}
#endif
public convenience init?(flagImageForSpecialFlag specialFlag: FlagKit.SpecialFlag) {
self.init(flagImageWithCountryCode:specialFlag.rawValue)
}
}
-28
View File
@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Bowtie. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
-26
View File
@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
-26
View File
@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>