Skip to content

Commit

Permalink
Fix App State isActive (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanCooper9 authored Mar 6, 2024
1 parent c85fe74 commit 090ea1b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion FriendlyCompetitions/AppState/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ final class AppState: AppStateProviding {
UIApplication.didBecomeActiveNotification.publisher.mapToValue(true),
UIApplication.didEnterBackgroundNotification.publisher.mapToValue(false)
)
.prepend(false)
.share(replay: 1)
.eraseToAnyPublisher()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ final class GoogleAdViewModel: NSObject, ObservableObject, GADNativeAdLoaderDele
.mapToVoid()
.first()
.sink { [adLoader, analyticsManager] in
print("> DEBUGGING loading ad")
adLoader.load(GADRequest())
analyticsManager.log(event: .adLoadStarted)
}
Expand Down
2 changes: 1 addition & 1 deletion FriendlyCompetitionsTests/AppState/AppStateTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class AppStateTests: FCTestCase {

func testIsActive() {
let expectation = expectation(description: #function)
let expected = [false, true, false, true]
let expected = [true, false, true]

let appState = AppState()
appState.isActive
Expand Down

0 comments on commit 090ea1b

Please sign in to comment.