-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
White primary color test #5384
base: master
Are you sure you want to change the base?
White primary color test #5384
Conversation
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12483.apk |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/12483-IT |
Issues
======
- Added 6
Complexity increasing per file
==============================
- src/themedWhite/java/com/owncloud/android/utils/PushUtils.java 19
- src/themedWhite/java/com/owncloud/android/services/firebase/NCFirebaseInstanceIDService.java 2
- src/themedWhite/java/com/owncloud/android/services/firebase/NCFirebaseMessagingService.java 3
- src/themedWhite/java/com/owncloud/android/utils/SecurityUtils.java 1
- src/themedWhite/java/com/owncloud/android/utils/GooglePlayUtils.java 3
- src/themedWhite/java/com/owncloud/android/authentication/ModifiedAuthenticatorActivity.java 1
See the complete overview on Codacy |
.run(); | ||
|
||
if (resultProxy.isSuccess()) { | ||
PushConfigurationState pushArbitraryData = new PushConfigurationState(token, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Avoid instantiating new objects inside loops
accountPushData = gson.fromJson(providerValue, | ||
PushConfigurationState.class); | ||
} else { | ||
accountPushData = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getClientFor(ocAccount, context); | ||
|
||
RemoteOperationResult remoteOperationResult = | ||
new RegisterAccountDeviceForNotificationsOperation(pushTokenHash, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Avoid instantiating new objects inside loops
signature = Signature.getInstance("SHA512withRSA"); | ||
if (accounts.length > 0) { | ||
for (Account account : accounts) { | ||
if (!TextUtils.isEmpty(arbitraryValue = arbitraryDataProvider.getValue(account, KEY_PUSH))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Avoid assignments in operands
if (remoteOperationResult.isSuccess()) { | ||
PushResponse pushResponse = remoteOperationResult.getPushResponseData(); | ||
|
||
RemoteOperationResult resultProxy = new RegisterAccountDeviceForProxyOperation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Avoid instantiating new objects inside loops
!accountPushData.isShouldBeDeleted() || | ||
TextUtils.isEmpty(providerValue)) { | ||
try { | ||
OwnCloudAccount ocAccount = new OwnCloudAccount(account, context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Avoid instantiating new objects inside loops
46ae569
to
484a2b6
Compare
Signed-off-by: tobiasKaminsky <[email protected]>
484a2b6
to
0342c47
Compare
Test for #5383
Needs pedrovgs/Shot#77
Testing
Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.