question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

F-Droid can't build - non-FOSS libs

See original GitHub issue
ERROR: Found usual suspect 'firebase' at node_modules/react-native-device-info/android/build.gradle
ERROR: Found usual suspect 'google.*play.*services' at node_modules/react-native-device-info/android/build.gradle
ERROR: Found unknown maven repo '$rootDir/../node_modules/react-native/android' at node_modules/react-native-device-info/android/build.gradle

An odd little dependency that blocks other apps too iirc, apparently without closed source Google Services apps can’t just find out 2-3 properties about the device they run on. 🙁

Can that be fenced off since it’s used (only) by Amplitude tracking and we don’t need that in F-Droid anyway?

2021-01-07 12:13:17,532 DEBUG: buildserver > error Unable to resolve module `react-native-device-info` from `node_modules/amplitude-js/amplitude.native.js`: react-native-device-info could not be found within the project.
2021-01-07 12:13:17,533 DEBUG: buildserver >
2021-01-07 12:13:17,533 DEBUG: buildserver > Error: Unable to resolve module `react-native-device-info` from `node_modules/amplitude-js/amplitude.native.js`: react-native-device-info could not be found within the project.
2021-01-07 12:13:17,533 DEBUG: buildserver > If you are sure the module exists, try these steps:
2021-01-07 12:13:17,533 DEBUG: buildserver >  1. Clear watchman watches: watchman watch-del-all
2021-01-07 12:13:17,533 DEBUG: buildserver >
2021-01-07 12:13:17,534 DEBUG: buildserver >  2. Delete node_modules: rm -rf node_modules and run yarn install
2021-01-07 12:13:17,534 DEBUG: buildserver > If you are sure the module exists, try these steps:
2021-01-07 12:13:17,534 DEBUG: buildserver >  3. Reset Metro's cache: yarn start --reset-cache
2021-01-07 12:13:17,534 DEBUG: buildserver >  1. Clear watchman watches: watchman watch-del-all
2021-01-07 12:13:17,534 DEBUG: buildserver >  4. Remove the cache: rm -rf /tmp/metro-*. Run CLI with --verbose flag for more details.
2021-01-07 12:13:17,535 DEBUG: buildserver >  2. Delete node_modules: rm -rf node_modules and run yarn install
2021-01-07 12:13:17,535 DEBUG: buildserver >  3. Reset Metro's cache: yarn start --reset-cache
2021-01-07 12:13:17,535 DEBUG: buildserver >  4. Remove the cache: rm -rf /tmp/metro-*
2021-01-07 12:13:17,535 DEBUG: buildserver >     at ModuleResolver.resolveDependency (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15)
2021-01-07 12:13:17,536 DEBUG: buildserver >     at ResolutionRequest.resolveDependency (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
2021-01-07 12:13:17,536 DEBUG: buildserver >     at DependencyGraph.resolveDependency (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)
2021-01-07 12:13:17,536 DEBUG: buildserver >     at Object.resolve (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/lib/transformHelpers.js:267:42)
2021-01-07 12:13:17,536 DEBUG: buildserver >     at dependencies.map.result (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:426:31)
2021-01-07 12:13:17,536 DEBUG: buildserver >     at Array.map (<anonymous>)
2021-01-07 12:13:17,537 DEBUG: buildserver >     at resolveDependencies (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:423:18)
2021-01-07 12:13:17,537 DEBUG: buildserver >     at /home/vagrant/build/org.jitsi.meet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33
2021-01-07 12:13:17,537 DEBUG: buildserver >     at Generator.next (<anonymous>)
2021-01-07 12:13:17,537 DEBUG: buildserver >     at asyncGeneratorStep (/home/vagrant/build/org.jitsi.meet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
2021-01-07 12:13:17,538 DEBUG: buildserver >
2021-01-07 12:13:17,538 DEBUG: buildserver > > Task :sdk:bundleReleaseJsAndAssets FAILED

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Jan 9, 2021

https://github.com/react-native-device-info/react-native-device-info/pull/1156 should fix it, I’ll pull the new release once it’s merged upstream.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Telegraher to F-droid - Apps
If you can't make it better, explain your position in public ... How close are you to Telegram-FOSS (clean up/replacement of non-FOSS libs)?....
Read more >
Is there a difference btw an app available here vs Google ...
It means that the building process differs, GP version may contain trackers, non-FOSS libs, while F-Droid permits such behaviour.
Read more >
Known Repositories - Wiki - F-Droid Forum
Collection of some non-FOSS apps. ... This repository contains unofficial builds of open source apps that are not included in the official ...
Read more >
F-Droid server building Error - fdroidserver
When i try to execute this command python3 setup install I have the following error: error: can't copy 'locale/bo/LC_ME…
Read more >
FAQ - App Developers | F-Droid - Free and Open Source ...
If you use Non-Free/proprietary libraries, we cannot build your app and thus it cannot be included in our mainline repository (see “Can I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found