Git Product home page Git Product logo

Comments (6)

achuvm avatar achuvm commented on May 17, 2024 12

Hi @dittmarconsulting,

Yes, it's possible to run Viro w/o ngrok.

If you're using the Viro Media App:
On iOS:

  1. If your phone and computer are on the same network, you can type in your local IP address.

On Android:

  1. You can also use your local IP address.
  2. You can reverse tether using the command adb reverse tcp:8081 tcp:8081 and simply use the localhost address: 127.0.0.1 in the Viro Media App.

If you're building your app through Xcode:

  1. in AppDelegate.m, change the line BOOL usingNgrok = YES; to BOOL usingNgrok = NO;, this will default to using local IP (this is automatically detected and "sent" to the built app).

If you're building your app through Android Studio:

  1. You should reverse tether using the command adb reverse tcp:8081 tcp:8081 and simply build and run the application.

Let me know if you need help or more clarification!

Andy

from viro.

dittmarconsulting avatar dittmarconsulting commented on May 17, 2024

Thank you very much for the fast reply.

I was after the Xcode switch but I'm sure others will be interested in the other solutions as well.

It's especially important to turn off the tunnel to enable remote debugging unless that's possible with ngrok.

Thanks again,
Tom

from viro.

mypark avatar mypark commented on May 17, 2024

I'm assuming that ngrok will not on release/production builds - how is that configuration handled? Is that in the docs somewhere?

from viro.

achuvm avatar achuvm commented on May 17, 2024

Hi @mypark,

The use of a packager server vs bundled Javascript assets is a feature of React Native. We just added the ngrok bit to overcome a few issues, but the deployment/release process is the same as React Native.

Instructions for Android can be found here:
https://facebook.github.io/react-native/docs/signed-apk-android.html

iOS:
I can't find the instructions for iOS, but they're the same as any other iOS app out there, simply change the Scheme's Build Configuration to Release:
https://stackoverflow.com/questions/5706548/how-do-i-create-a-release-build-in-xcode

Let us know if you have any issues

from viro.

Mrashes avatar Mrashes commented on May 17, 2024

Hi @achuvm,

Following up on this, if I want to locally distribute (ios) to coworkers without use of the apple appstore, am I unable to do so without an ngrok or local setup constantly running?

Update: forgot hello

from viro.

achuvm avatar achuvm commented on May 17, 2024

Hey @Mrashes,

You should be able to perform a release build by clicking on the scheme -> Edit Schemes... -> Run -> Build Configuration -> Release. See the image below for reference.

Keep in mind you will need to do this for the React library as well as the ViroReact library before building your app too.

Let us know if you have any issues with that!

screen shot 2018-10-15 at 10 24 45 am

from viro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.