Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
483ed9b
Installed CocoaPods and connected to Firebase
jeffcheng1234 Feb 17, 2020
e2ff7ad
Pulled from origin
jeffcheng1234 Feb 20, 2020
98fef64
connected firebase to storyboard
jeffcheng1234 Feb 21, 2020
d17c5c4
Added firebase storage
jeffcheng1234 Feb 21, 2020
dce7cda
Configured PDFKit
jeffcheng1234 Feb 26, 2020
cfadc3d
Resource Display
koreanmelon Feb 26, 2020
d813de2
Merge branch 'firebase' of https://github.com/ndesaraju/iHackHealth i…
jeffcheng1234 Feb 26, 2020
74d5fe5
Update
koreanmelon Feb 26, 2020
7563538
Moved resources to PediatricPancreas_Storyboard
koreanmelon Feb 26, 2020
8b48031
Updated project with the new files
koreanmelon Feb 26, 2020
d19be04
Added main.storyboard
koreanmelon Feb 26, 2020
b34bbaa
Transfered File and Folder
jzhou1318 Feb 26, 2020
db58fbe
Bug fixes for Folders and Resources
koreanmelon Feb 26, 2020
fd936fb
Added segue to another view
koreanmelon Feb 26, 2020
5288ed1
Edit
koreanmelon Mar 1, 2020
be371cb
Added Utils Class
jeffcheng1234 Mar 1, 2020
62fae57
Successfully displayed PDF
jeffcheng1234 Mar 1, 2020
21010e7
initialized test files for PDFViewer
jzhou1318 Mar 1, 2020
b05eb80
Integrated view controllers
koreanmelon Mar 1, 2020
3e0606b
Integrated PDF display and folder/file navigation.
koreanmelon Mar 1, 2020
a807fdd
Updated files with documentation and slight renaming.
koreanmelon Mar 1, 2020
9b29ea0
test
jzhou1318 Mar 1, 2020
48a6b42
Merge branch 'firebase' of https://github.com/ndesaraju/iHackHealth i…
jzhou1318 Mar 1, 2020
831c325
Added data
koreanmelon Mar 1, 2020
341a62e
Add Data
koreanmelon Mar 1, 2020
ab22ad2
Fixed file paths
koreanmelon Mar 1, 2020
e34989e
cleaned up code for PDFViewController
jeffcheng1234 Mar 2, 2020
a5e72b3
Cleaned up Utils
jeffcheng1234 Mar 2, 2020
40fdb05
please
jzhou1318 Mar 2, 2020
2c1dbce
Merge branch 'firebase' of https://github.com/ndesaraju/iHackHealth i…
jzhou1318 Mar 2, 2020
f635847
search (hopefully) works
jzhou1318 Mar 2, 2020
2645481
search click functionality
jzhou1318 Mar 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
Binary file modified PediatricPancreas/.DS_Store
Binary file not shown.
152 changes: 151 additions & 1 deletion PediatricPancreas/PediatricPancreas.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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>PreviewsEnabled</key>
<false/>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>Default</string>
<key>IssueFilterStyle</key>
<string>ShowActiveSchemeOnly</string>
<key>LiveSourceIssuesEnabled</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>PediatricPancreas.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>8</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>PediatricPancreas.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>8</integer>
<integer>27</integer>
</dict>
</dict>
</dict>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>PediatricPancreas.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>8</integer>
</dict>
</dict>
</dict>
</plist>

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>
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion PediatricPancreas/PediatricPancreas/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ResearchKit
import CareKitUI
import CareKitStore
import CareKit

import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -20,6 +20,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FirebaseApp.configure()
return true
}

Expand Down
36 changes: 36 additions & 0 deletions PediatricPancreas/PediatricPancreas/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?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>CLIENT_ID</key>
<string>158315296857-lanl3u0vm7vk5p1ljl3iijl485eg9k9n.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.158315296857-lanl3u0vm7vk5p1ljl3iijl485eg9k9n</string>
<key>API_KEY</key>
<string>AIzaSyCOuyD66ZZFJa3SMGCKJNzF1v5g-5t0Q4E</string>
<key>GCM_SENDER_ID</key>
<string>158315296857</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>iHackHealth.PediatricPancreas</string>
<key>PROJECT_ID</key>
<string>pediatric-pancreatitis</string>
<key>STORAGE_BUCKET</key>
<string>pediatric-pancreatitis.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:158315296857:ios:d1ced85fab3a995eb5d948</string>
<key>DATABASE_URL</key>
<string>https://pediatric-pancreatitis.firebaseio.com</string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions PediatricPancreas/PediatricPancreas/Resource.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Resource.swift
// resources
//
// Created by Taewon Kim on 2/23/20.
// Copyright © 2020 Taewon Kim. All rights reserved.
//

import Foundation

class Resource {

var labelName: String
// var pointsTo: Resource

init(labelName: String) {
self.labelName = labelName
// self.pointsTo = pointsTo
}
}
19 changes: 19 additions & 0 deletions PediatricPancreas/PediatricPancreas/ResourceCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// ResourceCell.swift
// resources
//
// Created by Taewon Kim on 2/23/20.
// Copyright © 2020 Taewon Kim. All rights reserved.
//

import UIKit

class ResourceCell: UITableViewCell {

@IBOutlet weak var resourceName: UILabel!

func setResource(resource: Resource) {
resourceName.text = resource.labelName
}

}
51 changes: 51 additions & 0 deletions PediatricPancreas/PediatricPancreas/ResourceListScreen.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//
// ResourceListScreen.swift
// resources
//
// Created by Taewon Kim on 2/23/20.
// Copyright © 2020 Taewon Kim. All rights reserved.
//

import UIKit

class ResourceListScreen: UIViewController {


@IBOutlet weak var tableView: UITableView!

var resources: [Resource] = []

override func viewDidLoad() {
super.viewDidLoad()
resources = createArray()

}

func createArray() -> [Resource] {

var tempResources: [Resource] = []

let resource1 = Resource(labelName: "Acute Pancreatitis")
let resource2 = Resource(labelName: "Chronic Pancreatitis")

tempResources.append(resource1)
tempResources.append(resource2)

return tempResources
}
}

extension ResourceListScreen: UITableViewDataSource, UITableViewDelegate {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return resources.count
}

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let resource = resources[indexPath.row]
let cell = tableView.dequeueReusableCell(withIdentifier: "ResourceCell") as! ResourceCell

cell.setResource(resource: resource)

return cell
}
}
24 changes: 24 additions & 0 deletions PediatricPancreas/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'PediatricPancreas' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for PediatricPancreas

pod 'Firebase/Core'
pod 'Firebase/Database'

target 'PediatricPancreasTests' do
inherit! :search_paths
# Pods for testing
end

target 'PediatricPancreasUITests' do
# Pods for testing


end

end
124 changes: 124 additions & 0 deletions PediatricPancreas/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
PODS:
- Firebase/Core (6.17.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 6.2.2)
- Firebase/CoreOnly (6.17.0):
- FirebaseCore (= 6.6.2)
- Firebase/Database (6.17.0):
- Firebase/CoreOnly
- FirebaseDatabase (~> 6.1.4)
- FirebaseAnalytics (6.2.2):
- FirebaseCore (~> 6.6)
- FirebaseInstanceID (~> 4.3)
- GoogleAppMeasurement (= 6.2.2)
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (= 0.3.9011)
- FirebaseAuthInterop (1.0.0)
- FirebaseCore (6.6.2):
- FirebaseCoreDiagnostics (~> 1.2)
- FirebaseCoreDiagnosticsInterop (~> 1.2)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- FirebaseCoreDiagnostics (1.2.0):
- FirebaseCoreDiagnosticsInterop (~> 1.2)
- GoogleDataTransportCCTSupport (~> 1.3)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- nanopb (~> 0.3.901)
- FirebaseCoreDiagnosticsInterop (1.2.0)
- FirebaseDatabase (6.1.4):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- leveldb-library (~> 1.22)
- FirebaseInstallations (1.1.0):
- FirebaseCore (~> 6.6)
- GoogleUtilities/UserDefaults (~> 6.5)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (4.3.1):
- FirebaseCore (~> 6.6)
- FirebaseInstallations (~> 1.0)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/UserDefaults (~> 6.5)
- GoogleAppMeasurement (6.2.2):
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (= 0.3.9011)
- GoogleDataTransport (4.0.0)
- GoogleDataTransportCCTSupport (1.4.0):
- GoogleDataTransport (~> 4.0)
- nanopb (~> 0.3.901)
- GoogleUtilities/AppDelegateSwizzler (6.5.1):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (6.5.1)
- GoogleUtilities/Logger (6.5.1):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (6.5.1):
- GoogleUtilities/Logger
- GoogleUtilities/Network (6.5.1):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (6.5.1)"
- GoogleUtilities/Reachability (6.5.1):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (6.5.1):
- GoogleUtilities/Logger
- leveldb-library (1.22)
- nanopb (0.3.9011):
- nanopb/decode (= 0.3.9011)
- nanopb/encode (= 0.3.9011)
- nanopb/decode (0.3.9011)
- nanopb/encode (0.3.9011)
- PromisesObjC (1.2.8)

DEPENDENCIES:
- Firebase/Core
- Firebase/Database

SPEC REPOS:
trunk:
- Firebase
- FirebaseAnalytics
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreDiagnosticsInterop
- FirebaseDatabase
- FirebaseInstallations
- FirebaseInstanceID
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleUtilities
- leveldb-library
- nanopb
- PromisesObjC

SPEC CHECKSUMS:
Firebase: 2672e5636b42f977177716317e68346ae5e9de25
FirebaseAnalytics: cf95d3aab897612783020fbd98401d5366f135ee
FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
FirebaseCore: a1dd9dd6355a8356dd30a8f076839e242285a81c
FirebaseCoreDiagnostics: 5e78803ab276bc5b50340e3c539c06c3de35c649
FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
FirebaseDatabase: 0144e0706a4761f1b0e8679572eba8095ddb59be
FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b
FirebaseInstanceID: 031d7d0c8e7b5c030bbeb4d2a690550375e83fec
GoogleAppMeasurement: d0560d915abf15e692e8538ba1d58442217b6aff
GoogleDataTransport: 47fe3b8e1673e5187dfd615656a3c5034f150d69
GoogleDataTransportCCTSupport: 36f69887fd212db6d7ef4dd45ba44523717a434e
GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275
leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6

PODFILE CHECKSUM: c4ea62e4deb9d9bae7aab1df7399af99eb57d649

COCOAPODS: 1.9.0
Loading