Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(android): add "android:exported" to activities for Android 12 #284

Merged
merged 2 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 5.0.2
version: 6.0.1
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86 x86_64
description: Lets you process 1D/2D barcodes.
Expand Down
8 changes: 8 additions & 0 deletions android/timodule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<manifest>
<application>
<activity android:name="com.google.zxing.client.android.CaptureActivity"
android:exported="false"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:screenOrientation="fullSensor"
Expand Down Expand Up @@ -49,6 +50,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.encode.EncodeActivity"
android:label="@string/share_name"
android:exported="false"
android:stateNotNeeded="true">
<intent-filter>
<action android:name="com.google.zxing.client.android.ENCODE"/>
Expand All @@ -69,6 +71,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.book.SearchBookContentsActivity"
android:label="@string/sbc_name"
android:exported="false"
android:stateNotNeeded="true"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden">
Expand All @@ -79,6 +82,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.share.ShareActivity"
android:label="@string/share_name"
android:exported="false"
android:stateNotNeeded="true"
android:screenOrientation="user"
android:theme="@android:style/Theme.Light">
Expand All @@ -89,6 +93,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.history.HistoryActivity"
android:label="@string/history_title"
android:exported="false"
android:stateNotNeeded="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
Expand All @@ -97,6 +102,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.share.BookmarkPickerActivity"
android:label="@string/bookmark_picker_name"
android:exported="false"
android:stateNotNeeded="true">
<intent-filter>
<action android:name="android.intent.action.PICK"/>
Expand All @@ -105,6 +111,7 @@
</activity>
<activity android:name="com.google.zxing.client.android.share.AppPickerActivity"
android:label="@string/app_picker_name"
android:exported="false"
android:stateNotNeeded="true"
android:configChanges="orientation">
<intent-filter>
Expand All @@ -113,6 +120,7 @@
</intent-filter>
</activity>
<activity android:name="com.google.zxing.client.android.HelpActivity"
android:exported="false"
android:screenOrientation="user">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
Expand Down