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]: UnknownError: Connection to Indexed Database server lost. Refresh the page to try again HOT 4
- [Bug]: All plugins are "not implemented on android" after upgrading to Capacitor 6 HOT 2
- [Bug]: Local plugins within the native iOS project are showing as "not implemented." after upgrading to Capacitor 6 HOT 2
- [Bug]: NativeBridge doesn't pass responseType to native HTTP HOT 2
- [Feature]: Add progress event emission on native side HOT 2
- [Feature]: Allow building unsigned ipa HOT 1
- [Bug]: backdrop filter css will crash ios app HOT 3
- [Feature]: Put app logic into an external package HOT 1
- [Bug]: Build failed because Capacitor.swiftmodule is missing a required architecture. Would you like to build for rosetta instead? HOT 7
- [Bug]: Capacitor on Android detected as web platform after redirecting with `allowNavigation` HOT 2
- [Bug]: With CapacitorJS Storage does not work with IOS Version "@capacitor/ios": "^6.0.0" HOT 2
- [Bug]: XMLHttpRequest onreadystatechange not working for requests HOT 1
- TypeError: window.Capacitor.triggerEvent is not a function. (In 'window.Capacitor.triggerEvent('pause', 'document')', 'window.Capacitor.triggerEvent' is undefined) HOT 2
- [Bug]: v6 ios biuld errors HOT 2
- [Feature]: Support Native Angular Localization HOT 2
- [Bug]: CompileSwift normal arm64 (in target 'App' from project 'App') xcodebuild -exportArchive HOT 2
- [Bug]: Capacitor is not injected on loaded URLs specified in allowNavigation on android when webview supports the document start script feature HOT 1
- [Bug]: new android plugin fails when 3rd party library used HOT 1
- [Bug]: android permissions confusing HOT 1
- [Feature]: Http plugin: Support ArrayBuffer as request body and response HOT 3
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.