curly
Junior Member
Posts: 16
|
Post by curly on Jul 5, 2019 10:02:48 GMT
Supported Android devices 0 devices
Reasons that these devices are unsupported
Doesn't support required feature (9692 devices)
android.hardware.camera2 android.hardware.camera2.autofocus android.hardware.camera2.flash android.hardware.camera2.full
I am using the following configuration:
ruby-2.3.4 rhodes 6.1.16
build.yml ---------- android: minSDK: 8 targetSDK: 28 version: 9 android_title: 0
extensions: [ "openssl.so", "barcode", "securerandom", "net-http", "timeout", "uri" ]
Where does camera2 come from? The barcode extension? How can this be solved?
Any hints greatly appreciated! Thanks a lot in advance!
|
|
curly
Junior Member
Posts: 16
|
Post by curly on Jul 5, 2019 10:15:21 GMT
OK, it's the barcode extension:
grep -r "camera2" . ./gems/rhodes-6.1.16/lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml: <uses-feature android:name="android.hardware.camera2" /> ./gems/rhodes-6.1.16/lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml: <uses-feature android:name="android.hardware.camera2.full" /> ./gems/rhodes-6.1.16/lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml: <uses-feature android:name="android.hardware.camera2.autofocus" /> ./gems/rhodes-6.1.16/lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml: <uses-feature android:name="android.hardware.camera2.flash" /> ./gems/rhodes-6.1.16/lib/commonAPI/barcode/ext/platform/android/src/com/google/zxing/client/android/camera/FlashlightManager.java://import android.hardware.camera2.CameraManager;
I tried using my own AndroidManifest.xml with:
android: manifest_template: "AndroidManifest.xml"
then remove camera2, yet, it keeps showing up.
Is this solved in another rhodes version?
|
|
curly
Junior Member
Posts: 16
|
Post by curly on Jul 5, 2019 15:37:24 GMT
I disabled the following features:
<uses-feature android:name="android.hardware.camera.flash" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-feature android:name="android.hardware.camera2" /> <uses-feature android:name="android.hardware.camera2.full" /> <uses-feature android:name="android.hardware.camera2.autofocus" /> <uses-feature android:name="android.hardware.camera2.flash" />
in lib/commonAPI/barcode/ext/platform/android/AndroidManifest.xml (rhodes-6.1.16)
which solves the problem.
Does this have any drawbacks?
|
|
|
Post by Alex Epifanov on Jul 5, 2019 15:52:47 GMT
|
|
curly
Junior Member
Posts: 16
|
Post by curly on Jul 7, 2019 9:15:59 GMT
Thx a lot!
OK, I see the version tags. I am still a little confused about which version I could use preferably where this fix is already applied. Shouldn't the fix have made it in 6.1.16?
|
|
|
Post by Alex Epifanov on Jul 7, 2019 12:27:13 GMT
This patch was not included to 6.1, frankly I'm not sure why. We will publish 7.1 beta1 tomorrow and will make a release build during a week. I would recommend switching to 7.1 since it will include all necessary changes to publish to Play store: support for arm64, support for new SDK/NDK etc. The subject patch is included also.
|
|
curly
Junior Member
Posts: 16
|
Post by curly on Jul 7, 2019 16:27:05 GMT
Oh nice, looking forward to the release!
Thanks again!
|
|
|
Post by Alex Epifanov on Jul 7, 2019 16:42:23 GMT
|
|