benerogerio commented on issue #1791: URL: https://github.com/apache/cordova-android/issues/1791#issuecomment-2744287301
Yes, this cli makes it much easier to create vue/cordova projects. But since I've been away for a while without releasing new versions, I think I forgot the process a bit, I'm almost sure that using the correct command to build will work. Anyway, here is the config: ```xml <?xml version='1.0' encoding='utf-8'?> <widget id="com.app.name" version="1.1.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>AppName</name> <description></description> <author email="[email protected]" href=""> Author </author> <hook src="../node_modules/vue-cli-plugin-cordova/serve-config-hook.js" type="after_prepare" /> <content src="index.html" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <platform name="android"> <resource-file src="res/android/colors.xml" target="/app/src/main/res/android/colors.xml" /> <icon density="ldpi" foreground="res/android/ldpi.png" density="ldpi" background="res/android/bg-ldpi.png"/> <icon density="mdpi" foreground="res/android/mdpi.png" density="mdpi" background="res/android/bg-mdpi.png"/> <icon density="hdpi" foreground="res/android/hdpi.png" density="hdpi" background="res/android/bg-hdpi.png"/> <icon density="xhdpi" foreground="res/android/xhdpi.png" density="xhdpi" background="res/android/bg-xhdpi.png"/> <icon density="xxhdpi" foreground="res/android/xxhdpi.png" density="xxhdpi" background="res/android/bg-xxhdpi.png"/> <icon density="xxxhdpi" foreground="res/android/xxxhdpi.png" density="xxxhdpi" background="res/android/bg-xxxhdpi.png"/> <config-file parent="/*" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.READ_CALENDAR"/> <uses-permission android:name="android.permission.WRITE_CALENDAR"/> </config-file> <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application/service[@android:name='de.appplant.cordova.plugin.background.ForegroundService']" xmlns:android="http://schemas.android.com/apk/res/android"> <service android:foregroundServiceType="location" /> </edit-config> <preference name="AndroidXEnabled" value="true" /> </platform> <preference name="hostname" value="localhost" /> <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/android/LembreMeSplashscreen.png" /> <preference name="AndroidWindowSplashScreenBackground" value="#AAAAFF" /> <preference name="SplashScreenDelay" value="1500" /> <preference name="ShowTitle" value="true" /> <preference name="LoadingDialog" value="someText" /> <!-- <preference name="android-minSdkVersion" value="16"/> --> <preference name="android-targetSdkVersion" value="34"/> </widget> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
