<#assign theme=getApplicationTheme()!{ "name": "AppTheme", "isAppCompat": true }>
<#assign themeName=theme.name!'AppTheme'>
<#assign themeNameNoActionBar=theme.nameNoActionBar!'AppTheme.NoActionBar'>
<#assign appCompat=backwardsCompatibility!(theme.isAppCompat)!false>
<#assign appCompatActivity=appCompat && (buildApi gte 22)>
<#assign espresso=hasDependency('com.android.support.test.espresso:espresso-core', 'androidTestCompile')>
<#assign supportRunner=hasDependency('com.android.support.test:runner', 'androidTestCompile')>
<#assign testSupportLib=espresso && supportRunner>
<#if !appCompat>
<#elseif appCompatActivity>
<#else>
#if>