Skip to content

Instantly share code, notes, and snippets.

@vusimoy0
Last active April 6, 2020 10:41
Show Gist options
  • Save vusimoy0/90c3d5f61f8383abebb5647d848181a4 to your computer and use it in GitHub Desktop.
Save vusimoy0/90c3d5f61f8383abebb5647d848181a4 to your computer and use it in GitHub Desktop.
build.gradle template
<#import "./shared_macros.ftl" as shared>
<#import "root://activities/common/kotlin_macros.ftl" as kt>
<#if isLibraryProject>
apply plugin: 'com.android.library'
<#elseif isDynamicFeature>
apply plugin: 'com.android.dynamic-feature'
<#else>
apply plugin: 'com.android.application'
</#if>
<@kt.addKotlinPlugins />
<!-- omitted some lines for beverity -->
dependencies {
${getConfigurationName("compile")} fileTree(dir: 'libs', include: ['*.jar'])
<!-- omitted some lines for beverity -->
<#if isDynamicFeature>
implementation project(':${baseFeatureName}')
<#elseif (WearprojectName?has_content) && (Mobileincluded!false) && (Wearincluded!false)>
wearApp project(':${WearprojectName}')
</#if>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment