Skip to content

White primary color test#5384

Open
tobiasKaminsky wants to merge 1 commit intomasterfrom
whitePrimaryColorTest
Open

White primary color test#5384
tobiasKaminsky wants to merge 1 commit intomasterfrom
whitePrimaryColorTest

Conversation

@tobiasKaminsky
Copy link
Member

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.

@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12483.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot
Copy link
Collaborator

Codacy Here is an overview of what got changed by this pull request:

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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

accountPushData = gson.fromJson(providerValue,
PushConfigurationState.class);
} else {
accountPushData = null;
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

signature = Signature.getInstance("SHA512withRSA");
if (accounts.length > 0) {
for (Account account : accounts) {
if (!TextUtils.isEmpty(arbitraryValue = arbitraryDataProvider.getValue(account, KEY_PUSH))) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (remoteOperationResult.isSuccess()) {
PushResponse pushResponse = remoteOperationResult.getPushResponseData();

RemoteOperationResult resultProxy = new RegisterAccountDeviceForProxyOperation(
Copy link
Collaborator

Choose a reason for hiding this comment

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

!accountPushData.isShouldBeDeleted() ||
TextUtils.isEmpty(providerValue)) {
try {
OwnCloudAccount ocAccount = new OwnCloudAccount(account, context);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants