scytheStudio / SCodes

This project is Qt & Qml wrapper for ZXing-C++ Library that is used for decoding 1D and 2D barcodes.
https://scythe-studio.com/
Apache License 2.0
114 stars 38 forks source link

Explicitly set "android:exported" to true as per Android 12 Requirements #34

Closed radkoder closed 11 months ago

radkoder commented 1 year ago

Compiling for android version higher than 12 throws this error:

Error:
    android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

Adding this property to the tag in AndroidManifest.xml seems to fix this issue