Skip to content

Commit

Permalink
Added PortfolioKit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcrich23 committed Nov 27, 2023
1 parent f5773a2 commit d69bda9
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 2 deletions.
25 changes: 24 additions & 1 deletion Easy Bridge Tracker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
229E72C729D1E6BB00A6DD8A /* NotificationPreferencesBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = 229E72C629D1E6BB00A6DD8A /* NotificationPreferencesBody.swift */; };
229E72CA29D20CBC00A6DD8A /* NotificationPreferencesTimePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 229E72C929D20CBC00A6DD8A /* NotificationPreferencesTimePicker.swift */; };
22A815382B140CDA00C53CDD /* GoogleMobileAds in Frameworks */ = {isa = PBXBuildFile; productRef = 22A815372B140CDA00C53CDD /* GoogleMobileAds */; };
22A8153B2B14148200C53CDD /* PortfolioKit in Frameworks */ = {isa = PBXBuildFile; productRef = 22A8153A2B14148200C53CDD /* PortfolioKit */; };
22AB7C77293EDF2A008BD92F /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22AB7C76293EDF2A008BD92F /* NotificationService.swift */; };
22AB7C7B293EDF2A008BD92F /* NotificationService.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 22AB7C74293EDF2A008BD92F /* NotificationService.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
22AB7C81293EDFA4008BD92F /* FirebaseMessaging in Frameworks */ = {isa = PBXBuildFile; productRef = 22AB7C80293EDFA4008BD92F /* FirebaseMessaging */; };
Expand Down Expand Up @@ -251,6 +252,7 @@
222C722F2A89B28200470C25 /* LocalConsole in Frameworks */,
22C28A4329397B9500D37696 /* FirebaseRemoteConfigSwift in Frameworks */,
22C28A1D29397B9500D37696 /* FirebaseAppDistribution-Beta in Frameworks */,
22A8153B2B14148200C53CDD /* PortfolioKit in Frameworks */,
A3413A1028B065BC0016710C /* Mcrich23-Toolkit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -514,6 +516,7 @@
22D8688E29D2BEDC00E7D647 /* RevenueCat */,
222C722E2A89B28200470C25 /* LocalConsole */,
22A815372B140CDA00C53CDD /* GoogleMobileAds */,
22A8153A2B14148200C53CDD /* PortfolioKit */,
);
productName = "Seattle Bridge Tracker";
productReference = A33F92FF28AC90A800391EBB /* Easy Bridge Tracker.app */;
Expand All @@ -527,7 +530,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1410;
LastUpgradeCheck = 1340;
LastUpgradeCheck = 1500;
TargetAttributes = {
224C81EE29459999004C5722 = {
CreatedOnToolsVersion = 14.1;
Expand Down Expand Up @@ -560,6 +563,7 @@
22D8688B29D2BEDC00E7D647 /* XCRemoteSwiftPackageReference "purchases-ios" */,
222C722D2A89B28200470C25 /* XCRemoteSwiftPackageReference "LocalConsole" */,
22A815362B140CC800C53CDD /* XCRemoteSwiftPackageReference "swift-package-manager-google-mobile-ads" */,
22A815392B14106500C53CDD /* XCRemoteSwiftPackageReference "PortfolioKit" */,
);
productRefGroup = A33F930028AC90A800391EBB /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -807,6 +811,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
Expand Down Expand Up @@ -839,6 +844,7 @@
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -868,6 +874,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
Expand Down Expand Up @@ -900,6 +907,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand Down Expand Up @@ -932,6 +940,7 @@
DEVELOPMENT_ASSET_PATHS = "\"Seattle Bridge Tracker/Preview Content\"";
DEVELOPMENT_TEAM = L7JQRVXU2V;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Seattle-Bridge-Tracker-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = Bridges;
Expand Down Expand Up @@ -970,6 +979,7 @@
DEVELOPMENT_ASSET_PATHS = "\"Seattle Bridge Tracker/Preview Content\"";
DEVELOPMENT_TEAM = L7JQRVXU2V;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Seattle-Bridge-Tracker-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = Bridges;
Expand Down Expand Up @@ -1069,6 +1079,14 @@
minimumVersion = 10.13.0;
};
};
22A815392B14106500C53CDD /* XCRemoteSwiftPackageReference "PortfolioKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Mcrich23/PortfolioKit";
requirement = {
branch = main;
kind = branch;
};
};
22C28A1129397B5400D37696 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/firebase/firebase-ios-sdk";
Expand Down Expand Up @@ -1132,6 +1150,11 @@
package = 22A815362B140CC800C53CDD /* XCRemoteSwiftPackageReference "swift-package-manager-google-mobile-ads" */;
productName = GoogleMobileAds;
};
22A8153A2B14148200C53CDD /* PortfolioKit */ = {
isa = XCSwiftPackageProductDependency;
package = 22A815392B14106500C53CDD /* XCRemoteSwiftPackageReference "PortfolioKit" */;
productName = PortfolioKit;
};
22AB7C80293EDFA4008BD92F /* FirebaseMessaging */ = {
isa = XCSwiftPackageProductDependency;
package = 22C28A1129397B5400D37696 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@
"version": "2.30909.0"
}
},
{
"package": "PortfolioKit",
"repositoryURL": "https://github.com/Mcrich23/PortfolioKit",
"state": {
"branch": "main",
"revision": "7fd3b50b04d5279e02fb49d536c908d56a9b5abb",
"version": null
}
},
{
"package": "Promises",
"repositoryURL": "https://github.com/google/promises.git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1340"
LastUpgradeVersion = "1500"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
1 change: 1 addition & 0 deletions Seattle Bridge Tracker/Content View/ContentViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ContentViewModel: ObservableObject {
static let shared = ContentViewModel()
@Published var isShowingNotificationSettings = false
@Published var isShowingInfo = false
@Published var isShowingMoreApps = false
@Published var sortedBridges: [String: [Bridge]] = [:] {
didSet {
var count = 0 {
Expand Down
21 changes: 21 additions & 0 deletions Seattle Bridge Tracker/HelpMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Mcrich23_Toolkit
import SwiftUIBackports
import Introspect
import Foundation
import PortfolioKit
import SwiftUIAlert

struct HelpMenu: View {
Expand Down Expand Up @@ -55,6 +56,11 @@ struct HelpMenu: View {
Link(destination: URL(string: "mailto:support@[email protected]")!) {
Label("Get Support", systemImage: "questionmark.circle")
}
Button {
contentViewModel.isShowingMoreApps.toggle()
} label: {
Label("More Apps", systemImage: "square.stack")
}
Button {
Mcrich23_Toolkit.presentShareSheet(activityItems: ["I found this app that tells you when bridges are up and down in real time! You should download it here: https://mcrich23.com/easy-bridge-tracker"], excludedActivityTypes: [])
} label: {
Expand Down Expand Up @@ -131,6 +137,21 @@ struct HelpMenu: View {
.sheet(isPresented: $contentViewModel.isShowingInfo) {
Info()
}
.sheet(isPresented: $contentViewModel.isShowingMoreApps) {
NavigationView {
PortfolioView()
.navigationTitle(Text("More by Mcrich"))
.navigationBarTitleDisplayMode(.large)
.toolbar {
Button {
contentViewModel.isShowingMoreApps = false
} label: {
Image(systemName: "xmark.circle")
}

}
}
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions Seattle Bridge Tracker/Seattle_Bridge_TrackerApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import SwiftUI
import Mcrich23_Toolkit
import GoogleMobileAds
import Firebase
import PortfolioKit

@main
struct Seattle_Bridge_TrackerApp: App {
Expand Down Expand Up @@ -104,6 +105,9 @@ class AppDelegate: NSObject, UIApplicationDelegate {
if Utilities.appType == .TestFlight || Utilities.appType == .Debug {
Messaging.messaging().subscribe(toTopic: "test")
}
if let url = URL(string: "https://gist.githubusercontent.com/Mcrich23/b55923510068c8672cadc5fac3b07137/raw/PortfolioKit.json") {
PortfolioKit.shared.config(with: url)
}
return true
}
}

0 comments on commit d69bda9

Please sign in to comment.