+ <!-- Explicitly disable "Safe Browsing". -->
+ <meta-data
+ android:name="android.webkit.WebView.EnableSafeBrowsing"
+ android:value="false" />
+
+ <!-- Specify the Application ID used by the ads in the free flavor. -->
+ <meta-data
+ android:name="com.google.android.gms.ads.APPLICATION_ID"
+ android:value="@string/google_app_id" />
+
+ <!-- Don't initialize the ad system in the free flavor until it is explicitly called. -->
+ <meta-data
+ android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
+ android:value="true"/>
+
+ <!-- The file provider is required to encrypt files with OpenKeychain. -->
+ <provider
+ android:name="androidx.core.content.FileProvider"
+ android:authorities="@string/file_provider"
+ android:exported="false"
+ android:grantUriPermissions="true" >
+
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/file_provider_paths" />
+ </provider>
+
+ <!-- The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
+ The theme has to be defined here or an ugly title bar is displayed when the app launches.
+ `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
+ `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
+ `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.