How to split AndroidManifest Android
<p>I need to split my manifest for tablet and phone.</p>

<pre><code> productFlavors {
        phone {
            applicationId "packageName.app.phone"
            buildConfigField 'boolean', 'IsPhone', 'true'
            versionName "1.0-phone"
        }
        tablet {
            applicationId "packageName.app.tablet"
            buildConfigField 'boolean', 'IsPhone', 'false'
            versionName "1.0-tablet"
        }
    }
</code></pre>

<p>With gradle I split layout and src folders but I need to split AndroidManifest xml file too.Can anyone give some idea How can I do that.Thanks</p>

<p><strong>EDIT:</strong> </p>

<pre><code>android {
    compileSdkVersion 23
    buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "packagename"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
productFlavors {
    phone {
        applicationId "packagename.app.phone"
        buildConfigField 'boolean', 'IsPhone', 'true'
        versionName "1.0-phone"
    }
    tablet {
        applicationId "packagename.app.tablet"
        buildConfigField 'boolean', 'IsPhone', 'false'
        versionName "1.0-tablet"
    }
}
}
</code></pre>

<p>Here is my full gradle.</p>

<p><strong>EDIT 2</strong> 
So with many researching :) I found my answer.I wrote to  package name like ${applicationId}.It work well. But I really interest How to split manifest file.Can anyone share a link or something about this subject.Thanks.</p>

<pre><code>&lt;receiver
            android:name="com.parse.GcmBroadcastReceiver"
            android:permission="com.google.android.c2dm.permission.SEND"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;

                &lt;category android:name="${applicationId}" /&gt;
            &lt;/intent-filter&gt;
&lt;/receiver&gt;
</code></pre>