Skip to content

Commit 29dd1cc

Browse files
committed
initial
0 parents  commit 29dd1cc

File tree

184 files changed

+16060
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+16060
-0
lines changed

.cloc.report

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
12 text files.
2+
classified 12 files 12 unique files.
3+
0 files ignored.
4+
5+
github.com/AlDanial/cloc v 1.80 T=0.02 s (781.6 files/s, 54188.1 lines/s)
6+
-------------------------------------------------------------------------------
7+
Language files blank comment code
8+
-------------------------------------------------------------------------------
9+
Swift 12 110 167 555
10+
-------------------------------------------------------------------------------
11+
SUM: 12 110 167 555
12+
-------------------------------------------------------------------------------

.jazzy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
xcodebuild_arguments:
2+
- "-project"
3+
- "AppVersion.xcodeproj"
4+
- "-scheme"
5+
- "AppVersion"
6+
module: "AppVersion"

.swiftlint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
reporter: "xcode"
2+
3+
included:
4+
- AppVersion/Source/
5+
6+
disabled_rules:
7+
- nesting
8+
9+
line_length:
10+
- 180
11+
12+
identifier_name:
13+
min_length: 2
14+
max_length: 30

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: swift
2+
osx_image: xcode10.1
3+
xcode_project: AppVersion.xcodeproj
4+
xcode_scheme: AppVersion
5+
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPhone XS

AppVersion.podspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Pod::Spec.new do |s|
2+
s.name = "AppVersion.swift"
3+
s.version = "1.0"
4+
s.summary = "Micro library to display app version within iOS app."
5+
s.homepage = "https://github.com/amebalabs/AppVersion"
6+
s.license = { :type => 'MIT', :file => 'LICENSE' }
7+
s.author = { "Kate Belinskaya" => "[email protected]" }
8+
s.platform = :ios, "9.0"
9+
10+
s.source = { :git => "https://github.com/amebalabs/AppVersion.git", :tag => s.version }
11+
s.source_files = "AppVersion/Source/*.swift"
12+
s.swift_version = "4.2"
13+
end

AppVersion.xcodeproj/project.pbxproj

Lines changed: 807 additions & 0 deletions
Large diffs are not rendered by default.

AppVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
18+
BuildableName = "AppVersion.framework"
19+
BlueprintName = "AppVersion"
20+
ReferencedContainer = "container:AppVersion.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "NO"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "NO">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "3946C69921A9CEAE009C46CC"
32+
BuildableName = "AppVersionTests.xctest"
33+
BlueprintName = "AppVersionTests"
34+
ReferencedContainer = "container:AppVersion.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
codeCoverageEnabled = "YES"
44+
onlyGenerateCoverageForSpecifiedTargets = "YES"
45+
shouldUseLaunchSchemeArgsEnv = "YES">
46+
<CodeCoverageTargets>
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
50+
BuildableName = "AppVersion.framework"
51+
BlueprintName = "AppVersion"
52+
ReferencedContainer = "container:AppVersion.xcodeproj">
53+
</BuildableReference>
54+
</CodeCoverageTargets>
55+
<Testables>
56+
<TestableReference
57+
skipped = "NO"
58+
parallelizable = "YES">
59+
<BuildableReference
60+
BuildableIdentifier = "primary"
61+
BlueprintIdentifier = "3946C69921A9CEAE009C46CC"
62+
BuildableName = "AppVersionTests.xctest"
63+
BlueprintName = "AppVersionTests"
64+
ReferencedContainer = "container:AppVersion.xcodeproj">
65+
</BuildableReference>
66+
</TestableReference>
67+
</Testables>
68+
<MacroExpansion>
69+
<BuildableReference
70+
BuildableIdentifier = "primary"
71+
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
72+
BuildableName = "AppVersion.framework"
73+
BlueprintName = "AppVersion"
74+
ReferencedContainer = "container:AppVersion.xcodeproj">
75+
</BuildableReference>
76+
</MacroExpansion>
77+
<AdditionalOptions>
78+
</AdditionalOptions>
79+
</TestAction>
80+
<LaunchAction
81+
buildConfiguration = "Debug"
82+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
83+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
84+
launchStyle = "0"
85+
useCustomWorkingDirectory = "NO"
86+
ignoresPersistentStateOnLaunch = "NO"
87+
debugDocumentVersioning = "YES"
88+
debugServiceExtension = "internal"
89+
allowLocationSimulation = "YES">
90+
<MacroExpansion>
91+
<BuildableReference
92+
BuildableIdentifier = "primary"
93+
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
94+
BuildableName = "AppVersion.framework"
95+
BlueprintName = "AppVersion"
96+
ReferencedContainer = "container:AppVersion.xcodeproj">
97+
</BuildableReference>
98+
</MacroExpansion>
99+
<AdditionalOptions>
100+
</AdditionalOptions>
101+
</LaunchAction>
102+
<ProfileAction
103+
buildConfiguration = "Release"
104+
shouldUseLaunchSchemeArgsEnv = "YES"
105+
savedToolIdentifier = ""
106+
useCustomWorkingDirectory = "NO"
107+
debugDocumentVersioning = "YES">
108+
<MacroExpansion>
109+
<BuildableReference
110+
BuildableIdentifier = "primary"
111+
BlueprintIdentifier = "3946C69021A9CEAE009C46CC"
112+
BuildableName = "AppVersion.framework"
113+
BlueprintName = "AppVersion"
114+
ReferencedContainer = "container:AppVersion.xcodeproj">
115+
</BuildableReference>
116+
</MacroExpansion>
117+
</ProfileAction>
118+
<AnalyzeAction
119+
buildConfiguration = "Debug">
120+
</AnalyzeAction>
121+
<ArchiveAction
122+
buildConfiguration = "Release"
123+
revealArchiveInOrganizer = "YES">
124+
</ArchiveAction>
125+
</Scheme>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>AppVersion.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
<key>AppVersionExample.xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
17+
</dict>
18+
</dict>
19+
</plist>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
18+
BuildableName = "AppVersionExample.app"
19+
BlueprintName = "AppVersionExample"
20+
ReferencedContainer = "container:AppVersion.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
36+
BuildableName = "AppVersionExample.app"
37+
BlueprintName = "AppVersionExample"
38+
ReferencedContainer = "container:AppVersion.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
59+
BuildableName = "AppVersionExample.app"
60+
BlueprintName = "AppVersionExample"
61+
ReferencedContainer = "container:AppVersion.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<AdditionalOptions>
65+
</AdditionalOptions>
66+
</LaunchAction>
67+
<ProfileAction
68+
buildConfiguration = "Release"
69+
shouldUseLaunchSchemeArgsEnv = "YES"
70+
savedToolIdentifier = ""
71+
useCustomWorkingDirectory = "NO"
72+
debugDocumentVersioning = "YES">
73+
<BuildableProductRunnable
74+
runnableDebuggingMode = "0">
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "3946C6B721A9CF56009C46CC"
78+
BuildableName = "AppVersionExample.app"
79+
BlueprintName = "AppVersionExample"
80+
ReferencedContainer = "container:AppVersion.xcodeproj">
81+
</BuildableReference>
82+
</BuildableProductRunnable>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>

AppVersion/AppVersion.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// AppVersion.h
3+
// AppVersion
4+
//
5+
6+
#import <UIKit/UIKit.h>
7+
8+
//! Project version number for AppVersion.
9+
FOUNDATION_EXPORT double AppVersionVersionNumber;
10+
11+
//! Project version string for AppVersion.
12+
FOUNDATION_EXPORT const unsigned char AppVersionVersionString[];
13+
14+
// In this header, you should import all the public headers of your framework using statements like #import <AppVersion/PublicHeader.h>
15+
16+

AppVersion/Info.plist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
</dict>
22+
</plist>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//
2+
// Date+AppVersion.swift
3+
// AppVersion
4+
//
5+
6+
import Foundation
7+
8+
extension Date {
9+
func daysFromToday() -> UInt {
10+
return UInt(abs(Calendar.current.dateComponents([.day], from: self, to: Date()).day!))
11+
}
12+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// DateFormatter+ISO8601Full.swift
3+
// AppVersion
4+
//
5+
6+
extension DateFormatter {
7+
static let iso8601Full: DateFormatter = {
8+
let formatter = DateFormatter()
9+
formatter.calendar = Calendar(identifier: .iso8601)
10+
formatter.locale = Locale(identifier: "en_US_POSIX")
11+
formatter.timeZone = TimeZone(secondsFromGMT: 0)
12+
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
13+
return formatter
14+
}()
15+
}

0 commit comments

Comments
 (0)