Skip to content

Commit 1063f48

Browse files
authored
Restructure feedback metadata for VPN (#5373)
Task/Issue URL: https://app.asana.com/0/488551667048375/1208627799127675/f ### Description Add auto exclude broken apps status in VPN feedback metadata + restructure some other info in VPN feedback ### Steps to test this PR QA-optional
1 parent ac2c8a8 commit 1063f48

File tree

1 file changed

+8
-7
lines changed
  • network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/integration

1 file changed

+8
-7
lines changed

network-protection/network-protection-impl/src/main/java/com/duckduckgo/networkprotection/impl/integration/NetPStateCollector.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,20 @@ class NetPStateCollector @Inject constructor(
5757
put("enabled", isNetpRunning)
5858
put("CGNATed", isCGNATed())
5959
put("subscriptionActive", netpSubscriptionManager.getVpnStatus().isActive())
60+
appPackageId?.let {
61+
put("reportedAppProtected", !netPExclusionListRepository.getExcludedAppPackages().contains(it))
62+
}
63+
put("excludeLocalNetworks", netPSettingsLocalConfig.vpnExcludeLocalNetworkRoutes().isEnabled())
64+
put("excludedSystemAppCategories", systemAppsExclusionRepository.getExcludedCategories().map { it.name })
65+
put("pauseDuringWifiCallsEnabled", netPSettingsLocalConfig.vpnPauseDuringCalls().isEnabled())
66+
put("customDNS", !netpVpnSettingsDataStore.customDns.isNullOrEmpty())
67+
put("autoExcludeBrokenApps", netPSettingsLocalConfig.autoExcludeBrokenApps().isEnabled())
6068
if (isNetpRunning) {
61-
appPackageId?.let {
62-
put("reportedAppProtected", !netPExclusionListRepository.getExcludedAppPackages().contains(it))
63-
}
6469
val serverDetails = wgTunnelConfig.getWgConfig()?.asServerDetails()
6570
put("connectedServer", serverDetails?.location ?: "Unknown")
6671
put("connectedServerIP", serverDetails?.ipAddress ?: "Unknown")
6772
put("connectionQuality", connectionQualityStore.getConnectionLatency().asConnectionQuality())
6873
put("customServerSelection", netPGeoswitchingRepository.getUserPreferredLocation().countryCode != null)
69-
put("excludeLocalNetworks", netPSettingsLocalConfig.vpnExcludeLocalNetworkRoutes().isEnabled())
70-
put("excludedSystemAppCategories", systemAppsExclusionRepository.getExcludedCategories().map { it.name })
71-
put("pauseDuringWifiCallsEnabled", netPSettingsLocalConfig.vpnPauseDuringCalls().isEnabled())
72-
put("customDNS", !netpVpnSettingsDataStore.customDns.isNullOrEmpty())
7374
}
7475
}
7576
}

0 commit comments

Comments
 (0)