mwaylabs/titanium-barcode

Module Compatibility for more Android devices

Opened this issue · 0 comments

The timodule.xml was requiring AUTOFOCUS and FLASHLIGHT features that means some devices will be incompatible with this module, to solve this make autofocus and optional please.

Something like that:

<?xml version="1.0" encoding="UTF-8"?>
<ti:module xmlns:ti="http://ti.appcelerator.org"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <uses-permission android:name="android.permission.CAMERA" />
            <uses-feature android:name="android.hardware.camera" />
            <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
            <uses-permission android:name="android.permission.FLASHLIGHT" />
            <uses-feature android:name="android.hardware.camera.flash" android:required="false" />

            <application>
                <activity android:name="com.mwaysolutions.barcode.TitaniumBarcodeActivity"
                    android:configChanges="keyboardHidden"
                    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
            </application>
        </manifest>
    </android>

</ti:module>