zxing-android-embedded
zxing-android-embedded copied to clipboard
Targeting sdk version 31 require <activity> declare android:exported
Description of the problem:
I've found in merged AndroidManifest.xml there is a activity which we can't add android:exported=false to it. This will cause app can't be installed. Is there anyway we can modify this?
<activity
android:name="com.journeyapps.barcodescanner.CaptureActivity"
android:clearTaskOnLaunch="true"
android:screenOrientation="sensorLandscape"
android:stateNotNeeded="true"
android:theme="@style/zxing_CaptureTheme"
android:windowSoftInputMode="stateAlwaysHidden" />
Which library version are you using? E.g. 3.2.0.
4.3.0
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0)
Pixel 4a
Does the same happen on other devices or an emulator?
Yes
Same problem here! https://github.com/journeyapps/zxing-android-embedded/pull/680