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

Introduce owncloud-library as module #3962

Closed
9 tasks
abelgardep opened this issue Mar 10, 2023 · 14 comments · Fixed by #4183
Closed
9 tasks

Introduce owncloud-library as module #3962

abelgardep opened this issue Mar 10, 2023 · 14 comments · Fixed by #4183

Comments

@abelgardep
Copy link
Contributor

Is your feature request related to a problem? Please describe.
At the moment, the android library is exported as a project and included in the app as a submodule.
https://github.com/owncloud/android-library

The android-library is kind of coupled to android code and accounts from AccountManager and it is not easy to work with it outside of the android app.

Dependencies need to be maintained in both projects, PR on both projects...

Describe the solution you'd like
The library could be included as an additional module same as owncloudDomain or owncloudData.

Could be called owncloudNetwork since it takes care of every single network request

Screenshot 2023-03-10 at 12 40 21

Additional context
There is not much interest in the android-library project https://github.com/owncloud/android-library/forks

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

PR

  • App
  • Library (if needed)
@abelgardep
Copy link
Contributor Author

Hi @hannesa2, what do you think about this change?

Have u worked with the library outside of the android app?

@hannesa2
Copy link
Contributor

No, I never used it outside. And to be honest, if I would use it outside, it would make no pain to use it from inside of main repo as well

@hannesa2
Copy link
Contributor

Thanks for asking. You have my bless 😉

@abelgardep
Copy link
Contributor Author

There are some facade classes that could be removed as soon as the owncloud-library is introduced as a module.

All the Services could be removed and the remote datasource would call the remote operation directly instead of using this facade https://github.com/owncloud/android-library/blob/master/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/Service.kt

Also, there are some intermediary classes like RemoteShare and RemoteCapability that are redundant and could be removed too. The response classes from Moshi could be mapped directly to model instead of the current CapabilityResponse -> RemoteCapability -> OCCapability

@hannesa2
Copy link
Contributor

hannesa2 commented Apr 25, 2023

If you want, I can do this without loosing the history

@JuancaG05
Copy link
Collaborator

If you want, I can do this without loosing the history

Hi @hannesa2! That would be great! We need to do a quick revision of the whole owncloud-library, and when we're ready, I'll ping you for you to work on this if you want 👍

@jesmrec jesmrec added this to the 4.2 - Future milestone Aug 23, 2023
@jesmrec
Copy link
Collaborator

jesmrec commented Aug 23, 2023

@hannesa2 are you still interested/available to do this one?

@hannesa2
Copy link
Contributor

Yes, I could do this with ease

@jesmrec
Copy link
Collaborator

jesmrec commented Aug 23, 2023

Yes, I could do this with ease

that'd be fantastic.

@hannesa2
Copy link
Contributor

Is now the right time ?
I want to avoid a long running pull request, which causes a lot of maintenance

@jesmrec
Copy link
Collaborator

jesmrec commented Aug 24, 2023

Is now the right time ?
I want to avoid a long running pull request, which causes a lot of maintenance

you're right. Team is now working full-time on new release. We can wait till release is done to review the PR as soon as it is ready. I will ping you at this point.

@jesmrec
Copy link
Collaborator

jesmrec commented Oct 9, 2023

@hannesa2 all the team is now available for reviewing as soon as you send the code (if you are still interested in).

@hannesa2
Copy link
Contributor

hannesa2 commented Oct 9, 2023

@jesmrec #4183

@jesmrec
Copy link
Collaborator

jesmrec commented Oct 9, 2023

so fast, thanks, reviewing by the team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants