are we supposed to commit the android and ios folders after doing expo prepublish? - expo

I just ran expo prepublish and it generated a .gitignore and ios/ and android/ folders. Am I supposed to commit the ios/ and android/ folders because it wasn't explicitly excluded by the .gitignore

You can delete the ios/android folder unless you've made some changes in it.

Related

Necessary files in Next.js build

I wrote a Next.js app and I'm close to deploying. I would like to know what are the strictly necessary files to copy on the server to deploy while keeping it SSR (not statically generated with next export):
just the .next/ folder?
node modules as well?
any source code?
Copy .next folder with package.json && npm install --production should install only the dependencies of your app.
Keep the folder structure.
Side note, it is bad practice to copy node_modules between environments cause there are some packages that are os specific.

ExpoKit V32 missing assets

My expoKit project is missing all assets (fonts and images).
When I run the app on my machine whether on Android or iOS and expo is in dev I get all the assets, if i switch expo to prod then the assets dissapear.
I did expo publish, then build an APK, the APK has all its assets (and is in the store).
I build an iOS app and put it on testflight it has no assets (Disaster!).
I am using expo + expokit v32, I know v33 is out but I'm struggling to update it.
I showed the same problem as you.
All my assets were stored locally, not from uri, but not from APK.
But I solved the problem. My solution went back to the moment when there was no problem, and started all over again. And when I created APK again, I successfully brought in assets.

Visual Studio 2017 and Git Clone

This is driving me crazy. We are using a local installation of gitlab and I'm trying to create a new remote repository from Visual Studio, for a new solution.
If I try creating the solution first, then Git clone, it complains the folder is not empty.
If I empty the folder and clone the repository, works, but then I cannot create the solution because it complains the folder is not empty.
So how the heck I am supposed to create a new clone for a new solution?! The remote repository has only readme.md file in it.
I had the same issue, and I found the same workaround (git clone empty repository, copy .git folder to my app folder, then sync).
Lately, I found that it's much simpler:
open your solution in VS
select "add to source control" (bottom right corner), then select "git"
a local .git folder is created, VS also populates .gitignore and .gitattributes, and commits.
now, you can notice that Team Explorer page shows a "Publish Git Repo" button, press it
enter an URL pointing to a non-existent git repo, e.g. "https://gitlab.com/full/path/to/myproject.git"
press "Publish" button
that's all.
Obviously, you must have installed GitLab extension for visual studio, before.
HTH.

Best way to (git) clone app into Django project directory

I want to clone (via GIT) an external app into my project directory. Unfortunately there is one folder on top of the project that makes Django not see the cloned folder as an app.
For example see allauth. After cloning the app itself is in allauth/allauth resp. from the project view my_project/allauth/allauth. If just adding allauth to INSTALLED_APPS, the app is not found by the server. I also tried adding allauth.allauth, which also doesn't work.
What is the recommended way to clone an external app into a Django project folder (and manage it as submodule for example)?
you can clone it into a vendor/ directory and then symlink it's app folder into your project, but I'd recommend against that.
A better way would be to use a virtual environment, and install the application as an editable package.
$ pip install -e git+https://github.com.au/person/project#v0.1.1#egg=project
This will clone the repo into the src/ folder in your virualenv and set up the paths correctly such that it can be loaded normally with django.

What is the .idea folder?

When I create a project in JetBrains WebStorm, a folder called .idea gets created. Is it okay if I delete it? Will it affect my project?
When you use the IntelliJ IDE, all the project-specific settings for the project are stored under the .idea folder.
Project settings are stored with each specific project as a set of xml
files under the .idea folder. If you specify the default project
settings, these settings will be automatically used for each newly
created project.
Check this documentation for the IDE settings and here is their recommendation on Source Control and an example .gitignore file.
Note: If you are using git or some version control system, you might want to set this folder "ignore".
Example - for git, add this directory to .gitignore. This way, the application is not IDE-specific.
There is no problem in deleting this. It's not only the WebStorm IDE creating this file, but also PhpStorm and all other of JetBrains' IDEs.
It is safe to delete it but if your project is from GitLab or GitHub then you will see a warning.
As of year 2020, JetBrains suggests to commit the .idea folder.
The JetBrains IDEs (webstorm, intellij, android studio, pycharm, clion, etc.) automatically add that folder to your git repository (if there's one).
Inside the folder .idea, has been already created a .gitignore, updated by the IDE itself to avoid to commit user related settings that may contains privacy/password data.
It is safe (and usually useful) to commit the .idea folder.
It contains your local IntelliJ IDE configs. I recommend adding this folder to your .gitignore file:
# intellij configs
.idea/
The reason my device was not being recognized was because my emulator was frozen.
What helped me was to wipe my emulator's data.
Android Emulator freezes
Checkout #gimme-the-411 's comment on this thread.