Static android shortcuts for multiple flavors? : <p>Is it possible to define static shortcuts for multiple flavors without duplicating the shortcuts.xml ? I have two flavors:</p>

<ul>
<li>main (package: com.test)</li>
<li>free (package: com.test.free)</li>
</ul>

<p>The <em>shortcuts.xml</em> looks like this:</p>

<pre><code>&lt;shortcuts xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;shortcut
    android:enabled="true"
    android:icon="@drawable/ic_shortcut_add_photo"
    android:shortcutId="new_photo"
    android:shortcutLongLabel="@string/new_photo"
    android:shortcutShortLabel="@string/new_photo"&gt;

    &lt;intent
        android:action="android.intent.action.VIEW"
        android:targetClass="com.test.MainActivity"
        android:targetPackage="com.test"/&gt;
&lt;/shortcut&gt;
</code></pre>

<p></p>

<p>The problem is that the package name in the intent can not refer to a string resource and must be <strong>hardcoded</strong> in the xml. </p>

<p>To also provide the shortcuts for the free flavor i have to <strong>copy</strong> the <em>shortcuts.xml</em> and change the <em>targetPackage</em> to com.test.free which is a bad solution.  </p>
