Skip to content

Commit a2fe227

Browse files
author
Patrick Jackson
committed
rename all openlibrary - readingList
1 parent 5fc408b commit a2fe227

36 files changed

+2463
-1
lines changed

iOS/OpenLibrary

Lines changed: 0 additions & 1 deletion
This file was deleted.

iOS/ReadingList/ReadingList.xcodeproj/project.pbxproj

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

iOS/ReadingList/ReadingList.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: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1030"
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 = "1E201E7A22E0B85D006835E0"
18+
BuildableName = "ReadingList.app"
19+
BlueprintName = "ReadingList"
20+
ReferencedContainer = "container:ReadingList.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+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "1E201E8E22E0B85F006835E0"
36+
BuildableName = "ReadingListTests.xctest"
37+
BlueprintName = "ReadingListTests"
38+
ReferencedContainer = "container:ReadingList.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "1E201E9922E0B85F006835E0"
46+
BuildableName = "ReadingListUITests.xctest"
47+
BlueprintName = "ReadingListUITests"
48+
ReferencedContainer = "container:ReadingList.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
<MacroExpansion>
53+
<BuildableReference
54+
BuildableIdentifier = "primary"
55+
BlueprintIdentifier = "1E201E7A22E0B85D006835E0"
56+
BuildableName = "ReadingList.app"
57+
BlueprintName = "ReadingList"
58+
ReferencedContainer = "container:ReadingList.xcodeproj">
59+
</BuildableReference>
60+
</MacroExpansion>
61+
<AdditionalOptions>
62+
</AdditionalOptions>
63+
</TestAction>
64+
<LaunchAction
65+
buildConfiguration = "Debug"
66+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
67+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
68+
launchStyle = "0"
69+
useCustomWorkingDirectory = "NO"
70+
ignoresPersistentStateOnLaunch = "NO"
71+
debugDocumentVersioning = "YES"
72+
debugServiceExtension = "internal"
73+
allowLocationSimulation = "YES">
74+
<BuildableProductRunnable
75+
runnableDebuggingMode = "0">
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "1E201E7A22E0B85D006835E0"
79+
BuildableName = "ReadingList.app"
80+
BlueprintName = "ReadingList"
81+
ReferencedContainer = "container:ReadingList.xcodeproj">
82+
</BuildableReference>
83+
</BuildableProductRunnable>
84+
<AdditionalOptions>
85+
</AdditionalOptions>
86+
</LaunchAction>
87+
<ProfileAction
88+
buildConfiguration = "Release"
89+
shouldUseLaunchSchemeArgsEnv = "YES"
90+
savedToolIdentifier = ""
91+
useCustomWorkingDirectory = "NO"
92+
debugDocumentVersioning = "YES">
93+
<BuildableProductRunnable
94+
runnableDebuggingMode = "0">
95+
<BuildableReference
96+
BuildableIdentifier = "primary"
97+
BlueprintIdentifier = "1E201E7A22E0B85D006835E0"
98+
BuildableName = "ReadingList.app"
99+
BlueprintName = "ReadingList"
100+
ReferencedContainer = "container:ReadingList.xcodeproj">
101+
</BuildableReference>
102+
</BuildableProductRunnable>
103+
</ProfileAction>
104+
<AnalyzeAction
105+
buildConfiguration = "Debug">
106+
</AnalyzeAction>
107+
<ArchiveAction
108+
buildConfiguration = "Release"
109+
revealArchiveInOrganizer = "YES">
110+
</ArchiveAction>
111+
</Scheme>
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
import UIKit
2+
import common
3+
4+
var dispatch: (Any) -> Any {
5+
get {
6+
let appDelegate = UIApplication.shared.delegate as! AppDelegate
7+
return appDelegate.libraryApp!.store.dispatch
8+
}
9+
}
10+
11+
12+
@UIApplicationMain
13+
class AppDelegate: UIResponder, UIApplicationDelegate {
14+
15+
var window: UIWindow?
16+
var libraryApp: LibraryApp?
17+
var dispatch: (Any) -> Any = {any -> Any in KotlinUnit() }
18+
19+
public func initilize() {
20+
if (libraryApp == nil) {
21+
let navi: Navigator = IosNavigator()
22+
Db().defaultDriver()
23+
let db = Db().instance
24+
libraryApp = LibraryApp.init(navigator: navi, networkContext: UI(), uiContext: UI(), libraryDatabase: db)
25+
dispatch = libraryApp!.store.dispatch
26+
}
27+
}
28+
29+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
30+
// Override point for customization after application launch.
31+
initilize()
32+
return true
33+
}
34+
35+
func applicationWillResignActive(_ application: UIApplication) {
36+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
37+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
38+
}
39+
40+
func applicationDidEnterBackground(_ application: UIApplication) {
41+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
42+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
43+
}
44+
45+
func applicationWillEnterForeground(_ application: UIApplication) {
46+
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
47+
}
48+
49+
func applicationDidBecomeActive(_ application: UIApplication) {
50+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
51+
}
52+
53+
func applicationWillTerminate(_ application: UIApplication) {
54+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
55+
}
56+
57+
58+
}
59+
60+
extension UIApplication {
61+
/*
62+
* Returns the currently visible ViewController
63+
*/
64+
class func topViewController(base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController? {
65+
66+
if let nav = base as? UINavigationController {
67+
return topViewController(base: nav.visibleViewController)
68+
}
69+
70+
if let tab = base as? UITabBarController {
71+
let moreNavigationController = tab.moreNavigationController
72+
73+
if let top = moreNavigationController.topViewController, top.view.window != nil {
74+
return topViewController(base: top)
75+
} else if let selected = tab.selectedViewController {
76+
return topViewController(base: selected)
77+
}
78+
}
79+
80+
if let presented = base?.presentedViewController {
81+
return topViewController(base: presented)
82+
}
83+
84+
return base
85+
}
86+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "29x29",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "29x29",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "40x40",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "40x40",
31+
"scale" : "3x"
32+
},
33+
{
34+
"idiom" : "iphone",
35+
"size" : "60x60",
36+
"scale" : "2x"
37+
},
38+
{
39+
"idiom" : "iphone",
40+
"size" : "60x60",
41+
"scale" : "3x"
42+
},
43+
{
44+
"idiom" : "ipad",
45+
"size" : "20x20",
46+
"scale" : "1x"
47+
},
48+
{
49+
"idiom" : "ipad",
50+
"size" : "20x20",
51+
"scale" : "2x"
52+
},
53+
{
54+
"idiom" : "ipad",
55+
"size" : "29x29",
56+
"scale" : "1x"
57+
},
58+
{
59+
"idiom" : "ipad",
60+
"size" : "29x29",
61+
"scale" : "2x"
62+
},
63+
{
64+
"idiom" : "ipad",
65+
"size" : "40x40",
66+
"scale" : "1x"
67+
},
68+
{
69+
"idiom" : "ipad",
70+
"size" : "40x40",
71+
"scale" : "2x"
72+
},
73+
{
74+
"idiom" : "ipad",
75+
"size" : "76x76",
76+
"scale" : "1x"
77+
},
78+
{
79+
"idiom" : "ipad",
80+
"size" : "76x76",
81+
"scale" : "2x"
82+
},
83+
{
84+
"idiom" : "ipad",
85+
"size" : "83.5x83.5",
86+
"scale" : "2x"
87+
},
88+
{
89+
"idiom" : "ios-marketing",
90+
"size" : "1024x1024",
91+
"scale" : "1x"
92+
}
93+
],
94+
"info" : {
95+
"version" : 1,
96+
"author" : "xcode"
97+
}
98+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

0 commit comments

Comments
 (0)