Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
3009c5ef
Commit
3009c5ef
authored
Apr 29, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CCPA flow fix: only make the CCPA request after the privacy policy has been viewed.
parent
4d5d2068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
1Weather/ViewModels/TodayViewModel.swift
+5
-5
No files found.
1Weather/ViewModels/TodayViewModel.swift
View file @
3009c5ef
...
...
@@ -63,7 +63,10 @@ class TodayViewModel: ViewModelProtocol {
}
}
private
var
ccpaHelper
=
CCPAHelper
.
shared
public
func
privacyPolicyHasBeenViewed
()
{
ccpaHelper
.
shownPrivacyNoticeBefore
=
true
initializeAllAdsIfNeeded
()
}
...
...
@@ -74,14 +77,11 @@ class TodayViewModel: ViewModelProtocol {
self
.
delegate
?
.
showOnboarding
(
viewModel
:
self
)
}
else
{
let
ccpaHelper
=
CCPAHelper
.
shared
if
!
ccpaHelper
.
shownPrivacyNoticeBefore
{
if
ccpaHelper
.
policyHasBeenUpdated
{
if
!
self
.
ccpaHelper
.
shownPrivacyNoticeBefore
{
if
self
.
ccpaHelper
.
policyHasBeenUpdated
{
analytics
(
log
:
.
ANALYTICS_PRIVACY_POLICY_UPDATED
)
}
self
.
delegate
?
.
showPrivacyNotice
(
viewModel
:
self
)
ccpaHelper
.
shownPrivacyNoticeBefore
=
true
}
else
{
self
.
initializeAllAdsIfNeeded
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment