My app detects if a certain app is installed via queryIntentActivities. Since my app targets api level 30 this stopped working because I was missing some manifest declarations.
In this example they define the package name directly. But the apps I want to query for differ for each build variant. So it would be better to use a string resource. However this doesn't seem possible.
Example
<manifest package="com.example.game">
<queries>
<package android:name="com.example.store" />
<package android:name="com.example.services" />
</queries>
...
</manifest>
What I would like
<manifest package="com.example.game">
<queries>
<package android:name="@string/store_app" />
<package android:name="@string/services_app" />
</queries>
...
</manifest>
Some other file
<string name="store_app">com.example.store</string>
<string name="services_app">com.example.services</string>
How to use a string resource