Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: disable battery optimization #1214

Merged
merged 10 commits into from
Oct 18, 2023
Merged

Conversation

HashEngineering
Copy link
Collaborator

@HashEngineering HashEngineering commented Oct 3, 2023

Issue being fixed or feature implemented

Report Changes:

  • APK Hash and Build Type will help identity the exact build (was it production or not)
  • Battery Optimization will helps us identify slow sync issues
  • Free Usable Space will help identify out of space issues, which are rare
=== application info ===

Version: 9.0.6 (90061)
APK Hash: 1bc4af53cb682838de237e29fd592f6793c961798f48d7bfd910a48ac3b507ab [NEW]
Package: hashengineering.darkcoin.wallet_test
Installer: manual
Test/Prod: test
Flavor: _testNet3
Build Type: debug [NEW]
Battery optimization: no [NEW]
Timezone: America/Los_Angeles
Current Time: 2023-10-03 22:09:02 UTC
Time of app launch: 2023-10-03 22:08:18 UTC
Time of last update: 2023-10-03 22:08:16 UTC
Time of first install: 2023-10-03 22:08:16 UTC
Time of backup: none
Time of seed backup: none
Time of last restore: none
Time of last encrypt keys: none
Time of last blockchain reset: none
Network: org.darkcoin.test
Encrypted: true
Keychain size: 542
...
free/usable space: 6068008/5920552 kB [NEW]

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@HashEngineering HashEngineering self-assigned this Oct 3, 2023
@HashEngineering HashEngineering changed the title Fea: disable battery optimization Feat: disable battery optimization Oct 3, 2023
@HashEngineering HashEngineering marked this pull request as ready for review October 16, 2023 00:06
Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HashEngineering some changes are needed to avoid passing WalletApplication to the report dialog since we want to reduce our reliability on this god-class.

@@ -1114,4 +1117,15 @@ public void checkSendingConditions(
crowdNodeConfig
);
}

public final HashCode apkHash() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to PackageInfoProvider, and then getPackageCodePath() can be accessed from the @ApplicationContext private val context: Context

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were made.

final PackageInfoProvider packageInfoProvider,
final Configuration configuration,
final Wallet wallet,
final WalletApplication application
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't provide the entire WalletApplication to this dialog - I made some changes recently so that PackageInfoProvider has everything needed here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were made.

@Syn-McJ Syn-McJ self-requested a review October 17, 2023 03:35
Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@HashEngineering HashEngineering merged commit e7e65fe into master Oct 18, 2023
2 checks passed
@HashEngineering HashEngineering deleted the feature-battery-optimization branch October 30, 2023 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants