blob: 1d49d15ac47124df4a5707d5f809e523b9cf798a [file] [log] [blame]
<#-- Some common elements used in multiple files -->
<#macro commonActivityBody>
<#-- If isInstantApp is true, we assume we also have values for instantAppActivityHost and instantAppActivityRoute -->
<#if isInstantApp!false>
<intent-filter android:order="${instantAppActivityOrder}">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="${instantAppActivityHost}"
android:${instantAppActivityRouteType}="${instantAppActivityRoute}"
android:scheme="https" />
</intent-filter>
</#if>
<#if isLauncher && (!(isLibraryProject!false) || isInstantApp)>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</#if>
</#macro>