Skip to content

Commit

Permalink
Merge pull request #12 from sha8wn/develop
Browse files Browse the repository at this point in the history
Current App Store Version
  • Loading branch information
sha8wn authored Jan 16, 2022
2 parents 1e8502e + d306aaf commit 4b7bf55
Show file tree
Hide file tree
Showing 520 changed files with 21,938 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
*.xcworkspace

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down Expand Up @@ -46,7 +49,8 @@ playground.xcworkspace
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
Podfile.lock
Pods/

# Carthage
#
Expand Down
1,506 changes: 1,506 additions & 0 deletions First Class And More.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,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 = "2B4ED3EA1E48837B00B086A9"
BuildableName = "First Class And More.app"
BlueprintName = "First Class And More"
ReferencedContainer = "container:First Class And More.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 = "2B4ED3EA1E48837B00B086A9"
BuildableName = "First Class And More.app"
BlueprintName = "First Class And More"
ReferencedContainer = "container:First Class And More.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 = "2B4ED3EA1E48837B00B086A9"
BuildableName = "First Class And More.app"
BlueprintName = "First Class And More"
ReferencedContainer = "container:First Class And More.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2B4ED3EA1E48837B00B086A9"
BuildableName = "First Class And More.app"
BlueprintName = "First Class And More"
ReferencedContainer = "container:First Class And More.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
50 changes: 50 additions & 0 deletions First Class And More/AdsViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// AdsViewController.swift
// First Class And More
//

import UIKit

class AdsViewController: UIViewController {

@IBOutlet weak var scrollView: ImageScrollView!

var imageName: String!
var image: UIImage? {
let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
let fileURL = documentsURL.appendingPathComponent("ads/\(imageName!)")
return UIImage(contentsOfFile: fileURL.path)
}
var ad: AdvertisementModel?

override func viewDidLoad() {
super.viewDidLoad()

let tapGesture = UITapGestureRecognizer(target: self, action: #selector(viewTapped))
view.addGestureRecognizer(tapGesture)
}

override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
scrollView.setupWithImage(image)
}

@objc func viewTapped() {
print(Date())
if let ad = ad, let _ = URL(string: ad.url), let appDelegate = UIApplication.shared.delegate as? AppDelegate {
dismiss(animated: true) {
appDelegate.showWebView(ad.url)
}
}
}

@IBAction func closeBtnPressed() {
print(Date())
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
appDelegate.timerFrequency = Double(appDelegate.timerSettings.frequency)
appDelegate.restartTimer()
}

self.presentingViewController!.dismiss(animated: true, completion: nil)
}
}
24 changes: 24 additions & 0 deletions First Class And More/AdvancedFilterCategoriesTableViewCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// AdvancedFilterCategoriesTableViewCell.swift
// First Class And More
//
// Created by Mikle Kusmenko on 4/17/17.
// Copyright © 2017 Shawn Frank. All rights reserved.
//

import UIKit

class AdvancedFilterCategoriesTableViewCell: UITableViewCell {

@IBOutlet weak var nameLabel: UILabel!

override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
58 changes: 58 additions & 0 deletions First Class And More/AdvancedFilterCategoriesTableViewCell.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<customFonts key="customFonts">
<array key="roboto-condensed.regular.ttf">
<string>RobotoCondensed-Regular</string>
</array>
</customFonts>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="AdvancedFilterCategoriesCell" id="KGk-i7-Jjw" customClass="AdvancedFilterCategoriesTableViewCell" customModule="First_Class_And_More" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SO6-TY-o6k">
<rect key="frame" x="16" y="9" width="268" height="25"/>
<fontDescription key="fontDescription" name="RobotoCondensed-Regular" family="Roboto Condensed" pointSize="21"/>
<color key="textColor" red="0.42745098039215684" green="0.43137254901960786" blue="0.44313725490196076" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="chevronRight" translatesAutoresizingMaskIntoConstraints="NO" id="5Yj-Pc-VSI">
<rect key="frame" x="300" y="14" width="8" height="14"/>
<constraints>
<constraint firstAttribute="width" secondItem="5Yj-Pc-VSI" secondAttribute="height" multiplier="0.55814:1" id="KIl-z4-Zie"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstItem="5Yj-Pc-VSI" firstAttribute="width" secondItem="H2p-sc-9uM" secondAttribute="width" multiplier="0.025" id="5I8-br-RZb"/>
<constraint firstItem="5Yj-Pc-VSI" firstAttribute="leading" secondItem="SO6-TY-o6k" secondAttribute="trailing" constant="16" id="7ib-cy-Yew"/>
<constraint firstItem="SO6-TY-o6k" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="Ekg-bt-EWW"/>
<constraint firstAttribute="trailing" secondItem="5Yj-Pc-VSI" secondAttribute="trailing" constant="12" id="IJS-Y3-11E"/>
<constraint firstItem="SO6-TY-o6k" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Lcp-qd-3pT"/>
<constraint firstItem="5Yj-Pc-VSI" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="RQD-vV-AkL"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="nameLabel" destination="SO6-TY-o6k" id="eqX-ZO-KQh"/>
</connections>
</tableViewCell>
</objects>
<resources>
<image name="chevronRight" width="12" height="21"/>
</resources>
</document>
Loading

0 comments on commit 4b7bf55

Please sign in to comment.