Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Foundation
public enum SheetDestination: String {
case userProfile
case newShow
case paywall
}

extension SheetDestination: Identifiable {
Expand All @@ -24,8 +23,6 @@ extension SheetDestination: Identifiable {
"Sheet.UserProfile"
case .newShow:
"Sheet.NewShow"
case .paywall:
"Sheet.paywall"
}
}
}
16 changes: 12 additions & 4 deletions Sources/iHog/iHog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
692677A32D0943500006895D /* AppRouter in Frameworks */ = {isa = PBXBuildFile; productRef = 692677A22D0943500006895D /* AppRouter */; };
693137A42CE1579000562B73 /* PostHog in Frameworks */ = {isa = PBXBuildFile; productRef = 693137A32CE1579000562B73 /* PostHog */; };
69666DE92CDD774B008A0057 /* TelemetryDeck in Frameworks */ = {isa = PBXBuildFile; productRef = 69666DE82CDD774B008A0057 /* TelemetryDeck */; };
69C8F9752E8E269900F3C4D9 /* RevenueCatUI in Frameworks */ = {isa = PBXBuildFile; productRef = 69C8F9742E8E269900F3C4D9 /* RevenueCatUI */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -95,6 +96,7 @@
3730E00D27A17B27006FCA5E /* OctoKit in Frameworks */,
15C8285125FA4B83003FAEFA /* StoreKit.framework in Frameworks */,
69666DE92CDD774B008A0057 /* TelemetryDeck in Frameworks */,
69C8F9752E8E269900F3C4D9 /* RevenueCatUI in Frameworks */,
377087D727AABFF000B0754A /* CoffeeToast in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -221,6 +223,7 @@
69666DE82CDD774B008A0057 /* TelemetryDeck */,
693137A32CE1579000562B73 /* PostHog */,
692677A22D0943500006895D /* AppRouter */,
69C8F9742E8E269900F3C4D9 /* RevenueCatUI */,
);
productName = iHog;
productReference = 15DA2673251237D60063E236 /* iHog.app */;
Expand Down Expand Up @@ -580,7 +583,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2025.1.0;
MARKETING_VERSION = 2025.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.appsbymw.hogosc;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -610,7 +613,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2025.1.0;
MARKETING_VERSION = 2025.2.0;
PRODUCT_BUNDLE_IDENTIFIER = com.appsbymw.hogosc;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -763,7 +766,7 @@
repositoryURL = "https://github.com/RevenueCat/purchases-ios.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.0.0;
minimumVersion = 5.0.0;
};
};
377087D527AABFF000B0754A /* XCRemoteSwiftPackageReference "CoffeeToast" */ = {
Expand All @@ -776,7 +779,7 @@
};
37EAFA8E27AF31530092C11E /* XCRemoteSwiftPackageReference "OSCKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/maeganwilson/OSCKit";
repositoryURL = "https://github.com/heyjaywilson/OSCKit";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 3.0.0;
Expand Down Expand Up @@ -835,6 +838,11 @@
package = 69666DE72CDD774B008A0057 /* XCRemoteSwiftPackageReference "SwiftSDK" */;
productName = TelemetryDeck;
};
69C8F9742E8E269900F3C4D9 /* RevenueCatUI */ = {
isa = XCSwiftPackageProductDependency;
package = 3769730A28A52743004D9BEF /* XCRemoteSwiftPackageReference "purchases-ios" */;
productName = RevenueCatUI;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 15DA266B251237D60063E236 /* Project object */;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,54 @@
uuid = "23519C18-AFDD-4910-AE10-10538A071319"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "CE2D3E4D-767E-45BB-9A35-47E760E58408"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "iHog/Features/Settings/SettingsView.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "283"
endingLineNumber = "283"
landmarkName = "addShow()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "A731A0BC-A2C8-4FED-B95B-4CE34733C048"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "iHog/Features/AppPaymentService/AppPaymentService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "132"
endingLineNumber = "132"
landmarkName = "determineDateOriginallySubscribed()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "BA40AE08-09E6-4DCA-B70E-B93758D8D03F"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "iHog/Features/AppPaymentService/AppPaymentService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "164"
endingLineNumber = "164"
landmarkName = "determineIfNeedsEarlyAdopterEntitlement()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
6 changes: 4 additions & 2 deletions Sources/iHog/iHog/Analytics/AnalyticEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ enum AnalyticEvent: String {
case subscribeButtonTapped
/// Track when a purchase is made
case purchase
case purchaseRestoreCompleted
case paywallDismissed
/// Track when the connect to console button is tapped
case connectToConsoleTapped
/// Track when the disconnect from console button is tapped
Expand All @@ -31,8 +33,8 @@ enum AnalyticEvent: String {
case showDeleted
/// Button to delete show was tapped
case showDeleteTapped
/// Add show button tapped
case addShowTapped
/// Add show button tapped
case addShowTapped

/// Hyphen separated
var value: String {
Expand Down
5 changes: 3 additions & 2 deletions Sources/iHog/iHog/Analytics/AnalyticEventParameter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ enum UserProperty: String {
enum AnalyticEventParameter: String {
case numberOfShows
case paywallSource
case paywallTrigger
case restoreSuccessful
case activeSubscriptions
case errorLevel
case purchaseState
case purchaseAmount
case onboardingStep
case userIsSandBoxed = "user.isSandboxed"
case featureFlagValue = "featureFlag.value"
case featureFlagKey = "featureFlag.key"
}

enum PaywallSource: String {
Expand Down
10 changes: 0 additions & 10 deletions Sources/iHog/iHog/Analytics/Analytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,4 @@ class Analytics {
HogLogger.log(category: .analytics)
.debug("🔦 Logged event: \(AnalyticEvent.userCodeLoaded.rawValue) | \(codes)")
}

func logFeatureFlagToggle(flag: FeatureFlagKey, value: Bool) {
logEvent(
with: .featureFlagToggled,
parameters: [
.featureFlagKey: flag.rawValue,
.featureFlagValue: value,
]
)
}
}
30 changes: 0 additions & 30 deletions Sources/iHog/iHog/FeatureFlags/FeatureFlagKey.swift

This file was deleted.

Loading