|
1 |
| -<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
2 |
| - package="com.pdftron.pdftronflutterexample"> |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
3 | 2 |
|
4 | 3 | <uses-permission android:name="android.permission.INTERNET" />
|
5 |
| - <!-- Required to read and write documents from device storage --> |
6 |
| - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
7 | 4 | <!-- Required if you want to record audio annotations -->
|
8 | 5 | <uses-permission android:name="android.permission.RECORD_AUDIO" />
|
9 | 6 |
|
10 | 7 | <application
|
11 | 8 | android:label="pdftron_flutter_example"
|
12 | 9 | android:name="${applicationName}"
|
13 |
| - android:icon="@mipmap/ic_launcher" |
14 | 10 | android:largeHeap="true"
|
15 |
| - android:requestLegacyExternalStorage="true" |
16 |
| - android:usesCleartextTraffic="true"> |
| 11 | + android:icon="@mipmap/ic_launcher"> |
17 | 12 |
|
18 |
| - <!-- Add license key in meta-data tag here. This should be inside the application tag. --> |
19 | 13 | <meta-data
|
20 | 14 | android:name="pdftron_license_key"
|
21 |
| - android:value="${pdftronLicenseKey}" /> |
| 15 | + android:value="@string/PDFTRON_LICENSE_KEY" /> |
22 | 16 |
|
23 | 17 | <activity
|
24 | 18 | android:name=".MainActivity"
|
25 | 19 | android:exported="true"
|
26 | 20 | android:launchMode="singleTop"
|
27 |
| - android:theme="@style/PDFTronAppTheme" |
| 21 | + android:taskAffinity="" |
| 22 | + android:theme="@style/LaunchTheme" |
28 | 23 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
29 | 24 | android:hardwareAccelerated="true"
|
30 | 25 | android:windowSoftInputMode="adjustPan">
|
|
33 | 28 | while the Flutter UI initializes. After that, this theme continues
|
34 | 29 | to determine the Window background behind the Flutter UI. -->
|
35 | 30 | <meta-data
|
36 |
| - android:name="io.flutter.embedding.android.NormalTheme" |
37 |
| - android:resource="@style/NormalTheme" |
38 |
| - /> |
| 31 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 32 | + android:resource="@style/NormalTheme" |
| 33 | + /> |
39 | 34 | <intent-filter>
|
40 |
| - <action android:name="android.intent.action.MAIN" /> |
41 |
| - <category android:name="android.intent.category.LAUNCHER" /> |
| 35 | + <action android:name="android.intent.action.MAIN"/> |
| 36 | + <category android:name="android.intent.category.LAUNCHER"/> |
42 | 37 | </intent-filter>
|
43 | 38 | </activity>
|
44 |
| - |
45 | 39 | <!-- Don't delete the meta-data below.
|
46 | 40 | This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
47 | 41 | <meta-data
|
48 | 42 | android:name="flutterEmbedding"
|
49 | 43 | android:value="2" />
|
50 |
| - |
51 | 44 | </application>
|
| 45 | + <!-- Required to query activities that can process text, see: |
| 46 | + https://developer.android.com/training/package-visibility and |
| 47 | + https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. |
| 48 | +
|
| 49 | + In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> |
| 50 | + <queries> |
| 51 | + <intent> |
| 52 | + <action android:name="android.intent.action.PROCESS_TEXT"/> |
| 53 | + <data android:mimeType="text/plain"/> |
| 54 | + </intent> |
| 55 | + </queries> |
52 | 56 | </manifest>
|
0 commit comments