Back to Cordova

2022 10 21

slack-digest/2022-10-21.md

latest12.4 KB
Original Source

Cordova Slack Digest

Fri, 21 Oct 2022 08:22:59 GMT

User count: 4708

Join the conversation at slack.cordova.io

Channel #general (19 messages)


Thu, 20 Oct 2022 11:45:37 GMT

@ulimetic says

What's the point hiring people and have them develop if the PR are stuck for 3 years. Here's the real problem! Maybe there shouldn't be a jump from cordova-ios from 6.2.0 to 7 and wait 3 years. Smaller releases, more often, less PRs at a time. The issue with this project is 100% management. Lots of people spend hours but the bottleneck happens at merging stuff, so it means that the "maintainers" are holding this project back

Thu, 20 Oct 2022 11:46:00 GMT

@ulimetic says

If you can't dedicate hours to be a maintainer, don't be one and let people who have time be maintainers

Thu, 20 Oct 2022 11:46:09 GMT

@ulimetic says

this whole thing is stuck in a power trip

Thu, 20 Oct 2022 12:19:32 GMT

@xavier.serra says

Maybe with hiring some people or sponsoring developers PR's were not stuck for 3 years as you would have more people working on it.

Thu, 20 Oct 2022 12:22:26 GMT

@xavier.serra says

What I am trying to say is that being Apache Cordova such a widely used technology there should be more economic collaboration from companies that use it. Volunteering is great but people have other obligations in life.

Thu, 20 Oct 2022 12:22:30 GMT

@timbru says

You could also contribute rather than rant about the ways things are or allocate developers of your company to support us.

Thu, 20 Oct 2022 12:24:12 GMT

@xavier.serra says

Yes, of course. This is only my opinion.

Thu, 20 Oct 2022 16:45:03 GMT

@patrick662 says

I noticed the https://cordova.apache.org/plugins/ page seems to be broken. Not sure where to report this so I thought i would do it here. 🙂

Thu, 20 Oct 2022 18:30:14 GMT

@arosen says

Good morning Cordova

Thu, 20 Oct 2022 18:30:47 GMT

@arosen says

We are looking to expand the base more

Thu, 20 Oct 2022 18:32:01 GMT

@arosen says

The is a codebase we are working from which integrates with python-base

Thu, 20 Oct 2022 18:32:38 GMT

@arosen says

There is a codebase called react-native-conference-base which is integrating with python-base as well.

Thu, 20 Oct 2022 18:33:44 GMT

@arosen says

The project we are looking to ork on is cordova-conference-base which integrates with python-base

Thu, 20 Oct 2022 18:34:21 GMT

@arosen says

this will allow us a way to create a powerful app can continue to edit on and build a solution.

Thu, 20 Oct 2022 18:35:19 GMT

@arosen says

python-base has a websock interface and chat api which implements simple interface like we are using here though is possible to serve on your own system @channel

Thu, 20 Oct 2022 18:35:21 GMT

@slackbot says

'[at]channel' broadcaster detected. Hey, do you know how many people you potentially just notified? Please be patient and look around before shouting.

Thu, 20 Oct 2022 18:35:31 GMT

@arosen says

yes

Thu, 20 Oct 2022 18:36:46 GMT

@arosen says

ping me if like to merge some effort in this direction.

Thu, 20 Oct 2022 20:33:04 GMT

@arosen says

thanks

Channel #cordova-android (44 messages)


Thu, 20 Oct 2022 09:05:35 GMT

@info460 says

Hi everybody, I am now trying to upgrade Cordova stack to the latest versions (in VM) But I have some trouble with Gradle. I was trying with 7.5.1 now with 7.1.1 and still getting an error when building Hello Cordova default app.

Thu, 20 Oct 2022 09:07:36 GMT

@info460 says

Thu, 20 Oct 2022 09:10:15 GMT

@info460 says

Using Java JDK 17

Thu, 20 Oct 2022 09:15:37 GMT

@erisu says

JDK 17 wont work.

Thu, 20 Oct 2022 09:18:24 GMT

@erisu says

Should be using JDK 11, which Android documents support for and that we tested against.. It might work up to JDK 15 or 16., But I think it is not guaranteed. I think there was some major change past 15 or 16 that thing stopped working.

Thu, 20 Oct 2022 09:20:44 GMT

@info460 says

Just reading that in your GitHub issues, thanks

Thu, 20 Oct 2022 09:51:51 GMT

@info460 says

I got another error now Installed Gradle 7.4.2 Java JDK 11.0.16 Have this error

Thu, 20 Oct 2022 09:52:31 GMT

@info460 says

Thu, 20 Oct 2022 09:54:27 GMT

@info460 says

But I have Android build tools 33.0 installed and in Path, don't know if I need downgrade or another solution

Thu, 20 Oct 2022 09:56:07 GMT

@erisu says

33 is a major version we also do not support by default. I dont remember, but I think if you change the targetSDK to 33 it might check for 33 then..

Thu, 20 Oct 2022 09:56:16 GMT

@erisu says

You might have to test this one to confirm..

Thu, 20 Oct 2022 09:56:34 GMT

@erisu says

but usually I have many SDKs installed at once

Thu, 20 Oct 2022 09:58:09 GMT

@info460 says

Looking in Android Studio(last version) and don't see version 32 available to install. Maybe I need to downgrade also Android Studio?

Thu, 20 Oct 2022 09:59:13 GMT

@info460 says

Ah sorry I just found option to install version 32 there, I will try it now

Thu, 20 Oct 2022 10:03:42 GMT

@info460 says

Working now ... what a magic , thank you for help P.S. what is recommended gradle version? I can see that in modules it's downloading another version 7.2.1

Thu, 20 Oct 2022 10:04:58 GMT

@erisu says

If you are talking about system Gradle version, the latest version is sufficient. Cordova will checkout the version it needs unless your changing the default.

Thu, 20 Oct 2022 10:05:46 GMT

@erisu says

If you were to say change the targetSDK for the project to 33, then there is a chance you need a newer version of Gradle defined in the project config.xml

Thu, 20 Oct 2022 10:05:48 GMT

@info460 says

So should I use Gradle 7.5.1 as system version?

Thu, 20 Oct 2022 10:05:56 GMT

@erisu says

that will work

Thu, 20 Oct 2022 10:06:14 GMT

@erisu says

I currently have that as well

$

------------------------------------------------------------
Gradle 7.5.1```

Thu, 20 Oct 2022 10:06:28 GMT

@info460 says

Ok, have a good day

Thu, 20 Oct 2022 14:45:46 GMT

@jcesarmobile says

You need any gradle version installed globally, for cordova being able to download the configured version

Thu, 20 Oct 2022 16:13:22 GMT

@info460 says

Please anyone have a link where is simply explained the new splash screen system? I can't make it working from Google dev page and Cordova Apache page is describing for version11 still old <splash system

Thu, 20 Oct 2022 16:36:40 GMT

@norman137 says

https://cordova.apache.org/docs/en/11.x/core/features/splashscreen/index.html#android-specific-information is probably the place to start.

I'll note that the docs uses xml indicating vectors but they appear to be only supported in API 25 if I recall correectly. You can pass in rastered image format, like png instead.

Thu, 20 Oct 2022 16:37:59 GMT

@norman137 says

The simpliest configuration will likely involve AndroidWindowSplashScreenAnimatedIcon preference (which doesn't necessary have to be an animated icon) and AndroidWindowSplashScreenBackground to control the background color of the splashscreen.

Thu, 20 Oct 2022 16:40:28 GMT

@erisu says

> Android 5.0 (API level 21) was the first version to officially support vector drawables with VectorDrawable It is the Animated Vector Drawables (AVD) that was introduced in API 25.

Thu, 20 Oct 2022 16:41:02 GMT

@erisu says

I believe XML vector drawables can still be used and support down to the minimum SDK version that Cordova-Android 11 targets by default.

Thu, 20 Oct 2022 16:46:45 GMT

@erisu says

Also, I think in Google docs, might have said something like following the Adaptive Icon’s requirements, but I believe it is referencing in terms of image sizing.

You might be able to provide an XML with adaptive-icon tags, but Adaptive Icons was introduced in API level 26. So if you need to support further back that is out of the question.

Thu, 20 Oct 2022 16:47:41 GMT

@erisu says

But as Norman pointed out, you can still provide PNGs, but still needs to follow the image size requirements that Google documented.

Thu, 20 Oct 2022 19:00:10 GMT

@info460 says

What a mess. ( I mean whole story about new icons and splash). They just produced a need for a brand new industry of icons just because some effects....

Thu, 20 Oct 2022 19:02:04 GMT

@norman137 says

Yah, I, (well mostly someone else) had to craft new images for our apps for the splashscreen.

Thu, 20 Oct 2022 19:03:18 GMT

@info460 says

I mean I am reading about that for 2 hours already and still no idea where to even start (sorry for rant just frustrated...)

Thu, 20 Oct 2022 19:07:27 GMT

@info460 says

Probably I will remove splash screen completely and use logo (if I need )as part of the app itself

Thank you all

Thu, 20 Oct 2022 19:08:22 GMT

@norman137 says

This has been minimally tested (I'm still working on a cordova-android@11 update in my apps) but this is the splashscreen icon image we are currently using. It's at a high dpi for for larger devices, but appears to scale down properly on lower dpi devices. You could use it as a reference in how to construct your image.

E.g. use the same canvas size, but don't use space out of the bounds of the icon, because google masks the image and takes a circle out of the image, so parts of it will be clipped. The icon is about the largest size it can be without it being clipped.

Thu, 20 Oct 2022 19:08:47 GMT

@norman137 says

You can probably use more space on the Y axis

Thu, 20 Oct 2022 19:08:59 GMT

@norman137 says

since my icon is more width dominant.

Thu, 20 Oct 2022 19:09:58 GMT

@norman137 says

it also has a tranparent background but slack doesn't seem to make that distinction and uses a dark gray background (at least in dark theme)

Thu, 20 Oct 2022 19:15:36 GMT

@info460 says

Can you please send me also your splashcreen.xml as I think this is the most complicated part for me

Thu, 20 Oct 2022 19:15:50 GMT

@norman137 says

i dont use a splashscreen.xml

Thu, 20 Oct 2022 19:18:55 GMT

@norman137 says

<preference
        &lt;preference name="AndroidWindowSplashScreenBackground" value="#6dADDF" /&gt;```
This is what I use instead, where `res/android/splash/xxxhdpi.png` is the path to my png file

Thu, 20 Oct 2022 19:22:45 GMT

@info460 says

Thank you, I think this clears the splash screen quite a lot for me. ( I was in impression that I have to use splash screen XML file for some reason).

Thu, 20 Oct 2022 20:36:47 GMT

@info460 says

Just comments about the splash screen on my Android 8.1 device

  1. If I remove the SS plugin and all references of it from config.xml it still show default Cordova splash
  2. By adding SplashScreenDelay with value 0 still show default Cordova SS
  3. Adding ShowSplashScreen with value false will still show the SS
  4. SplashShowOnlyFirstTime true also no effect

Thu, 20 Oct 2022 20:51:45 GMT

@jcesarmobile says

Splash screen is now part of cordova-android, you have to uninstall the plugin. And it always shows now even if you set the time to 0 because that’s the behavior google implemented for android 12 and for older versions cordova used the support library they provided

Thu, 20 Oct 2022 20:57:49 GMT

@info460 says

Ok clear, thank you

Channel #plugins (3 messages)


Thu, 20 Oct 2022 18:39:06 GMT

@patrick662 says

I'm going to finally punt the file-transfer plugin and redo all my code to XMLHttpRequest. I'm not the greatest developer in the world and I thought I would seek the best examples for Cordova from you all. Can you send me your favorite links? I've googled, found a lot, but you all are the experts. 🙂

Thu, 20 Oct 2022 18:39:31 GMT

@patrick662 says

I'm uploading pictures and files like pdfs, docs, etc.

Thu, 20 Oct 2022 18:40:03 GMT

@dpogue says

https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html has some examples