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

Unifiedpush-OLD #2993

Closed
wants to merge 13 commits into from
Closed

Unifiedpush-OLD #2993

wants to merge 13 commits into from

Conversation

p1gp1g
Copy link
Contributor

@p1gp1g p1gp1g commented Mar 12, 2021

Pull Request Checklist

  • Changes has been tested on an Android device or Android emulator with API 21
  • UI change has been tested on both light and dark themes
  • Pull request is based on the develop branch
  • Pull request updates CHANGES.md
  • Pull request includes screenshots or videos if containing UI changes
  • Pull request includes a sign off

It still need some improvement, and help is welcomed.

  • Test the gateway and use the user's one if present.¹
  • Simplify diff Fdroid/Gplay.²
  • Maybe some improvement on the checking list.

¹ im.vector.app.core.pushers.UPHelper.customOrDefaultGateway: GET custom, if it returns '{"gateway":"matrix"} use custom. What is the best way to do the GET on element-android point of view?
² the only diff should be im.vector.app.push.fcm.FCMHelper.isPlayServicesAvailable and im.vector.app.push.fcm.EmbeddedDistrib. And so, the fallback should work on all flavours without a distributor (on Gplay version, it happens only if the gplay version has been installed on a phone without GServices).

@p1gp1g
Copy link
Contributor Author

p1gp1g commented Mar 12, 2021

@p1gp1g
Copy link
Contributor Author

p1gp1g commented Mar 12, 2021

AlertDialogs are forbidden ?

Search for forbidden patterns in code...
❌ Error: 'android\.app\.AlertDialog' detected 1 time, in file './vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt', at line 18.
Rule: Use AlertDialog form v7 compat lib
1 forbidden pattern detected

@ShadowJonathan
Copy link
Contributor

AlertDialogs are forbidden ?

They're not forbidden, you need to use a compatibility library instead of instantiating them directly via that class path

@p1gp1g
Copy link
Contributor Author

p1gp1g commented Mar 18, 2021

The build doesn't work after the ktlint clean. It shouldn't be related to this PR, since I haven't touch the lib not found :
Could not find org.matrix.gitlab.matrix-org:olm:3.2.2. which is here : https://jitpack.io/org/matrix/gitlab/matrix-org/olm/3.2.2/olm-3.2.2.pom

@p1gp1g p1gp1g closed this Jun 2, 2021
@p1gp1g p1gp1g deleted the unifiedpush branch June 2, 2021 05:59
@p1gp1g p1gp1g changed the title Unifiedpush Unifiedpush-OLD Jun 2, 2021
@p1gp1g p1gp1g mentioned this pull request Jun 2, 2021
6 tasks
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.

2 participants