{"id":26282397,"url":"https://github.com/deeeed/mm_mobile_tests_crypto","last_synced_at":"2025-03-14T16:50:03.984Z","repository":{"id":181580736,"uuid":"591823462","full_name":"deeeed/mm_mobile_tests_crypto","owner":"deeeed","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-24T09:27:03.000Z","size":847,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-15T05:13:39.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deeeed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-22T01:16:25.000Z","updated_at":"2023-01-24T02:16:39.000Z","dependencies_parsed_at":"2024-01-24T07:00:30.853Z","dependency_job_id":null,"html_url":"https://github.com/deeeed/mm_mobile_tests_crypto","commit_stats":null,"previous_names":["deeeed/mm_mobile_tests_crypto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeeed%2Fmm_mobile_tests_crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeeed%2Fmm_mobile_tests_crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeeed%2Fmm_mobile_tests_crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeeed%2Fmm_mobile_tests_crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deeeed","download_url":"https://codeload.github.com/deeeed/mm_mobile_tests_crypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615580,"owners_count":20319730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-14T16:50:03.538Z","updated_at":"2025-03-14T16:50:03.954Z","avatar_url":"https://github.com/deeeed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test1\n- latest rn: \"react-native\": \"0.71.0\"\n- main example with latest react native version\n- doesn't use rn-nodeify\n- works decently well with iphone\n- EXTREMELY slow encryption for android\n\n# test2\n- doesn't work!!!\n- rn-nodeify / react-native-randombytes not compatible with react native 0.70+\n\n\n# test3\n- use react native v0.67 (similar to previous sdk example)\n- works decently for both iphone and android\n- works exactly like previous example --\u003e conclusion problem is not from the refactoring but from incompatible latest RN versions.\n\n\n## Setup\n- each RN needs a different ruby version to be working, the best way to manage the different versions is to use `asdf` and switch between projects\n    - ruby 2.7.6 for RN 0.71.0\n    - ruby 2.7.5 for RN 0.67\n```bash\n# install compatible ruby versions\n asdf install ruby 2.7.6    \n asdf install ruby 2.7.5    \n asdf install ruby 2.7.4\n # it will then automatically switch to the correct version in each example folder\n```\n\n- Make sure to edit the path to latest sdk versions in the `hackit.sh` script that will replace sdk and comm-layer libraries.\n- Make sure to test with your local socket server, changing the ngrok url after `ngrok http http://localhost:5400`\n\n## Check rn-nodeify issue on android\n```bash\nnpx react-native init test4\ncd test4\nyarn add rn-nodeify react-native-randombytes react-native-crypto\n## as soon as you run rn-nodeify the project will not build on android\nyarn rn-nodeify --hack --install --yarn\n# on terminal1:\nyarn start\n# on terminal2:\nyarn android\n#### see the errors...\n```\n```\n▷ yarn android                                                                                                                         !? main\nyarn run v1.22.19\nwarning ../../../package.json: No license field\n$ react-native run-android\nwarn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via \"project.ios.sourceDir\". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md\ninfo JS server already running.\ninfo Launching emulator...\ninfo Successfully launched emulator.\ninfo Installing the app...\nStarting a Gradle Daemon (subsequent builds will be faster)\n\nDeprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.\n\nYou can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.\n\nSee https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings\n5 actionable tasks: 5 executed\n\nFAILURE: Build failed with an exception.\n\n* Where:\nBuild file '/Users/arthurbreton/Projects/tests_crypto/test4/node_modules/react-native-os/android/build.gradle' line: 47\n\n* What went wrong:\nA problem occurred evaluating project ':react-native-os'.\n\u003e Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.\n\n* Try:\n\u003e Run with --stacktrace option to get the stack trace.\n\u003e Run with --info or --debug option to get more log output.\n\u003e Run with --scan to get full insights.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 19s\n\nerror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.\nError: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeeed%2Fmm_mobile_tests_crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeeeed%2Fmm_mobile_tests_crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeeed%2Fmm_mobile_tests_crypto/lists"}