How do i set android exported property to false in expo's app.json file - expo

I have recently started started in expo and when i compile or run tests on my application i get warnings saying
'ACTIVITY NOT PROTECTED'
in Android Studio I set this android:exported= false in the manifest file
how can I achieve the same thing in expo go using react native

Related

Degugging a react native / expo app with webstorm

I can't debug my react native / expo app in WebStorm, but I can in Visual Studio Code.
I have a react native app that I can successfully run using expo. I set up the configuration according to the info on this site:
https://blog.jetbrains.com/webstorm/2018/02/webstorm-2018-1-eap-181-3263/#debugging-expo
When I click "run" or "debug" and "Debug JS Remotely" is turned off, the bundler builds a JS bundle and the app starts on my devices.
But once I turn on "Debug JS Remotely", the bundler only says:
Starting custom debugger by executing: : [my working directory] [my working directory again]
and never goes on to build the JS bundle.
After a short while, a red screen appears on the device, and it says:
Unable to connect with remote debugger
Timeout while connecting to remote debugger
onFailure
DevSupportManagerImpl.java:851
onFailure
WebsocketJavaScriptExecutor.java:83
run
WebsocketJavaScriptExecutor.java:142
handleCallback
Handler.java:790
dispatchMessage
Handler.java:99
...
The bundler doesn't say anything more than the message above.
As soon as I turn off remote debugging, the the bundler starts building again and finishes with
"Building JavaScript bundle: finished in ...ms"
as usual, but the device, again, shows the red screen with aforementioned messages, or doesn't show anything but the regular white screen with a message at the bottom saying "Downlading JavaScript bundle 100,00%". I either have to stop and restart within WebStorm or I have to close the expo app and re-open it. Either way will make the app start again on my device.
This is my first time working with javascript, react native, expo, so I am not sure, but it should be possible to debug in WebStorm directly, right? As mentioned, in Visual Studio Code everything including debugging works fine, so I don't think it's anything in the code. Maybe someone here has an idea where the problem lies?
node -v: v11.6.0
react-native -v: react-native-cli: 2.0.1, react-native: 0.57.1
Any help will be greatly appreciated! Thanks in advance!
PROOF
HOWTO
Looks like there's been an update to how you can setup Configurations since you tried.
Try changing the Bundler host to 127.0.0.1 and try again.
I just setup Webstorm v2020.2 yesterday to debug my Expo application and it is working as expected.
These instructions were all that I required: https://www.jetbrains.com/help/webstorm/react-native.html#ws_react_native_create_run_config
On the main menu, go to Run | Edit Configurations, click icons.general.add.svg and select React Native from the list. The Run/Debug Configuration: React Native opens.
Choose whether you want WebStorm to build and launch the application for you:
Select the Build and launch checkbox if you are launching your application for the first time or if you have updated its native code since the last run.
If your application uses Expo, clear the checkbox because this bundler takes care of the process itself.
If you selected the Build and launch checkbox, choose the target platform, Android or iOS. Depending on your choice, WebStorm will run the bundler with react-native run-ios or with react-native run-android.
Optionally, type the arguments to be passed to React Native, for example, specify the simulator type through the ‑‑simulator flag: ‑‑simulator="iPhone 4s".
In the Bundler host field, specify the host where the React Native bundler runs, the default value is localhost.
If you are using Expo, change the default bundler host to ensure successful connection with the debugger. This connection may fail because WebStorm by default uses localhost to start debugging while Expo expects 127.0.0.1 or an external IP address depending on what is selected in Connection field of the Metro bundler configuration. See Debugging a React Native application that uses Expo for details.
In the Bundler port field, specify the port on which the React Native bundler runs, by default 8081 is chosen, learn more from the React Native official website.
Choose the Node.js interpreter to use. This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux.
Specify the path to react-native-cli and the working directory of the application. Optionally, type the environment variables for react-native run-android or react-native run-ios.
By default, WebStorm starts the React Native bundler automatically when you invoke the run/debug configuration. If you have already started the bundler from outside WebStorm, for example, from the command line, you can re-use it without stopping and restarting. Select your bundler in the Before Launch area and click Remove.
The issue is tracked at WEB-35719, please follow it for updates

Cordova can't create app package for windows Store

I'm creating an app with cordova and I need to release it on the windows store (is already in the App store and in the process to be released on the play store so the app itself is working) so I've cloned my cordova app on a windows machine downloaded the Microsoft Visual Studio 2017 community edition and created a new project from existing code selecting apache cordova in the wizard.
And I can run the app on emulator and a real device but when I try to "Project" -> "Store" -> "Create App Packages..." I always fail the verification but the strange thing is that it looks that all the test are passed but at the end I got an error suggesting to check in the folder: "C:\Users[$user]\AppData\Local\Microsoft\AppCertKit" for the log but the AppcertKit folder dosen't even exist and even if I create a new one is always empty.
If I try to upload the .appxupload file created in "\platforms\windows\AppPackages" I get always two errors about:
Invalid package family name
Invalid package publisher name: CN=Apache Cordova Team (expected
even if I select the remote app in the wizard for the creation of the packages.
I'm using:
Visual Studio 2017 15.2
Cordova (6.3.1 / 6.5 / 7.0.1) I've tried all of them.
Windows 10 Pro
If I try to upload the .appxupload file created in
"\platforms\windows\AppPackages" I get always two errors about:
Invalid package family name Invalid package publisher name: CN=Apache
Cordova Team (expected even if I select the remote app in the wizard
for the creation of the packages.
According to the submission error, the identity info of your package cannot be recognized by Dev Center.
To upload your package, you need to associate your project with the app name you reserved in Dev Center to match the identity info:
For more details, you can refer to Package your Windows version Cordova app.

Illegal characters in path when attempting to deploy an Azure webjob via Visual Studio Online build process

I am trying to setup a CI build process with Azure WebJobs. I have a ASP.NET MVC5 and a WebJob project in the solution and several class library projects. I have a working Visual Studio Online (VSO) build definition already setup to deploy the MVC project. However, when I add the WebJob project to the solution the build process fails with:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (2586, 5) Copying file C:\a\1\a**\*.* to obj\Release\Package\PackageTmp\app_data\jobs\triggered\LoyaltyClub\*.* failed. Illegal characters in path.
Any ideas how I can fix this? Both the MVC and WebJob projects are using version 1.0.7 of the Microsoft.Web.WebJobs.Publish Nuget package.

How to get started with Android Studio C++ development

I heard at Google I/O 15 that Android Studio has now C++ support, the official documentation for the NDK only has instructions for Eclipse.
How does one get started with Android C++ development using Android Studio?
There is detailed instructions on the Android NDK Preview site.
The gist of it
Download Android Studio 1.3+
Install the NDK bundle from Tools > Android > SDK Manager
Import the hello-jn sample using File > Import Sample (Note: This sample is using the new gradle-experimental plugin)
Click Run > Edit Configurations... and andd a new Android Native configuration
(source: android.com)
Run and debug your application as usual
A few things to try from there:
Generate JNI bindings for Native Java function.
Put breakpoint in native code (with the current limitation that breakpoint on init/onCreate get skipped, should be already fixed in Android Studio 1.4 Preview)
Give feedback to the team
Try and contribute to the new sample on GitHub
Explore the new documentation and API reference.

Team Foundation Server Deployment error

I have setup my own Team Foundation Build server and I am using Visual Studio Online to host my project online. I have a django project which I am trying to deploy on windows azure cloud service. The project can be published from my dev machine without any errors however when the build server tries to build it, it gives the following error during uploading the package:
Exception Message: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException)
I checked in .pyproj and found a reference to Microsoft.WindowsAzure.Storage but there the version is 2.1.0.0 and that is the version that is installed on the server as well.
Also there are no errors during the build process but only during the deployment stage. How do I make Msbuild use Storage version 2.1.0.0 instead of 2.0.0.0 . Also, which SDK version contains Storage version 2.0.0.0
I just had this problem. This is the same problem as TFS Build Controller : "Could not load file or assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0".
You'll need to copy Microsoft.WindowsAzure.Storage.dll version 2.0.0.0 to "C:\Program Files\Microsoft Team Foundation Server 12.0\Tools", and then restart the Visual Studio Team Foundation Build Service Host 2013 service.