Comments (3)
In Capacitor projects you are supposed to commit the android folder, not recreate it every time.
You can use trapeze to edit the gradle file
https://trapeze.dev/docs/Operations/android#gradle
Or use a capacitor hook to edit the /android/variables.gradle
file.
from capacitor.
@jcesarmobile it would be great if you provide more info on that. What are the hooks and how to use em? Does it solve my problem of editing sdkVersion without android folder? I don't even have the folder inside my git repo.
Why do ionic generate the android folder if we have to edit it?
If something is generated, there should be methods to adjust it
from capacitor.
It's not "generated", it's added to your project when you run npx cap add
, which you should run only once and you should commit the source code, and make any manual changes you want, capacitor will not make any changes into your project once you have added the platform to it.
hooks are just a way of executing code on certain capacitor commands https://capacitorjs.com/docs/cli/hooks
but they don't do anything by themselves, you have to create your scripts (node.js or bash or whatever) to be executed when the hook fires.
If you have questions you can ask on the discussions section
https://github.com/ionic-team/capacitor/discussions
Or on ionic forum
https://forum.ionicframework.com/c/capacitor/26
from capacitor.
Related Issues (20)
- [Bug]: Update CapacitorHttp "Large File Support" doc, fix Filesystem.downloadFile() doc HOT 3
- [Feature]: Update CapacitorHttp "Large File Support" doc
- [Feature]: material you themeing HOT 2
- [Bug]: Migration to version 6 fails to update gradle wrapper files HOT 2
- [Bug]: Scroll position not restored when navigating back HOT 2
- [Feature]: Provide an iOS privacy manifest compliant version of the device plugin HOT 1
- CapacitorHttp plugin is not accepting Formdata for image upload[Bug]: HOT 8
- [Bug]: Focus is reset to the first focus element when put the focus by physical keyboard and rotate the screen HOT 1
- [Bug]: Focus is reset to the first focus element when put the focus by physical keyboard and rotate the screen HOT 1
- [Bug]: @capacitor/google-maps "Error calling method create on plugin CapacitorGoogleMaps: No method found." on iOS HOT 10
- Creating a Cross-Platform Library with Capacitor for Android and iOS Integration HOT 1
- [Feature]: how to do ssl pinning? HOT 3
- [Feature]: How to output logs HOT 1
- [Bug]: Capacitor 6 get image from gallery pop-up does not work anymore HOT 4
- [Bug]: was capacitor team has decrease develops or got a layoff in past,seems alot of bugs not have a good resolve,just close it via bot HOT 6
- WSL - ERR_EMULATOR_HOME_NOT_FOUND: No valid Android Emulator home found HOT 2
- [Bug]: Error Registering Plugins HOT 2
- [Bug]: QR code parse error, error = R: No MultiFormat Readers were able to detect the code. HOT 1
- [Feature]: Error Handling with nonexistent files and @capacitor/filesystem HOT 1
- [Feature]: Change JSObject from "is" to "has" to allow type security for those who want it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor.