diff --git a/TrackIT2/Podfile b/TrackIT2/Podfile new file mode 100644 index 0000000..9d86c46 --- /dev/null +++ b/TrackIT2/Podfile @@ -0,0 +1,35 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'TrackIT' do + # Comment the next line if you don't want to use dynamic frameworks + use_frameworks! + + # Pods for TrackIT + pod 'lottie-ios' +pod 'Firebase/Firestore' + +pod 'Alamofire', '~> 4.5' + #Auto Layout library + pod 'SnapKit', '~> 4.0.0' + #library for downloading and caching images from API + #pod 'Kingfisher', '~> 3.0' + #Send Message TextInput + pod 'Toolbar' + #Messages TableView + pod 'ReverseExtension' + #Promise + pod 'PromiseKit', '~> 4.4' + +# Optionally, include the Swift extensions if you're using Swift. +pod 'FirebaseFirestoreSwift' + target 'TrackITTests' do + inherit! :search_paths + # Pods for testing + end + + target 'TrackITUITests' do + # Pods for testing + end + +end diff --git a/TrackIT2/Podfile.lock b/TrackIT2/Podfile.lock new file mode 100644 index 0000000..878dc0c --- /dev/null +++ b/TrackIT2/Podfile.lock @@ -0,0 +1,307 @@ +PODS: + - abseil/algorithm (0.20190808): + - abseil/algorithm/algorithm (= 0.20190808) + - abseil/algorithm/container (= 0.20190808) + - abseil/algorithm/algorithm (0.20190808) + - abseil/algorithm/container (0.20190808): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/base (0.20190808): + - abseil/base/atomic_hook (= 0.20190808) + - abseil/base/base (= 0.20190808) + - abseil/base/base_internal (= 0.20190808) + - abseil/base/bits (= 0.20190808) + - abseil/base/config (= 0.20190808) + - abseil/base/core_headers (= 0.20190808) + - abseil/base/dynamic_annotations (= 0.20190808) + - abseil/base/endian (= 0.20190808) + - abseil/base/log_severity (= 0.20190808) + - abseil/base/malloc_internal (= 0.20190808) + - abseil/base/pretty_function (= 0.20190808) + - abseil/base/spinlock_wait (= 0.20190808) + - abseil/base/throw_delegate (= 0.20190808) + - abseil/base/atomic_hook (0.20190808) + - abseil/base/base (0.20190808): + - abseil/base/atomic_hook + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/log_severity + - abseil/base/spinlock_wait + - abseil/meta/type_traits + - abseil/base/base_internal (0.20190808): + - abseil/meta/type_traits + - abseil/base/bits (0.20190808): + - abseil/base/core_headers + - abseil/base/config (0.20190808) + - abseil/base/core_headers (0.20190808): + - abseil/base/config + - abseil/base/dynamic_annotations (0.20190808) + - abseil/base/endian (0.20190808): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/log_severity (0.20190808): + - abseil/base/core_headers + - abseil/base/malloc_internal (0.20190808): + - abseil/base/base + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/spinlock_wait + - abseil/base/pretty_function (0.20190808) + - abseil/base/spinlock_wait (0.20190808): + - abseil/base/core_headers + - abseil/base/throw_delegate (0.20190808): + - abseil/base/base + - abseil/base/config + - abseil/memory (0.20190808): + - abseil/memory/memory (= 0.20190808) + - abseil/memory/memory (0.20190808): + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/meta (0.20190808): + - abseil/meta/type_traits (= 0.20190808) + - abseil/meta/type_traits (0.20190808): + - abseil/base/config + - abseil/numeric/int128 (0.20190808): + - abseil/base/config + - abseil/base/core_headers + - abseil/strings/internal (0.20190808): + - abseil/base/core_headers + - abseil/base/endian + - abseil/meta/type_traits + - abseil/strings/strings (0.20190808): + - abseil/base/base + - abseil/base/bits + - abseil/base/config + - abseil/base/core_headers + - abseil/base/endian + - abseil/base/throw_delegate + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/numeric/int128 + - abseil/strings/internal + - abseil/time (0.20190808): + - abseil/time/internal (= 0.20190808) + - abseil/time/time (= 0.20190808) + - abseil/time/internal (0.20190808): + - abseil/time/internal/cctz (= 0.20190808) + - abseil/time/internal/cctz (0.20190808): + - abseil/time/internal/cctz/civil_time (= 0.20190808) + - abseil/time/internal/cctz/includes (= 0.20190808) + - abseil/time/internal/cctz/time_zone (= 0.20190808) + - abseil/time/internal/cctz/civil_time (0.20190808) + - abseil/time/internal/cctz/includes (0.20190808) + - abseil/time/internal/cctz/time_zone (0.20190808): + - abseil/time/internal/cctz/civil_time + - abseil/time/time (0.20190808): + - abseil/base/base + - abseil/base/core_headers + - abseil/numeric/int128 + - abseil/strings/strings + - abseil/time/internal/cctz/civil_time + - abseil/time/internal/cctz/time_zone + - abseil/types (0.20190808): + - abseil/types/any (= 0.20190808) + - abseil/types/bad_any_cast (= 0.20190808) + - abseil/types/bad_any_cast_impl (= 0.20190808) + - abseil/types/bad_optional_access (= 0.20190808) + - abseil/types/bad_variant_access (= 0.20190808) + - abseil/types/compare (= 0.20190808) + - abseil/types/optional (= 0.20190808) + - abseil/types/span (= 0.20190808) + - abseil/types/variant (= 0.20190808) + - abseil/types/any (0.20190808): + - abseil/base/config + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/bad_any_cast + - abseil/utility/utility + - abseil/types/bad_any_cast (0.20190808): + - abseil/base/config + - abseil/types/bad_any_cast_impl + - abseil/types/bad_any_cast_impl (0.20190808): + - abseil/base/base + - abseil/base/config + - abseil/types/bad_optional_access (0.20190808): + - abseil/base/base + - abseil/base/config + - abseil/types/bad_variant_access (0.20190808): + - abseil/base/base + - abseil/base/config + - abseil/types/compare (0.20190808): + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/optional (0.20190808): + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/types/bad_optional_access + - abseil/utility/utility + - abseil/types/span (0.20190808): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/base/throw_delegate + - abseil/meta/type_traits + - abseil/types/variant (0.20190808): + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/bad_variant_access + - abseil/utility/utility + - abseil/utility/utility (0.20190808): + - abseil/base/base_internal + - abseil/base/config + - abseil/meta/type_traits + - Alamofire (4.9.1) + - BoringSSL-GRPC (0.0.3): + - BoringSSL-GRPC/Implementation (= 0.0.3) + - BoringSSL-GRPC/Interface (= 0.0.3) + - BoringSSL-GRPC/Implementation (0.0.3): + - BoringSSL-GRPC/Interface (= 0.0.3) + - BoringSSL-GRPC/Interface (0.0.3) + - Firebase/CoreOnly (6.20.0): + - FirebaseCore (= 6.6.4) + - Firebase/Firestore (6.20.0): + - Firebase/CoreOnly + - FirebaseFirestore (~> 1.11.2) + - FirebaseAuthInterop (1.1.0) + - FirebaseCore (6.6.4): + - FirebaseCoreDiagnostics (~> 1.2) + - FirebaseCoreDiagnosticsInterop (~> 1.2) + - GoogleUtilities/Environment (~> 6.5) + - GoogleUtilities/Logger (~> 6.5) + - FirebaseCoreDiagnostics (1.2.2): + - FirebaseCoreDiagnosticsInterop (~> 1.2) + - GoogleDataTransportCCTSupport (~> 2.0) + - GoogleUtilities/Environment (~> 6.5) + - GoogleUtilities/Logger (~> 6.5) + - nanopb (~> 0.3.901) + - FirebaseCoreDiagnosticsInterop (1.2.0) + - FirebaseFirestore (1.11.2): + - abseil/algorithm (= 0.20190808) + - abseil/base (= 0.20190808) + - abseil/memory (= 0.20190808) + - abseil/meta (= 0.20190808) + - abseil/strings/strings (= 0.20190808) + - abseil/time (= 0.20190808) + - abseil/types (= 0.20190808) + - FirebaseAuthInterop (~> 1.0) + - FirebaseCore (~> 6.2) + - "gRPC-C++ (= 0.0.9)" + - leveldb-library (~> 1.22) + - nanopb (~> 0.3.901) + - FirebaseFirestoreSwift (0.2): + - FirebaseFirestore (>= 1.6.1, ~> 1.6) + - GoogleDataTransport (5.0.0) + - GoogleDataTransportCCTSupport (2.0.0): + - GoogleDataTransport (~> 5.0) + - nanopb (~> 0.3.901) + - GoogleUtilities/Environment (6.5.2) + - GoogleUtilities/Logger (6.5.2): + - GoogleUtilities/Environment + - "gRPC-C++ (0.0.9)": + - "gRPC-C++/Implementation (= 0.0.9)" + - "gRPC-C++/Interface (= 0.0.9)" + - "gRPC-C++/Implementation (0.0.9)": + - "gRPC-C++/Interface (= 0.0.9)" + - gRPC-Core (= 1.21.0) + - nanopb (~> 0.3) + - "gRPC-C++/Interface (0.0.9)" + - gRPC-Core (1.21.0): + - gRPC-Core/Implementation (= 1.21.0) + - gRPC-Core/Interface (= 1.21.0) + - gRPC-Core/Implementation (1.21.0): + - BoringSSL-GRPC (= 0.0.3) + - gRPC-Core/Interface (= 1.21.0) + - nanopb (~> 0.3) + - gRPC-Core/Interface (1.21.0) + - leveldb-library (1.22) + - lottie-ios (3.1.6) + - nanopb (0.3.9011): + - nanopb/decode (= 0.3.9011) + - nanopb/encode (= 0.3.9011) + - nanopb/decode (0.3.9011) + - nanopb/encode (0.3.9011) + - PromiseKit (4.5.2): + - PromiseKit/Foundation (= 4.5.2) + - PromiseKit/QuartzCore (= 4.5.2) + - PromiseKit/UIKit (= 4.5.2) + - PromiseKit/CorePromise (4.5.2) + - PromiseKit/Foundation (4.5.2): + - PromiseKit/CorePromise + - PromiseKit/QuartzCore (4.5.2): + - PromiseKit/CorePromise + - PromiseKit/UIKit (4.5.2): + - PromiseKit/CorePromise + - ReverseExtension (0.5.0) + - SnapKit (4.0.1) + - Toolbar (0.7.3) + +DEPENDENCIES: + - Alamofire (~> 4.5) + - Firebase/Firestore + - FirebaseFirestoreSwift + - lottie-ios + - PromiseKit (~> 4.4) + - ReverseExtension + - SnapKit (~> 4.0.0) + - Toolbar + +SPEC REPOS: + trunk: + - abseil + - Alamofire + - BoringSSL-GRPC + - Firebase + - FirebaseAuthInterop + - FirebaseCore + - FirebaseCoreDiagnostics + - FirebaseCoreDiagnosticsInterop + - FirebaseFirestore + - FirebaseFirestoreSwift + - GoogleDataTransport + - GoogleDataTransportCCTSupport + - GoogleUtilities + - "gRPC-C++" + - gRPC-Core + - leveldb-library + - lottie-ios + - nanopb + - PromiseKit + - ReverseExtension + - SnapKit + - Toolbar + +SPEC CHECKSUMS: + abseil: 18063d773f5366ff8736a050fe035a28f635fd27 + Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18 + BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318 + Firebase: fe7f74012742ab403451dd283e6909b8f1fb348a + FirebaseAuthInterop: a0f37ae05833af156e72028f648d313f7e7592e9 + FirebaseCore: ed0a24c758a57c2b88c5efa8e6a8195e868af589 + FirebaseCoreDiagnostics: e9b4cd8ba60dee0f2d13347332e4b7898cca5b61 + FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850 + FirebaseFirestore: 71925e62a5d1cbfaff46aa4d5107e525cc48356a + FirebaseFirestoreSwift: 0437bb10d83f8161a9131da1739998254c78fdf5 + GoogleDataTransport: a857c6a002d201b524dd4bc2ed7e7355ed07e785 + GoogleDataTransportCCTSupport: 32f75fbe904c82772fcbb6b6bd4525bfb6f2a862 + GoogleUtilities: ad0f3b691c67909d03a3327cc205222ab8f42e0e + "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83 + gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947 + leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7 + lottie-ios: 85ce835dd8c53e02509f20729fc7d6a4e6645a0a + nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd + PromiseKit: 743e497a5f505a470d3bbbf4ce0663c1268af0a4 + ReverseExtension: 21c8dd4e767f93b56fb97d873686d24160f83945 + SnapKit: 0de968a9fec17499afa29683b05d0c775b6d1c29 + Toolbar: 4321f97ec8ea5f20ecee5a55e505a319bd5e3021 + +PODFILE CHECKSUM: 347370e52028fdb828922e6f707bde9f1b1a48c6 + +COCOAPODS: 1.9.1 diff --git a/TrackIT2/TrackIT.xcodeproj/project.pbxproj b/TrackIT2/TrackIT.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f483663 --- /dev/null +++ b/TrackIT2/TrackIT.xcodeproj/project.pbxproj @@ -0,0 +1,843 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 34D62258D8EA74E449C5AB6C /* Pods_TrackITTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AF93C0CD6EFCD9A0E4727F5 /* Pods_TrackITTests.framework */; }; + 4274A339C3EACE13FECA30EE /* Pods_TrackIT_TrackITUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E393149E42E3EBCB3836685D /* Pods_TrackIT_TrackITUITests.framework */; }; + C108DB36EF2F552A14453777 /* Pods_TrackIT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 188D54E5AFC5D0B51D7BD933 /* Pods_TrackIT.framework */; }; + E129378D242C38EC00003CCB /* AIManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129378C242C38EC00003CCB /* AIManager.swift */; }; + E1293791242C38FE00003CCB /* TextResponseTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129378E242C38FA00003CCB /* TextResponseTableViewCell.swift */; }; + E1293792242C38FE00003CCB /* ForecastResponsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129378F242C38FC00003CCB /* ForecastResponsTableViewCell.swift */; }; + E1293793242C38FE00003CCB /* UserTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1293790242C38FE00003CCB /* UserTableViewCell.swift */; }; + E1293795242C390000003CCB /* ChatViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1293794242C390000003CCB /* ChatViewController.swift */; }; + E129379A242C391500003CCB /* AIRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1293798242C391300003CCB /* AIRequest.swift */; }; + E129379B242C391500003CCB /* AIService.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1293799242C391500003CCB /* AIService.swift */; }; + E12937A0242C391B00003CCB /* extentions.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129379C242C391800003CCB /* extentions.swift */; }; + E12937A1242C391B00003CCB /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129379D242C391900003CCB /* Errors.swift */; }; + E12937A2242C391B00003CCB /* Colors.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129379E242C391A00003CCB /* Colors.swift */; }; + E12937A3242C391B00003CCB /* URLGenerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = E129379F242C391A00003CCB /* URLGenerator.swift */; }; + E12937A6242C392300003CCB /* Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = E12937A4242C392200003CCB /* Action.swift */; }; + E12937A7242C392300003CCB /* Message.swift in Sources */ = {isa = PBXBuildFile; fileRef = E12937A5242C392300003CCB /* Message.swift */; }; + E12937A9242C392900003CCB /* AI.swift in Sources */ = {isa = PBXBuildFile; fileRef = E12937A8242C392900003CCB /* AI.swift */; }; + E12937AB242C392D00003CCB /* Intent.swift in Sources */ = {isa = PBXBuildFile; fileRef = E12937AA242C392D00003CCB /* Intent.swift */; }; + E12937AF242C393E00003CCB /* UserTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E12937AC242C393B00003CCB /* UserTableViewCell.xib */; }; + E12937B0242C393E00003CCB /* ForecastResponseTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E12937AD242C393C00003CCB /* ForecastResponseTableViewCell.xib */; }; + E12937B1242C393E00003CCB /* TextResponseTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E12937AE242C393E00003CCB /* TextResponseTableViewCell.xib */; }; + E12937B3242C437D00003CCB /* settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = E12937B2242C437D00003CCB /* settings.swift */; }; + E1E55B58242C118B00FFAA8A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B57242C118B00FFAA8A /* AppDelegate.swift */; }; + E1E55B5A242C118B00FFAA8A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B59242C118B00FFAA8A /* SceneDelegate.swift */; }; + E1E55B5C242C118B00FFAA8A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B5B242C118B00FFAA8A /* ViewController.swift */; }; + E1E55B5F242C118B00FFAA8A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B5D242C118B00FFAA8A /* Main.storyboard */; }; + E1E55B61242C119500FFAA8A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B60242C119500FFAA8A /* Assets.xcassets */; }; + E1E55B64242C119500FFAA8A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B62242C119500FFAA8A /* LaunchScreen.storyboard */; }; + E1E55B6F242C119500FFAA8A /* TrackITTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B6E242C119500FFAA8A /* TrackITTests.swift */; }; + E1E55B7A242C119500FFAA8A /* TrackITUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B79242C119500FFAA8A /* TrackITUITests.swift */; }; + E1E55B88242C121D00FFAA8A /* lf30_editor_SKZ870.json in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B87242C121D00FFAA8A /* lf30_editor_SKZ870.json */; }; + E1E55B8A242C28C100FFAA8A /* syncPulse.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1E55B89242C28C100FFAA8A /* syncPulse.swift */; }; + E1E55B8C242C2BA400FFAA8A /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B8B242C2BA300FFAA8A /* GoogleService-Info.plist */; }; + E1E55B8D242C2BA400FFAA8A /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = E1E55B8B242C2BA300FFAA8A /* GoogleService-Info.plist */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + E1E55B6B242C119500FFAA8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E1E55B4C242C118A00FFAA8A /* Project object */; + proxyType = 1; + remoteGlobalIDString = E1E55B53242C118B00FFAA8A; + remoteInfo = TrackIT; + }; + E1E55B76242C119500FFAA8A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E1E55B4C242C118A00FFAA8A /* Project object */; + proxyType = 1; + remoteGlobalIDString = E1E55B53242C118B00FFAA8A; + remoteInfo = TrackIT; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0AF93C0CD6EFCD9A0E4727F5 /* Pods_TrackITTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TrackITTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 188D54E5AFC5D0B51D7BD933 /* Pods_TrackIT.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TrackIT.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 29EFD4B810C83C6D90DC4A25 /* Pods-TrackIT.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackIT.release.xcconfig"; path = "Target Support Files/Pods-TrackIT/Pods-TrackIT.release.xcconfig"; sourceTree = ""; }; + 2E3FBB11CD6BD222DEA90EF8 /* Pods-TrackITTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackITTests.release.xcconfig"; path = "Target Support Files/Pods-TrackITTests/Pods-TrackITTests.release.xcconfig"; sourceTree = ""; }; + 6F8A2AAB681311CE18D16556 /* Pods-TrackIT.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackIT.debug.xcconfig"; path = "Target Support Files/Pods-TrackIT/Pods-TrackIT.debug.xcconfig"; sourceTree = ""; }; + 85D8276A1B7A8CA655A1776A /* Pods-TrackITTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackITTests.debug.xcconfig"; path = "Target Support Files/Pods-TrackITTests/Pods-TrackITTests.debug.xcconfig"; sourceTree = ""; }; + 9DFE0B060806E356086B2AF8 /* Pods-TrackIT-TrackITUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackIT-TrackITUITests.release.xcconfig"; path = "Target Support Files/Pods-TrackIT-TrackITUITests/Pods-TrackIT-TrackITUITests.release.xcconfig"; sourceTree = ""; }; + C26554D9DA3AFFB990770668 /* Pods-TrackIT-TrackITUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TrackIT-TrackITUITests.debug.xcconfig"; path = "Target Support Files/Pods-TrackIT-TrackITUITests/Pods-TrackIT-TrackITUITests.debug.xcconfig"; sourceTree = ""; }; + E129378C242C38EC00003CCB /* AIManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AIManager.swift; sourceTree = ""; }; + E129378E242C38FA00003CCB /* TextResponseTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TextResponseTableViewCell.swift; sourceTree = ""; }; + E129378F242C38FC00003CCB /* ForecastResponsTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForecastResponsTableViewCell.swift; sourceTree = ""; }; + E1293790242C38FE00003CCB /* UserTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserTableViewCell.swift; sourceTree = ""; }; + E1293794242C390000003CCB /* ChatViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChatViewController.swift; sourceTree = ""; }; + E1293798242C391300003CCB /* AIRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AIRequest.swift; sourceTree = ""; }; + E1293799242C391500003CCB /* AIService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AIService.swift; sourceTree = ""; }; + E129379C242C391800003CCB /* extentions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = extentions.swift; sourceTree = ""; }; + E129379D242C391900003CCB /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = ""; }; + E129379E242C391A00003CCB /* Colors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Colors.swift; sourceTree = ""; }; + E129379F242C391A00003CCB /* URLGenerator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLGenerator.swift; sourceTree = ""; }; + E12937A4242C392200003CCB /* Action.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Action.swift; sourceTree = ""; }; + E12937A5242C392300003CCB /* Message.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Message.swift; sourceTree = ""; }; + E12937A8242C392900003CCB /* AI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AI.swift; sourceTree = ""; }; + E12937AA242C392D00003CCB /* Intent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Intent.swift; sourceTree = ""; }; + E12937AC242C393B00003CCB /* UserTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = UserTableViewCell.xib; sourceTree = ""; }; + E12937AD242C393C00003CCB /* ForecastResponseTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ForecastResponseTableViewCell.xib; sourceTree = ""; }; + E12937AE242C393E00003CCB /* TextResponseTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TextResponseTableViewCell.xib; sourceTree = ""; }; + E12937B2242C437D00003CCB /* settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = settings.swift; sourceTree = ""; }; + E1E55B54242C118B00FFAA8A /* TrackIT.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TrackIT.app; sourceTree = BUILT_PRODUCTS_DIR; }; + E1E55B57242C118B00FFAA8A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + E1E55B59242C118B00FFAA8A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + E1E55B5B242C118B00FFAA8A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + E1E55B5E242C118B00FFAA8A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + E1E55B60242C119500FFAA8A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + E1E55B63242C119500FFAA8A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + E1E55B65242C119500FFAA8A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E1E55B6A242C119500FFAA8A /* TrackITTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TrackITTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + E1E55B6E242C119500FFAA8A /* TrackITTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrackITTests.swift; sourceTree = ""; }; + E1E55B70242C119500FFAA8A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E1E55B75242C119500FFAA8A /* TrackITUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TrackITUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + E1E55B79242C119500FFAA8A /* TrackITUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrackITUITests.swift; sourceTree = ""; }; + E1E55B7B242C119500FFAA8A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E1E55B87242C121D00FFAA8A /* lf30_editor_SKZ870.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = lf30_editor_SKZ870.json; sourceTree = ""; }; + E1E55B89242C28C100FFAA8A /* syncPulse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = syncPulse.swift; sourceTree = ""; }; + E1E55B8B242C2BA300FFAA8A /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; + E1E55B8E242C2C5A00FFAA8A /* TrackIT.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = TrackIT.entitlements; sourceTree = ""; }; + E393149E42E3EBCB3836685D /* Pods_TrackIT_TrackITUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TrackIT_TrackITUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + E1E55B51242C118B00FFAA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C108DB36EF2F552A14453777 /* Pods_TrackIT.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B67242C119500FFAA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 34D62258D8EA74E449C5AB6C /* Pods_TrackITTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B72242C119500FFAA8A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4274A339C3EACE13FECA30EE /* Pods_TrackIT_TrackITUITests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8929458AECDE0E30768C82C3 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 188D54E5AFC5D0B51D7BD933 /* Pods_TrackIT.framework */, + E393149E42E3EBCB3836685D /* Pods_TrackIT_TrackITUITests.framework */, + 0AF93C0CD6EFCD9A0E4727F5 /* Pods_TrackITTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9CD3431AD4CEA07C2192237B /* Pods */ = { + isa = PBXGroup; + children = ( + 6F8A2AAB681311CE18D16556 /* Pods-TrackIT.debug.xcconfig */, + 29EFD4B810C83C6D90DC4A25 /* Pods-TrackIT.release.xcconfig */, + C26554D9DA3AFFB990770668 /* Pods-TrackIT-TrackITUITests.debug.xcconfig */, + 9DFE0B060806E356086B2AF8 /* Pods-TrackIT-TrackITUITests.release.xcconfig */, + 85D8276A1B7A8CA655A1776A /* Pods-TrackITTests.debug.xcconfig */, + 2E3FBB11CD6BD222DEA90EF8 /* Pods-TrackITTests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + E1E55B4B242C118A00FFAA8A = { + isa = PBXGroup; + children = ( + E1E55B87242C121D00FFAA8A /* lf30_editor_SKZ870.json */, + E1E55B56242C118B00FFAA8A /* TrackIT */, + E1E55B6D242C119500FFAA8A /* TrackITTests */, + E1E55B78242C119500FFAA8A /* TrackITUITests */, + E1E55B55242C118B00FFAA8A /* Products */, + 9CD3431AD4CEA07C2192237B /* Pods */, + 8929458AECDE0E30768C82C3 /* Frameworks */, + ); + sourceTree = ""; + }; + E1E55B55242C118B00FFAA8A /* Products */ = { + isa = PBXGroup; + children = ( + E1E55B54242C118B00FFAA8A /* TrackIT.app */, + E1E55B6A242C119500FFAA8A /* TrackITTests.xctest */, + E1E55B75242C119500FFAA8A /* TrackITUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + E1E55B56242C118B00FFAA8A /* TrackIT */ = { + isa = PBXGroup; + children = ( + E1E55B8E242C2C5A00FFAA8A /* TrackIT.entitlements */, + E1E55B57242C118B00FFAA8A /* AppDelegate.swift */, + E129378C242C38EC00003CCB /* AIManager.swift */, + E129378F242C38FC00003CCB /* ForecastResponsTableViewCell.swift */, + E129378E242C38FA00003CCB /* TextResponseTableViewCell.swift */, + E1293790242C38FE00003CCB /* UserTableViewCell.swift */, + E1293794242C390000003CCB /* ChatViewController.swift */, + E1293798242C391300003CCB /* AIRequest.swift */, + E1293799242C391500003CCB /* AIService.swift */, + E1E55B89242C28C100FFAA8A /* syncPulse.swift */, + E129379E242C391A00003CCB /* Colors.swift */, + E129379D242C391900003CCB /* Errors.swift */, + E129379C242C391800003CCB /* extentions.swift */, + E129379F242C391A00003CCB /* URLGenerator.swift */, + E1E55B8B242C2BA300FFAA8A /* GoogleService-Info.plist */, + E1E55B59242C118B00FFAA8A /* SceneDelegate.swift */, + E12937A4242C392200003CCB /* Action.swift */, + E12937A5242C392300003CCB /* Message.swift */, + E12937A8242C392900003CCB /* AI.swift */, + E12937AA242C392D00003CCB /* Intent.swift */, + E1E55B5B242C118B00FFAA8A /* ViewController.swift */, + E12937B2242C437D00003CCB /* settings.swift */, + E12937AC242C393B00003CCB /* UserTableViewCell.xib */, + E12937AE242C393E00003CCB /* TextResponseTableViewCell.xib */, + E12937AD242C393C00003CCB /* ForecastResponseTableViewCell.xib */, + E1E55B5D242C118B00FFAA8A /* Main.storyboard */, + E1E55B60242C119500FFAA8A /* Assets.xcassets */, + E1E55B62242C119500FFAA8A /* LaunchScreen.storyboard */, + E1E55B65242C119500FFAA8A /* Info.plist */, + ); + path = TrackIT; + sourceTree = ""; + }; + E1E55B6D242C119500FFAA8A /* TrackITTests */ = { + isa = PBXGroup; + children = ( + E1E55B6E242C119500FFAA8A /* TrackITTests.swift */, + E1E55B70242C119500FFAA8A /* Info.plist */, + ); + path = TrackITTests; + sourceTree = ""; + }; + E1E55B78242C119500FFAA8A /* TrackITUITests */ = { + isa = PBXGroup; + children = ( + E1E55B79242C119500FFAA8A /* TrackITUITests.swift */, + E1E55B7B242C119500FFAA8A /* Info.plist */, + ); + path = TrackITUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + E1E55B53242C118B00FFAA8A /* TrackIT */ = { + isa = PBXNativeTarget; + buildConfigurationList = E1E55B7E242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackIT" */; + buildPhases = ( + 4835BAF832367208E8904B15 /* [CP] Check Pods Manifest.lock */, + E1E55B50242C118B00FFAA8A /* Sources */, + E1E55B51242C118B00FFAA8A /* Frameworks */, + E1E55B52242C118B00FFAA8A /* Resources */, + C47F024BA20C9E07952B0BE1 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TrackIT; + productName = TrackIT; + productReference = E1E55B54242C118B00FFAA8A /* TrackIT.app */; + productType = "com.apple.product-type.application"; + }; + E1E55B69242C119500FFAA8A /* TrackITTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = E1E55B81242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackITTests" */; + buildPhases = ( + 2C0B2AF7DC211CAF647AEEED /* [CP] Check Pods Manifest.lock */, + E1E55B66242C119500FFAA8A /* Sources */, + E1E55B67242C119500FFAA8A /* Frameworks */, + E1E55B68242C119500FFAA8A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + E1E55B6C242C119500FFAA8A /* PBXTargetDependency */, + ); + name = TrackITTests; + productName = TrackITTests; + productReference = E1E55B6A242C119500FFAA8A /* TrackITTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + E1E55B74242C119500FFAA8A /* TrackITUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = E1E55B84242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackITUITests" */; + buildPhases = ( + B5162CEAC3B5C9767304CB7A /* [CP] Check Pods Manifest.lock */, + E1E55B71242C119500FFAA8A /* Sources */, + E1E55B72242C119500FFAA8A /* Frameworks */, + E1E55B73242C119500FFAA8A /* Resources */, + 4DA5052BE5D676C58E93D137 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + E1E55B77242C119500FFAA8A /* PBXTargetDependency */, + ); + name = TrackITUITests; + productName = TrackITUITests; + productReference = E1E55B75242C119500FFAA8A /* TrackITUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + E1E55B4C242C118A00FFAA8A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1130; + LastUpgradeCheck = 1130; + ORGANIZATIONNAME = "Steve Ink"; + TargetAttributes = { + E1E55B53242C118B00FFAA8A = { + CreatedOnToolsVersion = 11.3; + }; + E1E55B69242C119500FFAA8A = { + CreatedOnToolsVersion = 11.3; + TestTargetID = E1E55B53242C118B00FFAA8A; + }; + E1E55B74242C119500FFAA8A = { + CreatedOnToolsVersion = 11.3; + TestTargetID = E1E55B53242C118B00FFAA8A; + }; + }; + }; + buildConfigurationList = E1E55B4F242C118A00FFAA8A /* Build configuration list for PBXProject "TrackIT" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = E1E55B4B242C118A00FFAA8A; + productRefGroup = E1E55B55242C118B00FFAA8A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + E1E55B53242C118B00FFAA8A /* TrackIT */, + E1E55B69242C119500FFAA8A /* TrackITTests */, + E1E55B74242C119500FFAA8A /* TrackITUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + E1E55B52242C118B00FFAA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E1E55B88242C121D00FFAA8A /* lf30_editor_SKZ870.json in Resources */, + E1E55B64242C119500FFAA8A /* LaunchScreen.storyboard in Resources */, + E1E55B8C242C2BA400FFAA8A /* GoogleService-Info.plist in Resources */, + E1E55B61242C119500FFAA8A /* Assets.xcassets in Resources */, + E12937AF242C393E00003CCB /* UserTableViewCell.xib in Resources */, + E12937B1242C393E00003CCB /* TextResponseTableViewCell.xib in Resources */, + E12937B0242C393E00003CCB /* ForecastResponseTableViewCell.xib in Resources */, + E1E55B5F242C118B00FFAA8A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B68242C119500FFAA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B73242C119500FFAA8A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E1E55B8D242C2BA400FFAA8A /* GoogleService-Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2C0B2AF7DC211CAF647AEEED /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-TrackITTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 4835BAF832367208E8904B15 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-TrackIT-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 4DA5052BE5D676C58E93D137 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-TrackIT-TrackITUITests/Pods-TrackIT-TrackITUITests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-TrackIT-TrackITUITests/Pods-TrackIT-TrackITUITests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TrackIT-TrackITUITests/Pods-TrackIT-TrackITUITests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + B5162CEAC3B5C9767304CB7A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-TrackIT-TrackITUITests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + C47F024BA20C9E07952B0BE1 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-TrackIT/Pods-TrackIT-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-TrackIT/Pods-TrackIT-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-TrackIT/Pods-TrackIT-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + E1E55B50242C118B00FFAA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E12937AB242C392D00003CCB /* Intent.swift in Sources */, + E12937A0242C391B00003CCB /* extentions.swift in Sources */, + E129379B242C391500003CCB /* AIService.swift in Sources */, + E1E55B8A242C28C100FFAA8A /* syncPulse.swift in Sources */, + E12937A7242C392300003CCB /* Message.swift in Sources */, + E12937A2242C391B00003CCB /* Colors.swift in Sources */, + E1293791242C38FE00003CCB /* TextResponseTableViewCell.swift in Sources */, + E12937A6242C392300003CCB /* Action.swift in Sources */, + E1E55B5C242C118B00FFAA8A /* ViewController.swift in Sources */, + E1293792242C38FE00003CCB /* ForecastResponsTableViewCell.swift in Sources */, + E12937A3242C391B00003CCB /* URLGenerator.swift in Sources */, + E1293793242C38FE00003CCB /* UserTableViewCell.swift in Sources */, + E12937A9242C392900003CCB /* AI.swift in Sources */, + E12937A1242C391B00003CCB /* Errors.swift in Sources */, + E12937B3242C437D00003CCB /* settings.swift in Sources */, + E1E55B58242C118B00FFAA8A /* AppDelegate.swift in Sources */, + E129378D242C38EC00003CCB /* AIManager.swift in Sources */, + E129379A242C391500003CCB /* AIRequest.swift in Sources */, + E1293795242C390000003CCB /* ChatViewController.swift in Sources */, + E1E55B5A242C118B00FFAA8A /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B66242C119500FFAA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E1E55B6F242C119500FFAA8A /* TrackITTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + E1E55B71242C119500FFAA8A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E1E55B7A242C119500FFAA8A /* TrackITUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + E1E55B6C242C119500FFAA8A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = E1E55B53242C118B00FFAA8A /* TrackIT */; + targetProxy = E1E55B6B242C119500FFAA8A /* PBXContainerItemProxy */; + }; + E1E55B77242C119500FFAA8A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = E1E55B53242C118B00FFAA8A /* TrackIT */; + targetProxy = E1E55B76242C119500FFAA8A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + E1E55B5D242C118B00FFAA8A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + E1E55B5E242C118B00FFAA8A /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + E1E55B62242C119500FFAA8A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + E1E55B63242C119500FFAA8A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + E1E55B7C242C119500FFAA8A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + E1E55B7D242C119500FFAA8A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + E1E55B7F242C119500FFAA8A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6F8A2AAB681311CE18D16556 /* Pods-TrackIT.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = TrackIT/TrackIT.entitlements; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackIT/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackIT3"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + E1E55B80242C119500FFAA8A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 29EFD4B810C83C6D90DC4A25 /* Pods-TrackIT.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = TrackIT/TrackIT.entitlements; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackIT/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackIT3"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + E1E55B82242C119500FFAA8A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 85D8276A1B7A8CA655A1776A /* Pods-TrackITTests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackITTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackITTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackIT.app/TrackIT"; + }; + name = Debug; + }; + E1E55B83242C119500FFAA8A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2E3FBB11CD6BD222DEA90EF8 /* Pods-TrackITTests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackITTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackITTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackIT.app/TrackIT"; + }; + name = Release; + }; + E1E55B85242C119500FFAA8A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C26554D9DA3AFFB990770668 /* Pods-TrackIT-TrackITUITests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackITUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackITUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TrackIT; + }; + name = Debug; + }; + E1E55B86242C119500FFAA8A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9DFE0B060806E356086B2AF8 /* Pods-TrackIT-TrackITUITests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MC27HKM86M; + INFOPLIST_FILE = TrackITUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "-020.TrackITUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TrackIT; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + E1E55B4F242C118A00FFAA8A /* Build configuration list for PBXProject "TrackIT" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E1E55B7C242C119500FFAA8A /* Debug */, + E1E55B7D242C119500FFAA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E1E55B7E242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackIT" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E1E55B7F242C119500FFAA8A /* Debug */, + E1E55B80242C119500FFAA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E1E55B81242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackITTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E1E55B82242C119500FFAA8A /* Debug */, + E1E55B83242C119500FFAA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E1E55B84242C119500FFAA8A /* Build configuration list for PBXNativeTarget "TrackITUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E1E55B85242C119500FFAA8A /* Debug */, + E1E55B86242C119500FFAA8A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = E1E55B4C242C118A00FFAA8A /* Project object */; +} diff --git a/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..b0efb8c --- /dev/null +++ b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..ff01ecd Binary files /dev/null and b/TrackIT2/TrackIT.xcodeproj/project.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/TrackIT2/TrackIT.xcodeproj/xcuserdata/andreas.xcuserdatad/xcschemes/xcschememanagement.plist b/TrackIT2/TrackIT.xcodeproj/xcuserdata/andreas.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..6a967bf --- /dev/null +++ b/TrackIT2/TrackIT.xcodeproj/xcuserdata/andreas.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + TrackIT.xcscheme_^#shared#^_ + + orderHint + 26 + + + + diff --git a/TrackIT2/TrackIT.xcworkspace/contents.xcworkspacedata b/TrackIT2/TrackIT.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..7af0153 --- /dev/null +++ b/TrackIT2/TrackIT.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/TrackIT2/TrackIT.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TrackIT2/TrackIT.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/TrackIT2/TrackIT.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/TrackIT2/TrackIT.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate b/TrackIT2/TrackIT.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..ed69276 Binary files /dev/null and b/TrackIT2/TrackIT.xcworkspace/xcuserdata/andreas.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/TrackIT2/TrackIT/AI.swift b/TrackIT2/TrackIT/AI.swift new file mode 100644 index 0000000..8339af6 --- /dev/null +++ b/TrackIT2/TrackIT/AI.swift @@ -0,0 +1,25 @@ +// +// AI.swift +// AiBasicApp +// +// Created by Enrico Piovesan on 2018-01-04. +// Copyright © 2018 Enrico Piovesan. All rights reserved. +// + +import UIKit + +class AI { + + var id: String + var lang: String + var score: Double + var intent: Intent + + required init(id: String, lang: String, score: Double) { + self.id = id + self.lang = lang + self.score = score + self.intent = Intent(intentName: "") + } + +} diff --git a/TrackIT2/TrackIT/AIManager.swift b/TrackIT2/TrackIT/AIManager.swift new file mode 100644 index 0000000..ccc027a --- /dev/null +++ b/TrackIT2/TrackIT/AIManager.swift @@ -0,0 +1,86 @@ +// +// AIManager.swift +// AiBasicApp +// +// Created by Enrico Piovesan on 2018-01-04. +// Copyright © 2018 Enrico Piovesan. All rights reserved. +// + +import UIKit +import Alamofire + +class AIManager { + + var ai: AI? = nil + var aiDictionary: NSDictionary + + required init(aiDictionary: NSDictionary) { + self.aiDictionary = aiDictionary + } + + // MARK:- AI serialize + func serialize() -> AI? { + + var id: String? = nil + var lang: String? = nil + var score: Double = 0 + + //ID + if let value = aiDictionary["id"] as? String { + id = value + } + + //Language + if let value = aiDictionary["lang"] as? String { + lang = value + } + + if id == nil && lang == nil { + //id or lang is nil for ai Dictionary + print("id or created is nil for AI Dictionary") + return nil + } else { + + //result + if let result = aiDictionary["result"] as? [String:AnyObject] { + + //Score + if let value = result["score"] as? Double { + score = value + } + + ai = AI(id: id!, lang: lang!, score: score) + + //action + if let value = result["action"] as? String { + + ai!.intent = Intent(intentName: value) + + //fulfillment + if let fulfillment = result["fulfillment"] as? NSDictionary { + if let speech = fulfillment["speech"] as? String { + ai!.intent.speech = speech + } + } + + //contexts + if let contextsArr = result["contexts"] as? [[String : Any]] { + if let contexts = contextsArr.first as NSDictionary? { + //parameters + if let parameters = contexts["parameters"] as? NSDictionary, !result.isEmpty { + ai!.intent.setParametes(parameters) + } + } + } + + } + + } + + return ai + + } + + } + +} diff --git a/TrackIT2/TrackIT/AIRequest.swift b/TrackIT2/TrackIT/AIRequest.swift new file mode 100644 index 0000000..f5afb8f --- /dev/null +++ b/TrackIT2/TrackIT/AIRequest.swift @@ -0,0 +1,43 @@ +// +// AIRequest.swift +// AiBasicApp +// +// Created by Enrico Piovesan on 2018-01-04. +// Copyright © 2018 Enrico Piovesan. All rights reserved. +// + +import UIKit +import Alamofire + +class AIRequest { + + var query: String + var lang: String + var sessionId: String + + init(query: String, lang: String) { + self.query = query + self.lang = lang + self.sessionId = "WB-" + Date().ticks.description + } + + func getHeaders() -> HTTPHeaders { + let clientAccessToken = "52956a2ad4034a53afe10e1274e86f85" + let headers: HTTPHeaders = [ + "Authorization": "Bearer " + clientAccessToken, + ] + return headers + } + + func toParameters() -> Parameters { + + let parameters: Parameters = [ + "query": query, + "lang": lang, + "sessionId": sessionId + ] + + return parameters + } + +} diff --git a/TrackIT2/TrackIT/AIService.swift b/TrackIT2/TrackIT/AIService.swift new file mode 100644 index 0000000..f8c7dc9 --- /dev/null +++ b/TrackIT2/TrackIT/AIService.swift @@ -0,0 +1,53 @@ +// +// AIService.swift +// AiBasicApp +// +// Created by Enrico Piovesan on 2018-01-04. +// Copyright © 2018 Enrico Piovesan. All rights reserved. +// + +import UIKit +import Alamofire +import PromiseKit + +class AIService { + + let aiUrl = URLGenerator.aiApiUrlForPathString(path: "query?v=20150910") + var aiRequest: AIRequest + + init(_ aiRequest: AIRequest) { + self.aiRequest = aiRequest + } + + func getAi() -> Promise { + + let parameters = aiRequest.toParameters() + let headers = aiRequest.getHeaders() + + return Promise { fulfill, reject in + + Alamofire.request(aiUrl, method: .post, parameters: parameters, encoding: JSONEncoding.default, headers: headers) + .responseJSON { response in + switch response.result { + case .success(let json): + var ai: AI? = nil + if let aiManagerDictionary = json as? NSDictionary { + let aiManager = AIManager(aiDictionary: aiManagerDictionary) + ai = aiManager.serialize() + } + + if ai != nil { + fulfill(ai!) + } else { + reject(WeatherBotError.aiManagerDictionary) + } + + case .failure(let error): + reject(error) + } + } + } + + } + +} diff --git a/TrackIT2/TrackIT/Action.swift b/TrackIT2/TrackIT/Action.swift new file mode 100644 index 0000000..3e31aac --- /dev/null +++ b/TrackIT2/TrackIT/Action.swift @@ -0,0 +1,62 @@ +// +// ActionManager.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-09-09. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit +import PromiseKit + +class Action { + + var intent : Intent + + init(_ intent: Intent) { + self.intent = intent + } + + // MARK:- Update Message content + func updateMessage() -> Promise { + return Promise{ fulfill, reject in + switch intent.intentType { + case .smalltalkGreetingsHello: + smalltalkGreetingsHello().then { message in + fulfill(message) + } + case .weather: + + break + case .weatherCondition: + break + case .unKnow: + unkowAction().then { message in + fulfill(message) + } + } + } + + } + + // MARK:- create a weather action + + // MARK:- create an unkow action + func smalltalkGreetingsHello() -> Promise { + let textMessage = intent.speech != "" ? intent.speech : "Hello!" + let message = Message(text: textMessage!, date: Date(), type: .botText) + return Promise{ fulfill, reject in + fulfill(message) + } + } + + // MARK:- create an unkow action + func unkowAction() -> Promise { + let textMessage = intent.speech != "" ? intent.speech : "I'm not sure I understand what you are saying, but I am learning more every day." + let message = Message(text: textMessage!, date: Date(), type: .botText) + return Promise{ fulfill, reject in + fulfill(message) + } + } + +} diff --git a/TrackIT2/TrackIT/AppDelegate.swift b/TrackIT2/TrackIT/AppDelegate.swift new file mode 100644 index 0000000..7d616f5 --- /dev/null +++ b/TrackIT2/TrackIT/AppDelegate.swift @@ -0,0 +1,101 @@ +// +// AppDelegate.swift +// TrackIT +// +// Created by Laima Cernius-Ink on 3/25/20. +// Copyright © 2020 Steve Ink. All rights reserved. +// + +import UIKit +import Firebase + + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + +var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + + // Override point for customization after application launch. + let center = UNUserNotificationCenter.current() + + center.requestAuthorization(options: [.alert, .sound]) { (granted, error) in + } + FirebaseApp.configure() + + let db = Firestore.firestore() + + //findPulseTime + + let docRef = db.collection("sync").document("pulse") + + docRef.getDocument { (document, error) in + if let document = document, document.exists { + let dataDescription = document.data().map(String.init(describing:)) ?? "nil" + print("\(dataDescription)") + let text2 = dataDescription.replacingOccurrences(of: "[\"pulseTime\": ", with: "", options: NSString.CompareOptions.literal, range: nil) + let text3 = text2.replacingOccurrences(of: "]", with: "", options: NSString.CompareOptions.literal, range: nil) + // 2040 + //setPulseTime + if 60 > Double(text3)! { + UIApplication.shared.setMinimumBackgroundFetchInterval(Double(text3 )! + 60) + } + + if 60 < Double(text3)! { + UIApplication.shared.setMinimumBackgroundFetchInterval(Double(text3 )!) + } + } else { + print("Document does not exist") + } + } + + + return true + } + func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { + + let center = UNUserNotificationCenter.current() + // MARK: UISceneSession Lifecycle + let content = UNMutableNotificationContent() + content.title = "Hey I'm a notification!" + content.body = "Look at me!" + + // Step 3: Create the notification trigger + let date = Date().addingTimeInterval(10) + + let dateComponents = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute, .second], from: date) + + let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: false) + + // Step 4: Create the request + + let uuidString = UUID().uuidString + + let request = UNNotificationRequest(identifier: uuidString, content: content, trigger: trigger) + + // Step 5: Register the request + center.add(request) { (error) in + // Check the error parameter and handle any errors + } + } + @available(iOS 13.0, *) + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + + // Fallback on earlier versions + } + + @available(iOS 13.0, *) + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/TrackIT2/TrackIT/Assets.xcassets/AppIcon.appiconset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Contents.json new file mode 100644 index 0000000..27f4621 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Rectangle 7.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Rectangle 7.png b/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Rectangle 7.png new file mode 100644 index 0000000..557e73d Binary files /dev/null and b/TrackIT2/TrackIT/Assets.xcassets/Rectangle 7.imageset/Rectangle 7.png differ diff --git a/TrackIT2/TrackIT/Assets.xcassets/home.imageset/69524 1.png b/TrackIT2/TrackIT/Assets.xcassets/home.imageset/69524 1.png new file mode 100644 index 0000000..42bf33b Binary files /dev/null and b/TrackIT2/TrackIT/Assets.xcassets/home.imageset/69524 1.png differ diff --git a/TrackIT2/TrackIT/Assets.xcassets/home.imageset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/home.imageset/Contents.json new file mode 100644 index 0000000..d6b711b --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/home.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "69524 1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/question.imageset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/question.imageset/Contents.json new file mode 100644 index 0000000..e0f48d0 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/question.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "PNG image-520FB3231A8C-1 1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/question.imageset/PNG image-520FB3231A8C-1 1.png b/TrackIT2/TrackIT/Assets.xcassets/question.imageset/PNG image-520FB3231A8C-1 1.png new file mode 100644 index 0000000..d047c21 Binary files /dev/null and b/TrackIT2/TrackIT/Assets.xcassets/question.imageset/PNG image-520FB3231A8C-1 1.png differ diff --git a/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/Contents.json new file mode 100644 index 0000000..9632f73 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "PNG image-00F48C98FD47-1 1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/PNG image-00F48C98FD47-1 1.png b/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/PNG image-00F48C98FD47-1 1.png new file mode 100644 index 0000000..28778b8 Binary files /dev/null and b/TrackIT2/TrackIT/Assets.xcassets/settings.imageset/PNG image-00F48C98FD47-1 1.png differ diff --git a/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/Contents.json b/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/Contents.json new file mode 100644 index 0000000..9632f73 --- /dev/null +++ b/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "PNG image-00F48C98FD47-1 1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/PNG image-00F48C98FD47-1 1.png b/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/PNG image-00F48C98FD47-1 1.png new file mode 100644 index 0000000..06cadaf Binary files /dev/null and b/TrackIT2/TrackIT/Assets.xcassets/settings2.imageset/PNG image-00F48C98FD47-1 1.png differ diff --git a/TrackIT2/TrackIT/Base.lproj/LaunchScreen.storyboard b/TrackIT2/TrackIT/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/TrackIT2/TrackIT/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TrackIT2/TrackIT/Base.lproj/Main.storyboard b/TrackIT2/TrackIT/Base.lproj/Main.storyboard new file mode 100644 index 0000000..81ece02 --- /dev/null +++ b/TrackIT2/TrackIT/Base.lproj/Main.storyboard @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TrackIT2/TrackIT/ChatViewController.swift b/TrackIT2/TrackIT/ChatViewController.swift new file mode 100644 index 0000000..bc9c973 --- /dev/null +++ b/TrackIT2/TrackIT/ChatViewController.swift @@ -0,0 +1,296 @@ +// +// ChatViewController.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-05-25. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit +import Toolbar +import SnapKit +import ReverseExtension +import Alamofire +import PromiseKit + +class ChatViewController: UIViewController, UITextViewDelegate, UITableViewDataSource, UITableViewDelegate { + + //tool bar + let containerView = UIView() + let toolbar: Toolbar = Toolbar() + var textView: UITextView? + var item0: ToolbarItem? + var item1: ToolbarItem? + var toolbarBottomConstraint: NSLayoutConstraint? + var constraint: NSLayoutConstraint? + + //Messages + var tableView = UITableView() + var messages = [Message]() + + var isMenuHidden: Bool = false { + didSet { + if oldValue == isMenuHidden { + return + } + self.toolbar.layoutIfNeeded() + UIView.animate(withDuration: 0.3) { + self.toolbar.layoutIfNeeded() + } + } + } + + override func loadView() { + super.loadView() + + self.view.addSubview(containerView) + containerView.snp.makeConstraints { (make) -> Void in + make.bottom.equalTo(self.view.snp.bottomMargin) + make.right.equalTo(self.view) + make.left.equalTo(self.view) + make.top.equalTo(self.view.snp.topMargin) + } + //setup background + let gradientLayer = CAGradientLayer() + gradientLayer.colors = [UIColor.chatBackgroundEnd.cgColor, UIColor.chatBackgroundStart.cgColor] + gradientLayer.locations = [0.0, 1.0] + gradientLayer.frame = self.view.bounds + containerView.layer.addSublayer(gradientLayer) + + //add tool bar + containerView.addSubview(toolbar) + self.toolbarBottomConstraint = self.toolbar.bottomAnchor.constraint(equalTo: containerView.bottomAnchor, constant: 0) + self.toolbarBottomConstraint?.isActive = true + let bottomView = UIView() + bottomView.backgroundColor = .chatBackgroundEnd + containerView.addSubview(bottomView) + bottomView.snp.makeConstraints { (make) -> Void in + make.right.equalTo(containerView) + make.left.equalTo(containerView) + make.top.equalTo(toolbar.snp.bottom) + make.height.equalTo(100) + } + + //add table view + containerView.addSubview(tableView) + tableView.snp.makeConstraints { (make) -> Void in + make.bottom.equalTo(toolbar.snp.top) + make.right.equalTo(containerView) + make.left.equalTo(containerView) + make.top.equalTo(containerView) + } + + } + + override func viewDidLoad() { + super.viewDidLoad() + + //add back button + let backButton = UIButton() + backButton.backgroundColor = UIColor.black.withAlphaComponent(0.7) + backButton.clipsToBounds = true + backButton.layer.cornerRadius = 25 + backButton.setImage(UIImage(named: "icon_close"), for: .normal) + backButton.addTarget(self, action: #selector(backHome), for: .touchUpInside) + // containerView.addSubview(backButton) + + + //setup tool bar + let textView: UITextView = UITextView(frame: .zero) + textView.delegate = self + textView.font = UIFont.systemFont(ofSize: 14) + textView.backgroundColor = UIColor.black.withAlphaComponent(0.30) + textView.textColor = .white + self.textView = textView + textView.layer.cornerRadius = 10 + item0 = ToolbarItem(customView: textView) + item1 = ToolbarItem(title: "SEND", target: self, action: #selector(send)) + item1!.tintColor = .mainGreen + item1!.setEnabled(true, animated: false) + toolbar.setItems([item0!, item1!], animated: false) + toolbar.backgroundColor = .black + + let toolbarWrapperView = UIView() + toolbarWrapperView.backgroundColor = .grayBlue + toolbar.insertSubview(toolbarWrapperView, at: 1) + toolbarWrapperView.snp.makeConstraints { (make) -> Void in + make.bottom.equalTo(toolbar) + make.right.equalTo(toolbar) + make.left.equalTo(toolbar) + make.top.equalTo(toolbar) + } + + let gestureRecognizer: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(hide)) + self.view.addGestureRecognizer(gestureRecognizer) + + //setup messages table view + tableView.dataSource = self + tableView.delegate = self + tableView.re.delegate = self + + tableView.tableFooterView = UIView() + tableView.register(UINib(nibName: "UserTableViewCell", bundle: nil), forCellReuseIdentifier: "UserTableViewCell") + tableView.register(UINib(nibName: "TextResponseTableViewCell", bundle: nil), forCellReuseIdentifier: "TextResponseTableViewCell") + tableView.register(UINib(nibName: "ForecastResponseTableViewCell", bundle: nil), forCellReuseIdentifier: "ForecastResponseTableViewCell") + tableView.estimatedRowHeight = 56 + tableView.separatorStyle = .none + tableView.rowHeight = UITableView.automaticDimension + tableView.backgroundColor = .clear + + + tableView.re.scrollViewDidReachTop = { scrollView in + print("scrollViewDidReachTop") + } + tableView.re.scrollViewDidReachBottom = { scrollView in + print("scrollViewDidReachBottom") + } + + //send welcome message + sendWelcomeMessage() + + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + } + + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) + NotificationCenter.default.removeObserver(self) + } + + override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) { + self.toolbar.setNeedsUpdateConstraints() + } + + // MARK: back button + @objc func backHome() { + self.dismiss(animated: true, completion: nil) + } + + // MARK:- tableView + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return messages.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + + let message = messages[messages.count - (indexPath.row + 1)] + + switch message.type { + case .user: + let cell = tableView.dequeueReusableCell(withIdentifier: "UserTableViewCell", for: indexPath) as! UserTableViewCell + cell.configure(with: message) + return cell + case .botText: + let cell = tableView.dequeueReusableCell(withIdentifier: "TextResponseTableViewCell", for: indexPath) as! TextResponseTableViewCell + cell.configure(with: message) + return cell + case .botForecast: + let cell = tableView.dequeueReusableCell(withIdentifier: "ForecastResponseTableViewCell", for: indexPath) as! ForecastResponseTableViewCell + cell.configure(with: message) + return cell + } + + } + + // Mark - Tool bar + + @objc func hide() { + self.textView?.resignFirstResponder() + } + + @objc final func keyboardWillShow(notification: Notification) { + moveToolbar(up: true, notification: notification) + } + + @objc final func keyboardWillHide(notification: Notification) { + moveToolbar(up: false, notification: notification) + } + + @objc func send() { + if self.textView!.text != "" { + + //configure AI Request + let aiRequest = AIRequest(query: textView!.text, lang: "en") + let aiService = AIService(aiRequest) + + //Promise block + firstly{ + aiService.getAi() + }.then { (ai) -> Promise in + ai.intent.createMessage() + }.then {(message) -> Void in + self.sendMessage(message) + }.catch { (error) in + //oh noes error + } + + //user message + let message = Message(text: self.textView!.text!, date: Date(), type: .user) + self.sendMessage(message) + + //reset + self.textView?.text = nil + if let constraint: NSLayoutConstraint = self.constraint { + self.textView?.removeConstraint(constraint) + } + self.toolbar.setNeedsLayout() + } + + } + + // MARK:- send message + func sendMessage(_ message: Message) { + messages.append(message) + tableView.beginUpdates() + tableView.re.insertRows(at: [IndexPath(row: messages.count - 1, section: 0)], with: .automatic) + tableView.endUpdates() + } + + func textViewDidBeginEditing(_ textView: UITextView) { + self.isMenuHidden = true + } + + func textViewDidChange(_ textView: UITextView) { + let size: CGSize = textView.sizeThatFits(textView.bounds.size) + if let constraint: NSLayoutConstraint = self.constraint { + textView.removeConstraint(constraint) + } + self.constraint = textView.heightAnchor.constraint(equalToConstant: size.height) + self.constraint?.priority = UILayoutPriority.defaultHigh + self.constraint?.isActive = true + } + + final func moveToolbar(up: Bool, notification: Notification) { + guard let userInfo = notification.userInfo else { + return + } + let animationDuration: TimeInterval = (userInfo[UIResponder.keyboardAnimationDurationUserInfoKey] as! NSNumber).doubleValue + let keyboardHeight = up ? -(userInfo[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue.height : 0 + + // Animation + self.toolbarBottomConstraint?.constant = keyboardHeight + UIView.animate(withDuration: animationDuration, animations: { + self.toolbar.layoutIfNeeded() + }, completion: nil) + self.isMenuHidden = up + } + + // MARK:- welcome message + + func sendWelcomeMessage() { + let firstTime = true + if firstTime { + let text = "Hello, can I answer any questions for you?" + let message = Message(text: text, date: Date(), type: .botText) + messages.append(message) + } + } +} + diff --git a/TrackIT2/TrackIT/Colors.swift b/TrackIT2/TrackIT/Colors.swift new file mode 100644 index 0000000..2f382bd --- /dev/null +++ b/TrackIT2/TrackIT/Colors.swift @@ -0,0 +1,75 @@ +// +// Colors.swift +// FL_challenge +// +// Created by Enrico Piovesan on 2017-04-01. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit + +extension UIColor { + + static var grayBlue:UIColor { + return UIColor(red:0.29, green:0.63, blue:1.00, alpha:1.00) + } + static var blueBorder:UIColor { + return UIColor(red: 64/255, green: 77/255, blue: 96/255, alpha: 1) + } + static var mainGreen:UIColor { + return UIColor(red:1.00, green:1.00, blue:1.00, alpha:1.00) + } + static var buttonBorder:UIColor { + return UIColor(red: 134/255, green: 238/255, blue: 215/255, alpha: 1) + } + static var purple:UIColor { + return UIColor(red: 175/255, green: 145/255, blue: 221/255, alpha: 1) + } + static var purpleStart:UIColor { + return UIColor(red:0.90, green:0.95, blue:1.00, alpha:1.00) + } + static var purpleEnd:UIColor { + return UIColor(red:0.90, green:0.95, blue:1.00, alpha:1.00) + } + static var chatBackgroundStart:UIColor { + return UIColor(red:0.90, green:0.95, blue:1.00, alpha:1.00) + } + static var chatBackgroundEnd:UIColor { + return UIColor(red:0.90, green:0.95, blue:1.00, alpha:1.00) + } + static var warning:UIColor { + return UIColor(red: 195/255, green: 195/255, blue: 34/255, alpha: 1) + } + static var error:UIColor { + return UIColor(red: 231/255, green: 76/255, blue: 60/255, alpha: 1) + } + static var success:UIColor { + return UIColor(red: 26/255, green: 188/255, blue: 156/255, alpha: 1) + } + static var grey800:UIColor { + return UIColor(red: 34/255, green: 34/255, blue: 34/255, alpha: 1) + } + static var grey700:UIColor { + return UIColor(red: 51/255, green: 51/255, blue: 51/255, alpha: 1) + } + static var grey600:UIColor { + return UIColor(red: 102/255, green: 102/255, blue: 102/255, alpha: 1) + } + static var grey500:UIColor { + return UIColor(red: 153/255, green: 153/255, blue: 153/255, alpha: 1) + } + static var grey400:UIColor { + return UIColor(red: 187/255, green: 187/255, blue: 187/255, alpha: 1) + } + static var grey300:UIColor { + return UIColor(red: 204/255, green: 204/255, blue: 204/255, alpha: 1) + } + static var grey200:UIColor { + return UIColor(red: 221/255, green: 221/255, blue: 221/255, alpha: 1) + } + static var grey100:UIColor { + return UIColor(red: 238/255, green: 238/255, blue: 238/255, alpha: 1) + } +} + + diff --git a/TrackIT2/TrackIT/Errors.swift b/TrackIT2/TrackIT/Errors.swift new file mode 100644 index 0000000..10fb721 --- /dev/null +++ b/TrackIT2/TrackIT/Errors.swift @@ -0,0 +1,16 @@ +// +// Errors.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-12-27. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import Foundation + +enum WeatherBotError: Error { + case unKnowIntent + case weatherManagerDictionary + case aiManagerDictionary + case geocodingManagerDictionary +} diff --git a/TrackIT2/TrackIT/ForecastResponsTableViewCell.swift b/TrackIT2/TrackIT/ForecastResponsTableViewCell.swift new file mode 100644 index 0000000..bf5941d --- /dev/null +++ b/TrackIT2/TrackIT/ForecastResponsTableViewCell.swift @@ -0,0 +1,74 @@ +// +// ForecastResponsTableViewCell.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-07-17. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit +import SnapKit + +class ForecastResponseTableViewCell: UITableViewCell { + + @IBOutlet weak var iconImageView: UIImageView! + @IBOutlet weak var labelContainerView: UIView! + @IBOutlet weak var timeLabel: UILabel! + @IBOutlet weak var cityLabel: UILabel! + @IBOutlet weak var weatherIconImageView: UIImageView! + @IBOutlet weak var dateLabel: UILabel! + @IBOutlet weak var forecastWrapperView: UIView! + + let numberOfDay = 5 + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + iconImageView.layer.cornerRadius = 16 + iconImageView.layer.masksToBounds = true + + labelContainerView.layer.cornerRadius = 8 + labelContainerView.layer.masksToBounds = true + + labelContainerView.backgroundColor = .clear + labelContainerView.layer.borderColor = UIColor.blueBorder.cgColor + labelContainerView.layer.borderWidth = 1 + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + + func configure(with message: Message) { + + //general + + let dateFormatterMessage = DateFormatter() + dateFormatterMessage.setLocalizedDateFormatFromTemplate("hh:mm") + timeLabel.text = dateFormatterMessage.string(from: message.date) + timeLabel.textColor = .grey300 + + ///header + + let dateFormatterHeader = DateFormatter() + dateFormatterHeader.setLocalizedDateFormatFromTemplate("MMMM dd yyyy") + + dateLabel.font = dateLabel.font.withSize(12) + + let sepView = UIView() + sepView.backgroundColor = UIColor.blueBorder.withAlphaComponent(0.5) + labelContainerView.addSubview(sepView) + sepView.snp.makeConstraints { (make) -> Void in + make.right.equalTo(labelContainerView) + make.left.equalTo(labelContainerView) + make.height.equalTo(1) + make.bottom.equalTo(forecastWrapperView.snp.top) + } + + //forecast Days + + } + +} diff --git a/TrackIT2/TrackIT/ForecastResponseTableViewCell.xib b/TrackIT2/TrackIT/ForecastResponseTableViewCell.xib new file mode 100644 index 0000000..b986ef4 --- /dev/null +++ b/TrackIT2/TrackIT/ForecastResponseTableViewCell.xib @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TrackIT2/TrackIT/GoogleService-Info.plist b/TrackIT2/TrackIT/GoogleService-Info.plist new file mode 100644 index 0000000..aa68dab --- /dev/null +++ b/TrackIT2/TrackIT/GoogleService-Info.plist @@ -0,0 +1,36 @@ + + + + + CLIENT_ID + 1041612323849-02nd6mvrp3q6qji398g6lvqoral4jq82.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.1041612323849-02nd6mvrp3q6qji398g6lvqoral4jq82 + API_KEY + AIzaSyBLEg-Qw-D0kl7CJO3AESD-C-u3bPDmni8 + GCM_SENDER_ID + 1041612323849 + PLIST_VERSION + 1 + BUNDLE_ID + com.2020.FirebaseTest + PROJECT_ID + sick-9b5ac + STORAGE_BUCKET + sick-9b5ac.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:1041612323849:ios:801113e4de4a1764370cd8 + DATABASE_URL + https://sick-9b5ac.firebaseio.com + + diff --git a/TrackIT2/TrackIT/Info.plist b/TrackIT2/TrackIT/Info.plist new file mode 100644 index 0000000..2ccd2fe --- /dev/null +++ b/TrackIT2/TrackIT/Info.plist @@ -0,0 +1,67 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIBackgroundModes + + fetch + processing + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/TrackIT2/TrackIT/Intent.swift b/TrackIT2/TrackIT/Intent.swift new file mode 100644 index 0000000..bda1483 --- /dev/null +++ b/TrackIT2/TrackIT/Intent.swift @@ -0,0 +1,82 @@ +// +// Intent.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-09-04. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit +import PromiseKit +import MapKit + +enum IntentType { + case weather + case weatherCondition + case smalltalkGreetingsHello + case unKnow +} + +class Intent { + + var intentName: String + var intentType: IntentType + var parameters: NSDictionary? + var speech : String? + var dates : [Date]? + + + init(intentName: String) { + print(intentName) + self.intentName = intentName + switch intentName { + case "weather.condition": + self.intentType = .weatherCondition + case "weather": + self.intentType = .weather + case "smalltalk.greetings.hello": + self.intentType = .smalltalkGreetingsHello + default: + self.intentType = .unKnow + } + } + + func setParametes(_ parameters: NSDictionary) { + self.parameters = parameters + + dates = getDate(parameters) + } + + func getDate(_ parameters: NSDictionary) -> [Date]? { + if let date = parameters["date-time"] as? String { + var dates = [Date]() + let datesString = date.split(separator: "/") + for dateString in datesString { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd" + guard let dateObj = dateFormatter.date(from: String(dateString)) else { + return nil + } + dates.append(dateObj) + + } + return dates + } else { + return nil + } + } + + func createMessage() -> Promise { + + return Promise{ fulfill, reject in + + Action(self).updateMessage().then { message in + fulfill(message) + }.catch { (error) in + reject(error) + } + + } + } + +} diff --git a/TrackIT2/TrackIT/Message.swift b/TrackIT2/TrackIT/Message.swift new file mode 100644 index 0000000..5a10693 --- /dev/null +++ b/TrackIT2/TrackIT/Message.swift @@ -0,0 +1,37 @@ +// +// Message.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-06-04. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit + +enum MessageType { + case user + case botText + case botForecast +} + +class Message { + + var text: String = "" + var date: Date + var type: MessageType + + + init(date: Date, type: MessageType) { + self.date = date + self.type = type + } + + + + convenience init(text: String, date: Date, type: MessageType) { + self.init(date: date, type: type) + self.text = text + } + + // MARK : create a text response for weather condition intnet +} diff --git a/TrackIT2/TrackIT/SceneDelegate.swift b/TrackIT2/TrackIT/SceneDelegate.swift new file mode 100644 index 0000000..f1d27e5 --- /dev/null +++ b/TrackIT2/TrackIT/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// TrackIT +// +// Created by Laima Cernius-Ink on 3/25/20. +// Copyright © 2020 Steve Ink. All rights reserved. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/TrackIT2/TrackIT/TextResponseTableViewCell.swift b/TrackIT2/TrackIT/TextResponseTableViewCell.swift new file mode 100644 index 0000000..e89ed1e --- /dev/null +++ b/TrackIT2/TrackIT/TextResponseTableViewCell.swift @@ -0,0 +1,48 @@ +// +// TextResponseTableViewCell.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-07-16. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit + +class TextResponseTableViewCell: UITableViewCell { + + @IBOutlet weak var iconImageView: UIImageView! + @IBOutlet weak var messageLabel: UILabel! + @IBOutlet weak var labelContainerView: UIView! + @IBOutlet weak var timeLabel: UILabel! + + override func awakeFromNib() { + super.awakeFromNib() + + // Initialization code + iconImageView.layer.cornerRadius = 16 + iconImageView.layer.masksToBounds = true + + labelContainerView.layer.cornerRadius = 8 + labelContainerView.layer.masksToBounds = true + + // labelContainerView.backgroundColor = .clear + + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + } + + func configure(with message: Message) { + + + messageLabel.text = message.text + messageLabel.textColor = .white + + let dateFormatterMessage = DateFormatter() + dateFormatterMessage.setLocalizedDateFormatFromTemplate("hh:mm") + timeLabel.text = dateFormatterMessage.string(from: message.date) + timeLabel.textColor = .grey300 + + } +} diff --git a/TrackIT2/TrackIT/TextResponseTableViewCell.xib b/TrackIT2/TrackIT/TextResponseTableViewCell.xib new file mode 100644 index 0000000..e774d5a --- /dev/null +++ b/TrackIT2/TrackIT/TextResponseTableViewCell.xib @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TrackIT2/TrackIT/TrackIT.entitlements b/TrackIT2/TrackIT/TrackIT.entitlements new file mode 100644 index 0000000..903def2 --- /dev/null +++ b/TrackIT2/TrackIT/TrackIT.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/TrackIT2/TrackIT/URLGenerator.swift b/TrackIT2/TrackIT/URLGenerator.swift new file mode 100644 index 0000000..7b4c94f --- /dev/null +++ b/TrackIT2/TrackIT/URLGenerator.swift @@ -0,0 +1,45 @@ +// +// URLGenerator.swift +// FL_challenge +// +// Created by Enrico Piovesan on 2017-04-01. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit + +class URLGenerator { + + static let AIbaseUrl: String = "https://api.api.ai" + static let AIversion: String = "v1" + + static let weatherbaseUrl: String = "https://simple-weather.p.mashape.com" + + static let geocodingbaseUrl: String = "https://maps.googleapis.com/maps/api/geocode" + + class func apiUrlForPath(path: String) -> NSURL { + + let urlString = URLGenerator.AIbaseUrl + "/" + URLGenerator.AIversion + "/" + path + return NSURL(string: urlString)! + + } + + class func aiApiUrlForPathString(path: String) -> String { + + return URLGenerator.AIbaseUrl + "/" + URLGenerator.AIversion + "/" + path + + } + + class func weatherApiUrlForPathString(path: String) -> String { + + return URLGenerator.weatherbaseUrl + "/" + path + + } + + class func geocodingApiUrlForPathString(path: String) -> String { + + return URLGenerator.geocodingbaseUrl + "/" + path + + } + +} diff --git a/TrackIT2/TrackIT/UserTableViewCell.swift b/TrackIT2/TrackIT/UserTableViewCell.swift new file mode 100644 index 0000000..df77186 --- /dev/null +++ b/TrackIT2/TrackIT/UserTableViewCell.swift @@ -0,0 +1,49 @@ +// +// UserTableViewCell.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-07-16. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import UIKit + +class UserTableViewCell: UITableViewCell { + + @IBOutlet weak var iconImageView: UIImageView! + @IBOutlet weak var messageLabel: UILabel! + @IBOutlet weak var labelContainerView: UIView! + @IBOutlet weak var timeLabel: UILabel! + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + iconImageView.layer.cornerRadius = 16 + iconImageView.layer.masksToBounds = true + + labelContainerView.layer.cornerRadius = 8 + labelContainerView.layer.masksToBounds = true + + + + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + + func configure(with message: Message) { + + + messageLabel.text = message.text + messageLabel.textColor = .white + + let dateFormatterMessage = DateFormatter() + dateFormatterMessage.setLocalizedDateFormatFromTemplate("hh:mm") + timeLabel.text = dateFormatterMessage.string(from: message.date) + timeLabel.textColor = .mainGreen + + } +} diff --git a/TrackIT2/TrackIT/UserTableViewCell.xib b/TrackIT2/TrackIT/UserTableViewCell.xib new file mode 100644 index 0000000..0cc9b54 --- /dev/null +++ b/TrackIT2/TrackIT/UserTableViewCell.xib @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TrackIT2/TrackIT/ViewController.swift b/TrackIT2/TrackIT/ViewController.swift new file mode 100644 index 0000000..50391af --- /dev/null +++ b/TrackIT2/TrackIT/ViewController.swift @@ -0,0 +1,377 @@ +// +// ViewController.swift +// TrackIT +// +// Created by Laima Cernius-Ink on 3/25/20. +// Copyright © 2020 Steve Ink. All rights reserved. +// + +import UIKit +import Lottie +class ViewController: UIViewController { + + let animationView = AnimationView() + let home = UILabel() + let lbl = UILabel() + let screenSize: CGRect = UIScreen.main.bounds + let view1 = UIView() + let view2 = UIView() + let view3 = UIView() + let view4 = UIView() + let lbl1 = UITextView() + let lbl2 = UITextView() + let lbl3 = UITextView() + let lbl4 = UITextView() + + let description1 = UITextView() + let description2 = UITextView() + let description3 = UITextView() + let description4 = UITextView() + + var panGesture2 = UIPanGestureRecognizer() + func hexStringToUIColor (hex:String) -> UIColor { + var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased() + + if (cString.hasPrefix("#")) { + cString.remove(at: cString.startIndex) + } + + if ((cString.count) != 6) { + return UIColor.gray + } + + var rgbValue:UInt64 = 0 + Scanner(string: cString).scanHexInt64(&rgbValue) + + return UIColor( + red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, + green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0, + blue: CGFloat(rgbValue & 0x0000FF) / 255.0, + alpha: CGFloat(1.0) + ) + } + + override var prefersStatusBarHidden: Bool { + return true + } + + override func viewDidLoad() { + super.viewDidLoad() + + let screenWidth = screenSize.width + let screenHeight = screenSize.height + + let color1 = hexStringToUIColor(hex: "#2792FF") + let color2 = hexStringToUIColor(hex: "#7EBFFF") + + + home.text = "Home" + home.textColor = .black + home.frame.size.width = 200 + home.frame.size.height = 75 + home.center.x = 130 + home.center.y = 105 + // home.font = UIFont(name: "Avenir Next", size: 60) + home.font = .boldSystemFont(ofSize: 45) + + + view.addSubview(home) + let animation = Animation.named("lf30_editor_SKZ870", subdirectory: "") + + animationView.animation = animation + animationView.contentMode = .scaleAspectFit + animationView.frame.size.width = 300 + animationView.frame.size.height = 300 + animationView.center.x = view.center.x + animationView.center.y = view.center.y - 100 + + view.addSubview(animationView) + + lbl.text = "Active" + lbl.font = .boldSystemFont(ofSize: 20) + lbl.sizeToFit() + lbl.center.x = view.center.x + lbl.center.y = view.center.y - 100 + + lbl.textColor = .white + + view.addSubview(lbl) + + view1.layer.cornerRadius = 20 + view2.layer.cornerRadius = 20 + view3.layer.cornerRadius = 20 + view4.layer.cornerRadius = 20 + + view1.frame.size.width = screenWidth - 50 + view1.frame.size.height = 200 + view1.center.x = view.center.x + view1.center.y = animationView.center.y + 250 + view1.backgroundColor = color1 + view.addSubview(view1) + + + + + view2.frame.size.width = screenWidth - 50 + view2.frame.size.height = 200 + view2.center.x = view.center.x + view2.center.y = view1.center.y + 250 + view2.backgroundColor = color1 + view.addSubview(view2) + + view3.frame.size.width = screenWidth - 50 + view3.frame.size.height = 200 + view3.center.x = view.center.x + view3.center.y = view2.center.y + 250 + view3.backgroundColor = color1 + view.addSubview(view3) + + + view4.frame.size.width = screenWidth - 50 + view4.frame.size.height = 200 + view4.center.x = view.center.x + view4.center.y = view3.center.y + 250 + view4.backgroundColor = color1 + view.addSubview(view4) + + lbl1.isEditable = false + lbl2.isEditable = false + lbl3.isEditable = false + lbl4.isEditable = false + lbl1.text = "Why do we collect your data?" + lbl1.textColor = .white + lbl1.backgroundColor = .clear + lbl1.font = .boldSystemFont(ofSize: 24) + lbl1.frame.size.width = screenWidth - 70 + lbl1.frame.size.height = 170 + lbl1.center.x = view.center.x - 10 + lbl1.center.y = 90 + + + view1.addSubview(lbl1) + + lbl2.text = "What data do we collect?" + lbl2.textColor = .white + lbl2.backgroundColor = .clear + lbl2.frame.size.width = screenWidth - 70 + lbl2.frame.size.height = 170 + lbl2.center.x = view.center.x - 20 + lbl2.center.y = 90 + + lbl2.font = .boldSystemFont(ofSize: 24) + + + view2.addSubview(lbl2) + + lbl3.text = "Who recieves my data?" + lbl3.textColor = .white + lbl3.backgroundColor = .clear + lbl3.frame.size.width = screenWidth - 70 + lbl3.frame.size.height = 170 + lbl3.center.x = view.center.x - 10 + lbl3.center.y = 90 + + lbl3.font = .boldSystemFont(ofSize: 24) + + + view3.addSubview(lbl3) + + + lbl4.text = "How do you secure my data?" + lbl4.textColor = .white + lbl4.backgroundColor = .clear + lbl4.frame.size.width = screenWidth - 70 + lbl4.frame.size.height = 170 + lbl4.center.x = view.center.x - 10 + lbl4.center.y = 90 + + lbl4.font = .boldSystemFont(ofSize: 24) + + + + view4.addSubview(lbl4) + + + panGesture2 = UIPanGestureRecognizer(target: self, action: #selector(ViewController.draggedView2(_:))) + view.isUserInteractionEnabled = true + view.addGestureRecognizer(panGesture2) + + description1.text = "We strive to enable healthcare officals to save lives all with your help!" + description1.textColor = .white + description1.frame.size.width = 290 + description1.frame.size.height = 125 + description1.center.x = view.center.x - 20 + description1.center.y = 125 + + + description1.font = .systemFont(ofSize: 20) + description1.backgroundColor = .clear + description1.isEditable = false + view1.addSubview(description1) + + + description2.text = "We collect the userid’s of users you have been in contact with and..." + description2.textColor = .white + description2.frame.size.width = 290 + description2.frame.size.height = 125 + + description2.center.x = view.center.x - 20 + description2.center.y = 100 + + description2.font = .systemFont(ofSize: 20) + description2.backgroundColor = .clear + + view2.addSubview(description2) + description2.isEditable = false + description3.text = "Health officals such as WHO and the CDC among other officals recieve your data nonivasivly and securely. " + description3.textColor = .white + description3.frame.size.width = 290 + description3.frame.size.height = 125 + description3.center.x = view.center.x - 20 + description3.center.y = 105 + + + description3.font = .systemFont(ofSize: 20) + description3.backgroundColor = .clear + view3.addSubview(description3) + description3.isEditable = false + description4.text = "We secure our data with..." + description4.textColor = .white + description4.frame.size.width = 290 + description4.frame.size.height = 125 + description4.center.x = view.center.x - 20 + description4.center.y = 125 + + + description4.font = .systemFont(ofSize: 20) + description4.backgroundColor = .clear + description4.isEditable = false + view4.addSubview(description4) + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + animationView.play(fromProgress: 0, + toProgress: 1, + loopMode: LottieLoopMode.loop, + completion: { (finished) in + if finished { + print("Animation Complete") + } else { + print("Animation cancelled") + } + }) + let screenWidth = screenSize.width + let screenHeight = screenSize.height + let timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in + if self.home.center.y > 105 { + + + self.home.center.y = 105 + + + + } + + if self.home.center.y < -800 { + + + self.home.center.y = -700 + + + + } + } + + } + @objc func draggedView2(_ sender:UIPanGestureRecognizer){ + let screenWidth = screenSize.width + let screenHeight = screenSize.height + let timer = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true) { timer in + if self.home.center.y > 105 { + + + self.home.center.y = 105 + + + + } + + if self.home.center.y < -800 { + + + self.home.center.y = -700 + + + + } + } + //if viewDragLong == true { + //self.view.bringSubviewToFront(planet) + let translation = sender.translation(in: self.view) + // one.center = CGPoint(x: one.center.x, y: one.center.y + translation.y ) + sender.setTranslation(CGPoint.zero, in: self.view) + + UIView.animate(withDuration: 0.4, + delay: 0.0, + options: [], + animations: { [weak self] in + self!.home.center = CGPoint(x: self!.home.center.x, y: self!.home.center.y + translation.y * 1.7 ) + + + }, completion: nil) + + UIView.animate(withDuration: 0.4, + delay: 0.05, + options: [], + animations: { [weak self] in + self?.animationView.center.y = self!.home.center.y + 190 + self?.lbl.center.y = self!.home.center.y + 190 + + }, completion: nil) + + UIView.animate(withDuration: 0.3, + delay: 0.1, + options: [], + animations: { [weak self] in + self!.view1.center.y = ((self?.animationView.center.y)!) + 250 + + + }, completion: nil) + + + UIView.animate(withDuration: 0.4, + delay: 0.15, + options: [], + animations: { [weak self] in + self!.view2.center.y = self!.view1.center.y + 250 + + + }, completion: nil) + UIView.animate(withDuration: 0.4, + delay: 0.2, + options: [], + animations: { [weak self] in + self!.view3.center.y = self!.view2.center.y + 250 + + + }, completion: nil) + + UIView.animate(withDuration: 0.3, + delay: 0.25, + options: [], + animations: { [weak self] in + self!.view4.center.y = self!.view3.center.y + 250 + + + }, completion: nil) + + + + + + + // }/ + } +} + diff --git a/TrackIT2/TrackIT/extentions.swift b/TrackIT2/TrackIT/extentions.swift new file mode 100644 index 0000000..5bee8a4 --- /dev/null +++ b/TrackIT2/TrackIT/extentions.swift @@ -0,0 +1,22 @@ +// +// extentions.swift +// weatherBot +// +// Created by Enrico Piovesan on 2017-07-20. +// Copyright © 2017 Enrico Piovesan. All rights reserved. +// + +import Foundation +import UIKit + +extension Date { + var ticks: UInt64 { + return UInt64((self.timeIntervalSince1970 + 62_135_596_800) * 10_000_000) + } +} + +extension String { + var floatValue: CGFloat { + return CGFloat((self as NSString).floatValue) + } +} diff --git a/TrackIT2/TrackIT/settings.swift b/TrackIT2/TrackIT/settings.swift new file mode 100644 index 0000000..cd7d5fd --- /dev/null +++ b/TrackIT2/TrackIT/settings.swift @@ -0,0 +1,80 @@ +// +// settings.swift +// TrackIT +// +// Created by Laima Cernius-Ink on 3/25/20. +// Copyright © 2020 Steve Ink. All rights reserved. +// + +import UIKit + +class settings: UIViewController { + + let home = UILabel() + let lbl = UILabel() + let screenSize: CGRect = UIScreen.main.bounds + let view1 = UIView() + + func hexStringToUIColor (hex:String) -> UIColor { + var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased() + + if (cString.hasPrefix("#")) { + cString.remove(at: cString.startIndex) + } + + if ((cString.count) != 6) { + return UIColor.gray + } + + var rgbValue:UInt64 = 0 + Scanner(string: cString).scanHexInt64(&rgbValue) + + return UIColor( + red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, + green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0, + blue: CGFloat(rgbValue & 0x0000FF) / 255.0, + alpha: CGFloat(1.0) + ) + } + + override var prefersStatusBarHidden: Bool { + return true + } + + + override func viewDidLoad() { + super.viewDidLoad() + + let screenWidth = screenSize.width + let screenHeight = screenSize.height + + let color1 = hexStringToUIColor(hex: "#2792FF") + let color2 = hexStringToUIColor(hex: "#7EBFFF") + + + + home.text = "Settings" + home.textColor = .black + home.frame.size.width = 200 + home.frame.size.height = 75 + home.center.x = 130 + home.center.y = 105 + // home.font = UIFont(name: "Avenir Next", size: 60) + home.font = .boldSystemFont(ofSize: 45) + + + view.addSubview(home) + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/TrackIT2/TrackIT/syncPulse.swift b/TrackIT2/TrackIT/syncPulse.swift new file mode 100644 index 0000000..0fcdd74 --- /dev/null +++ b/TrackIT2/TrackIT/syncPulse.swift @@ -0,0 +1,49 @@ +// +// syncPulse.swift +// TrackIT +// +// Created by Laima Cernius-Ink on 3/25/20. +// Copyright © 2020 Steve Ink. All rights reserved. +// + +import UIKit +import Firebase +class syncPulse: UIViewController { + + var time = 0 + override func viewDidLoad() { + super.viewDidLoad() + let timer = Timer.scheduledTimer(withTimeInterval: 30, repeats: true) { timer in + let db = Firestore.firestore() + self.time += 30 + print(self.time) + if 2040 - self.time < 0 { + self.time = 0 + } + db.collection("sync").document("pulse").setData([ + "pulseTime": 2040 - self.time, + + ]) { err in + if let err = err { + print("Error writing document: \(err)") + } else { + print("Document successfully written!") + } + } + } + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/TrackIT2/lf30_editor_SKZ870.json b/TrackIT2/lf30_editor_SKZ870.json new file mode 100644 index 0000000..c19a05b --- /dev/null +++ b/TrackIT2/lf30_editor_SKZ870.json @@ -0,0 +1 @@ +{"v":"5.5.0","fr":29.9700012207031,"ip":0,"op":70.0000028511585,"w":250,"h":250,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":90,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[118.549,117.468,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,2.889]},"t":0,"s":[83.62,83.62,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,-0.549]},"t":27,"s":[105.62,105.62,100]},{"t":52.0000021180034,"s":[83.62,83.62,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[106.672,106.672],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.15294117647058825,0.5725490196078431,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.715,9.008],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":72.0000029326201,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"w1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":25.0000010182709,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125.156,124.494,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[83.6,83.6,100]},{"t":25.0000010182709,"s":[234.048,234.048,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[69.508,69.508],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.3254901960784314,0.6549019607843137,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.187,0.605],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[139.443,139.443],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":70.0000028511585,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"w2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":30.0000012219251,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125.326,124.285,0],"ix":2},"a":{"a":0,"k":[-44.248,-66.371,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[92.661,92.661,100]},{"t":30.0000012219251,"s":[229.892,229.892,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[86.801,86.801],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.3254901960784314,0.6549019607843137,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-44.6,-65.6],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":70.0000028511585,"st":0,"bm":0}],"markers":[]} \ No newline at end of file