You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tor takes up a massive amount of space even once compiled, mobile doesn't use it, mobile shouldn't have it in its build, it will help in the app stores. Investigate and fix.
The text was updated successfully, but these errors were encountered:
A workable solution for this issue is to have different files for different build environments.
File Structure:
manager_desktop.go — This file will contain imports and code used only in desktop builds. Therefore only importing torrent related code. manager_mobile.go — This file will be for mobile builds and will not include the torrent related packages.
Build based on GOOS
manager_desktop.go
// +build windows linux darwinpackage communities
funcWithTorrent(manager*Manager) {
// Implementation specific to Desktop
}
manager_mobile.go
// +build android iospackage communities
// No use of the WithTorrent() func.
here is an example of a PR I had made a while ago to make sure we build a certain part of this library only for android x86_64 architecture which used build flags. status-im/tcp-shaker#1
Tor takes up a massive amount of space even once compiled, mobile doesn't use it, mobile shouldn't have it in its build, it will help in the app stores. Investigate and fix.
The text was updated successfully, but these errors were encountered: