Skip to content

Commit 69ccd74

Browse files
touilleManncalexan
authored andcommitted
Fix missing android:exported attributes in AndroidManifest.xml (mandatory in Android >= 12).
1 parent 5bfc241 commit 69ccd74

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

plugin/src/test/groovy/com/nishtahir/SimpleAndroidApp.groovy

+4-2
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ class SimpleAndroidApp {
7373
<application android:label="@string/app_name" >
7474
<activity
7575
android:name=".${appActivity}"
76-
android:label="@string/app_name" >
76+
android:label="@string/app_name"
77+
android:exported="true" >
7778
<intent-filter>
7879
<action android:name="android.intent.action.MAIN" />
7980
<category android:name="android.intent.category.LAUNCHER" />
8081
</intent-filter>
8182
</activity>
8283
<activity
83-
android:name="${libPackage}.${libraryActivity}">
84+
android:name="${libPackage}.${libraryActivity}"
85+
android:exported="false" >
8486
</activity>
8587
</application>
8688

samples/app/src/main/AndroidManifest.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme">
14-
<activity android:name=".MainActivity">
14+
<activity android:name=".MainActivity"
15+
android:exported="true">
1516
<intent-filter>
1617
<action android:name="android.intent.action.MAIN" />
1718

samples/unittest/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme">
14-
<activity android:name=".MainActivity">
14+
<activity android:name=".MainActivity" android:exported="true">
1515
<intent-filter>
1616
<action android:name="android.intent.action.MAIN" />
1717

@@ -20,4 +20,4 @@
2020
</activity>
2121
</application>
2222

23-
</manifest>
23+
</manifest>

0 commit comments

Comments
 (0)