You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/11/12 07:27:41 UTC
[GitHub] [cordova-plugin-camera] sieman opened a new pull request #688: Platform Android support for AndroidX
sieman opened a new pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688
<!--
Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
### Platforms affected
Only Android
### Motivation and Context
This Change is required to support new Version of Andoid. AndroidX put old support libraries into a new namespace.
### Description
It is a renaming of dependencies. Wherever the support library was imported, I replace it with the new namespace.
### Testing
I tested the camera plugin within the app of my employer and it works.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] NiklasMerz commented on a change in pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on a change in pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#discussion_r669644874
##########
File path: plugin.xml
##########
@@ -79,9 +79,10 @@
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
<clobbers target="CameraPopoverHandle" />
</js-module>
-
- <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
- <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
+ <preference name="AndroidXEnabled" value="true" />
Review comment:
As cordova-android 10 now comes with AndroidX by default those aren't really needed I think.
```suggestion
<preference name="AndroidXEnabled" value="true" />
```
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] NiklasMerz commented on a change in pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on a change in pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#discussion_r669644874
##########
File path: plugin.xml
##########
@@ -79,9 +79,10 @@
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
<clobbers target="CameraPopoverHandle" />
</js-module>
-
- <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
- <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
+ <preference name="AndroidXEnabled" value="true" />
Review comment:
As cordova-android 10 now comes with AndroidX by default those aren't really needed I think.
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] jcesarmobile commented on pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#issuecomment-895270923
It was done in https://github.com/apache/cordova-plugin-camera/pull/751, closing
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] noahcooper commented on pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
noahcooper commented on pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#issuecomment-822082433
Any update on when this plugin might move to AndroidX? I'm sure I'm not alone in saying this -- this is now the only remaining plugin my apps use that requires the use of `cordova-plugin-androidx-adapter`.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] timbru31 commented on pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
timbru31 commented on pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#issuecomment-728811473
Thanks Siegmar for your PR. We've already discussed AndroidX a bit and it's a tricky decision. On the one hand, if we go for AndroidX and enforce it, we will probably break a lot of plugins. But on the other hand, there might be some changes by Google that forces us to enable AndroidX nevertheless.
In the meantime you could use the cordova-plugin-androidx-adapter (which you probably already do).
See also https://github.com/apache/cordova-android/issues/841 and the discussion on YT: https://www.youtube.com/watch?v=oarY6ZYj-CU, if interested.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] jcesarmobile closed pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
jcesarmobile closed pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] sieman closed pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
sieman closed pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] NiklasMerz commented on a change in pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on a change in pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#discussion_r669644874
##########
File path: plugin.xml
##########
@@ -79,9 +79,10 @@
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
<clobbers target="CameraPopoverHandle" />
</js-module>
-
- <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
- <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
+ <preference name="AndroidXEnabled" value="true" />
Review comment:
As cordova-android 10 now comes with AndroidX by default those changes aren't really needed I think.
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] NiklasMerz commented on pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#issuecomment-879920178
As cordova-android 10 now works only with AndroidX we should move forward with this.
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-camera] NiklasMerz commented on a change in pull request #688: Platform Android support for AndroidX
Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on a change in pull request #688:
URL: https://github.com/apache/cordova-plugin-camera/pull/688#discussion_r669644874
##########
File path: plugin.xml
##########
@@ -79,9 +79,10 @@
<js-module src="www/CameraPopoverHandle.js" name="CameraPopoverHandle">
<clobbers target="CameraPopoverHandle" />
</js-module>
-
- <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
- <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
+ <preference name="AndroidXEnabled" value="true" />
Review comment:
As cordova-android 10 now comes with AndroidX by default those changes aren't really needed. I even got an error while building with the nightly version of cordova-android.
```
Failed to install 'cordova-plugin-camera': Error: Variable(s) missing: ANDROIDXENABLED
at Object.mergeVariables (/Users/niklasmerz/.nvm/versions/node/v12.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/variable-merge.js:58:15)
at /Users/niklasmerz/.nvm/versions/node/v12.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:302:44
at processTicksAndRejections (internal/process/task_queues.js:94:5)
```
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org