Avoid concatenation in AndroidManifest

Trying to use the extension pattern this way gets an error when uploading the APK to Google Play, so just hard code the extension patters. This won’t work for PBS kids version.
This commit is contained in:
Chris Garrity 2020-04-21 09:52:42 -04:00
parent fe2ad22efb
commit ec9387115f

View file

@ -45,11 +45,10 @@
<!-- These additional pathPattern blocks are to allow for paths with
additional periods in them. See:
http://stackoverflow.com/questions/3400072/pathpattern-to-match-file-extension-does-not-work-if-a-period-exists-elsewhere-i/8599921 -->
<data android:pathPattern="@{`.*\\.` + @string/share_extension_filter}"/>
<data android:pathPattern="@{`.*\\..*\\.` + @string/share_extension_filter}"/>
<data android:pathPattern="@{`.*\\..*\\..*\\.` + @string/share_extension_filter}"/>
<data android:pathPattern="@{`.*\\..*\\..*\\..*\\.` + @string/share_extension_filter}"/>
<data android:pathPattern="@{`.*\\..*\\..*\\..*\\..*\\.` + @string/share_extension_filter}"/>
<data android:pathPattern=".*\\..*\\.sjr"/>
<data android:pathPattern=".*\\..*\\..*\\.sjr"/>
<data android:pathPattern=".*\\..*\\..*\\..*\\.sjr"/>
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.sjr"/>
<data android:host="*" />
</intent-filter>
<intent-filter>