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

internal/driver/mobile: tidy unused code #2437

Merged
merged 5 commits into from
Sep 22, 2021

Conversation

changkun
Copy link
Member

@changkun changkun commented Sep 7, 2021

Description:

This is the 3rd pull request of a series of pull requests intended to remove the fyne-io/mobile dependency, as per discussed in #2428.

This change does a few simplifications of the internal/driver/mobile package, containing remove unused packages, remove used functions, etc (only 42 GL functions are used for fyne, it might be a good motivation for fyne to write a custom clean gl package, instead of depending on a go-gl package where a gl.go file is in 2MB size).

Updates #843

@andydotxyz @Jacalz

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@changkun changkun changed the base branch from master to develop September 7, 2021 10:28
@changkun changkun marked this pull request as ready for review September 7, 2021 11:37
@changkun changkun marked this pull request as draft September 7, 2021 13:09
@changkun changkun marked this pull request as ready for review September 8, 2021 10:46
@changkun
Copy link
Member Author

changkun commented Sep 8, 2021

@andydotxyz @Jacalz Now rebased on top of the latest develop branch. The diff should be nice for the review.

@changkun
Copy link
Member Author

changkun commented Sep 8, 2021

Hmm. Interesting, what causes the failure? It was all passed.

@changkun
Copy link
Member Author

changkun commented Sep 8, 2021

Looks like because of the change from one of theses

1dcae84
d54867f
ba8b723

@andydotxyz
Copy link
Member

Hmm. Interesting, what causes the failure? It was all passed.

I missed something in Windows test code that somehow got into develop - it's all working smoothly again, sorry

@andydotxyz
Copy link
Member

Sorry for the delay, let's pick this up after v2.1 (just a few more days).
We are so close that I don't want to make large changes, and this can be added any time as there are no API or behaviour changes.

@Jacalz
Copy link
Member

Jacalz commented Sep 15, 2021

I don't currently have any cross compiling setups for mobile devices, so I'll just ask out of curiously. Does this make the mobile binaries any smaller? If so, how much? 🙂

@changkun
Copy link
Member Author

I don't currently have any cross compiling setups for mobile devices, so I'll just ask out of curiously. Does this make the mobile binaries any smaller? If so, how much? 🙂

Yes, a little bit. We still have to rely on cgo anyway (Obj-C and Java). #911 was discussing Windows which will have significant improvements on the binary size.

But still, this reduces the binary size a bit:

iOS:

  • before 28.4MB (develop)
  • after 28.3MB (this)

Android:

  • before 96.8MB (develop)
  • after 96.6MB (this)

@Jacalz
Copy link
Member

Jacalz commented Sep 15, 2021

@changkun Thanks for the numbers. You have successfully cured my curiosity for now. Thanks for working on this :)

@changkun
Copy link
Member Author

@andydotxyz ping

@andydotxyz
Copy link
Member

Yeah sorry - still catching up on backlog, this is on my list for tomorrow!

@andydotxyz andydotxyz merged commit 00be35a into fyne-io:develop Sep 22, 2021
@changkun changkun deleted the gomobile-3 branch September 22, 2021 12:18
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.

3 participants