Obfuscate Resources files in Android App Bundle? - obfuscation

How can I obfuscate the resources files (drawables, layout, etc.) in AAB format?
the resources files are only obfuscated for me when generating an APK File using minifyEnabled = true in build.gradle file, but not when generating an App Bundle.

Related

Font files are not bundled for my production use

I am using font-awesome with my ReactJS application. Everything is fine but when I try to build my application for production use, the fonts are not bundled (all css and js files are bundled)
I use npm run build and I don't use webpack.
My question is: should I have something like a 'loader' in my package.json file to bundle the font files?
I get 404 not found in the production when it comes to font files such as .ttf and woff

Disabling compression for third-party JS libraries

I am using Sencha Cmd v7.3.0.19 and Ext JS 7.2. I have some third party libraries which I do not include in the bundle. So they are only copied during the build. But when they are copied, they are also compressed, which is what I don't want. I want them to be copied as they are.
How can I disable compression for third-party JS libraries?
Thanks,
Ipek
With the help of #ArthurRubens, I realized that I had to put my JS assets, the ones that I do not want to be bundled or compressed, into the resources folder. By doing that, they are copied as they are to the build output folder.
After that, I have also added the JS resources to the "list of JavaScript assets" section in the app.json file, but this time with remote: true, so that they are just referenced, not being copied.

How to host Svelte project to file manager

can someone please help me to explain how to host a Svelte project to file manager.
All I can see is a bunch of bundle files in my Build folder, but I dont understand what to upload to file manager so that I can host the site?
For a simple svelte web app, you only need to deploy
the index.html
the bundle.js
the bundle.css
the global.css and
all static assets like images and fonts (if needed)
no additional libs or config files are required.

Using CDN to serve node_modules for S3 static websites

I have prototyped a ReactJS static app (no backend) on my local computer by following some tutorial. I have used create-react-app to generate my project. The next step (which is not part of the tutorial) is to upload that to S3 as a static website. I noticed that the node_modules folder is quite large (around 500 MB).
In my reading of other tutorials about static websites in AWS, some JavaScript libraries (jquery) are actually served using CDN, instead of being bundled with the app folder that is be uploaded to S3. Can that be done with node_modules as well so I can avoid uploading that?
Create react app comes with the tools necessary to develop and build your application.
develop
When you develop, you can run npm run start, it will run the project as a website and open it on the default browser.
build
When you are ready to deploy, use 'npm run build', it will produce a build directory with optimised code ready for deployment. You can copy the contents of the build directory into your S3 bucket.
https://create-react-app.dev/docs/production-build
You can also check the available commands in the scripts section of your package.json.
Then what happened to the node_modules directory
The build process is using webpack to build the project. it will only include the bare minimum files required to run your application. It will not include the entire node_modules directory.
You don't need to (and you shouldn't) upload node_modules. Your dependencies are compiled and the output file should be in your /build directory after you build your application. You just need to upload that directory to S3.

Eclipse does not recognize static web content under src/main/resources/static

I am working on a Spring boot web project. I have an index.html file under src/main/webapp, and a .js file under src/main/resources/static/js.
Eclipse is complaining on the <script></script> inclusion inside the index.html file: Undefined Javascript file.
The above is also the case for css files under src/main/resources/static/css.
In addition, I'm using wro to generate unified angularjs-bootstrap js and css files, which are generated under target\generated-resources\static and Eclipse cannot find them either.
Is there any way to configure Eclipse to include the above directories?
The javascript and css files must be placed under src/main/webapp so that they go in the correct location when the final WAR is built. Files placed under src/main/resources will be placed in the java class path of the WAR when it is deployed (i.e., under the classes directory of the WAR). You should update your project by placing css/javascript files under src/main/webapp. wro can also be configured to work properly with eclipse see: CSS and JS minification using Eclipse, Maven and WRO4J

Resources