Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Belinskaya committed Dec 1, 2018
0 parents commit 29dd1cc
Show file tree
Hide file tree
Showing 184 changed files with 16,060 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .cloc.report
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
12 text files.
classified 12 files 12 unique files.
0 files ignored.

github.com/AlDanial/cloc v 1.80 T=0.02 s (781.6 files/s, 54188.1 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Swift 12 110 167 555
-------------------------------------------------------------------------------
SUM: 12 110 167 555
-------------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xcodebuild_arguments:
- "-project"
- "AppVersion.xcodeproj"
- "-scheme"
- "AppVersion"
module: "AppVersion"
14 changes: 14 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
reporter: "xcode"

included:
- AppVersion/Source/

disabled_rules:
- nesting

line_length:
- 180

identifier_name:
min_length: 2
max_length: 30
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: swift
osx_image: xcode10.1
xcode_project: AppVersion.xcodeproj
xcode_scheme: AppVersion
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPhone XS
13 changes: 13 additions & 0 deletions AppVersion.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Pod::Spec.new do |s|
s.name = "AppVersion.swift"
s.version = "1.0"
s.summary = "Micro library to display app version within iOS app."
s.homepage = "https://github.com/amebalabs/AppVersion"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Kate Belinskaya" => "kate.belinskaya@gmail.com" }
s.platform = :ios, "9.0"

s.source = { :git => "https://github.com/amebalabs/AppVersion.git", :tag => s.version }
s.source_files = "AppVersion/Source/*.swift"
s.swift_version = "4.2"
end
807 changes: 807 additions & 0 deletions AppVersion.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
125 changes: 125 additions & 0 deletions AppVersion.xcodeproj/xcshareddata/xcschemes/AppVersion.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
BuildableName = "AppVersion.framework"
BlueprintName = "AppVersion"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69921A9CEAE009C46CC"
BuildableName = "AppVersionTests.xctest"
BlueprintName = "AppVersionTests"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
BuildableName = "AppVersion.framework"
BlueprintName = "AppVersion"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69921A9CEAE009C46CC"
BuildableName = "AppVersionTests.xctest"
BlueprintName = "AppVersionTests"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
BuildableName = "AppVersion.framework"
BlueprintName = "AppVersion"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</MacroExpansion>
<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 = "3946C69021A9CEAE009C46CC"
BuildableName = "AppVersion.framework"
BlueprintName = "AppVersion"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
BuildableName = "AppVersion.framework"
BlueprintName = "AppVersion"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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>SchemeUserState</key>
<dict>
<key>AppVersion.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>AppVersionExample.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
BuildableName = "AppVersionExample.app"
BlueprintName = "AppVersionExample"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
BuildableName = "AppVersionExample.app"
BlueprintName = "AppVersionExample"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</MacroExpansion>
<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">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
BuildableName = "AppVersionExample.app"
BlueprintName = "AppVersionExample"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
BuildableName = "AppVersionExample.app"
BlueprintName = "AppVersionExample"
ReferencedContainer = "container:AppVersion.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
16 changes: 16 additions & 0 deletions AppVersion/AppVersion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// AppVersion.h
// AppVersion
//

#import <UIKit/UIKit.h>

//! Project version number for AppVersion.
FOUNDATION_EXPORT double AppVersionVersionNumber;

//! Project version string for AppVersion.
FOUNDATION_EXPORT const unsigned char AppVersionVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <AppVersion/PublicHeader.h>


22 changes: 22 additions & 0 deletions AppVersion/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>$(DEVELOPMENT_LANGUAGE)</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.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>
12 changes: 12 additions & 0 deletions AppVersion/Source/ Extensions/Date+AppVersion.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Date+AppVersion.swift
// AppVersion
//

import Foundation

extension Date {
func daysFromToday() -> UInt {
return UInt(abs(Calendar.current.dateComponents([.day], from: self, to: Date()).day!))
}
}
15 changes: 15 additions & 0 deletions AppVersion/Source/ Extensions/DateFormatter+ISO8601Full.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// DateFormatter+ISO8601Full.swift
// AppVersion
//

extension DateFormatter {
static let iso8601Full: DateFormatter = {
let formatter = DateFormatter()
formatter.calendar = Calendar(identifier: .iso8601)
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.timeZone = TimeZone(secondsFromGMT: 0)
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
return formatter
}()
}
Loading

0 comments on commit 29dd1cc

Please sign in to comment.