Capacitor did not create 'resources' folder - ionic-framework

I am currently building an application using Ionic + Angular, with Capacitor for iOS & Android applications.
As mentioned in the doc, I ran the following command to generate android and iOS platforms to the app:
npx cap add android
and
npx cap add ios
I have observed the project structure of Ionic + Capacitor applications in Github and other resources and they all have this structure:
But the app I have has something else instead.
This does not look like a good practice. Moreover, if I wanted some resources like "Splash Screen" in my application, it will require a resources directory. Is there a way to manage this, so I have all iOS & android related files within the resources directory without breaking the existing application?

Every project have two android as well as IOS folders, one in the root directory which contains the platform data and one in the resources directory which contains the resources for the respective platform. The android and ios folders in the resources folder will be auto generated once you run the generate resources command. The folders you moving manually are the platform folders not the resources folders and they should be kept in the root directory of the project.
Follow the steps to generate resources

Related

if I delete IOS folder from flutter project, will it still work on android?

you can see the both folder IOS and Android, and if I delete the folder IOS, will it work only for android?
Don't worry, you can delete the ios directory.
In Flutter, every specific platform has a dedicated directory (ios, android, web, macos, windows, linux). Each directory uses the same code inside lib (Flutter, app-related code). Meaning, if you want to delete a specific platform, just delete its dedicated directory.

Flutter app which uses huawei_push rejected by Google Play Store

I want to use huawei_push kit in my flutter app but Google Play Store rejected my app because of PendingIntent issues (security rules). I want to use the same source code for Google Play Store and Huawei App Gallery. I was thinking of:
building APK based on flavor (huawei push kit dependencies won't be used in built APK),
using different pubspec.yaml files to avoid huawei push kit dependencies in the whole project.
Question:
How can I use huawei_push kit just for Huawei App Gallery still using the same source code for different stores?
Update:
The problem has been reported to R&D Team. And it's expected to be fixed in the next version.
At the same time, we provide a workaround solution. You may refer to this before next version release.(The Flutter plug-in is open source, so you can modify it directly)
Here's how to modify:
1.Open the pubspec.xml file in the root directory and find the plug-in.Like following:
dependencies:
flutter:
sdk: flutter
huawei_location: 5.0.0+301
You need to find the cache directory of the Flutter, for example:
Find the plug-in directory, for example:
If the plug-in points to a directory, for example:
dependencies:
huawei_location:
path: {library path}
directly access the directory.
2.Modify the build.gradle file in the android directory to modify the SDK version on which the file depends.
For example:
implementation 'com.huawei.hms:location:5.1.0.303'
P.S. The PendingIntent issue has been resolved in Push kit 5.3.0.304. So you can directly use this version.
After the modification, run the following command to trigger compilation:
flutter run

Web-specific resources in Flutter

I'm working on a Flutter web app and would like to add some web-specific PWA resources such as icons, manifest file, service worker,...
I've tried to put these files in the /web folder but they're not copied into build/web/ when performing a release build with flutter build web.
What is the right approach to deploy these resources?
This seems to be fixed in the latest versions of Flutter (1.20.0). Previously I had setup a script that did this copy manually, but it's not required anylonger.

ionic v3 directory structure explanation

I am trying to understanding ionic v3 directory structure since I'ved been working a lot on ionic v1.
Here is a project in ionic v3.
I am particularly curious what is .sourcemaps and www
so if I were to do any code modification, which sources should I touch ? previously in v1 I modify the code in www and then do ionic serve it will have all updates. in ionic v3, i think www directory is a build directory.
Please someone explain abit on the new directory structure and give guidance for simple code practice and debugging.
In Ionic v3 you will spend most of the time coding in the src folder. Most of everything you need to touch to create a wonderful app is generated in this folder.
Platforms folder is where you will see all the platform related folders get generated once you prepare your project for android or iOSready.
www folder is were you place your medias your images and logo or any other necessary assets you wanted and use in your app.
For example if you want your app logo specific, you can place that logo inside the www/assets folder.

Add gapps to custom rom?

I am really new to rom development, however i managed to build a custom rom for galaxy nexus. I obviously dont have gapps.
I am wondering how can i incorporate gapps in the build without having to flash a .zip file?
The apps are not open source and they are prebuilt apk.
Find the APK files for the Google apps that you would like to include. Copy each one under the directory /system/app/ and chmod 644 (change permissions to rwrr). Recompile your ROM and flash it as you'd like.
goto https://github.com/opengapps and in opengapps repo follow the instruction.. there will be a common makefile to initiate the build then you have to add its path to your romname_device.mk
You can use micro g project for using google services in custom ROMs. For example in Replicant ROM microg is used. Micro g has multiple tools such as location services , appstore and etc.