Getting Started
This readme is purly for using the basic config and how you should setup the plugin. Check the Wiki for a specific configuration
Setup
Import in root gradle
buildscript {
repositories {
...
maven { url "https://dl.bintray.com/icapps/maven" }
maven { url "https://dl.bintray.com/nicolaverbeeck/maven" }
...
}
dependencies {
...
classpath "com.icapps.build.gradle:plugin:$icapps_build_gradle_plugin"
...
}
}
Apply the plugin by adding next command at the top of your app/build.gradle file
apply plugin: 'icapps-build-gradle-plugin'
Config
Add the iCappsBuildConfig
at the bottom of you app/build.gradle
file
-
detekt will be enabled
-
pr will be enabled with the correct
lineVariant
andunitTestVariant
-
translations will be enabled with the given
apiKey
-
playStore will be enabled with the given
serviceAccountEmail
andpk12File
iCappsBuildConfig {
detekt {
}
pr {
lintVariant = "your-variant-for-lint-check"
unitTestVariant = "your-variant-for-unit-testing"
}
translations {
apiKey = "your-icapps-translations-api-key"
}
appCenter {
apiKey = 'your-api-key'
appOwner = 'your-organization-name'
applicationIdToAppName = { applicationId ->
return 'your-appcenter-app-name'
}
}
playStore {
serviceAccountEmail = 'your-play-store-account-email'
pk12File = file("${projectDir}/signing/key.p12")
}
bitbucket {
user = "repoOwner"
token = System.getenv('BITBUCKET_APP_KEY')
tokenUser = System.getenv('BITBUCKET_USER')
}
}
Wiki Pages
We added wiki pages to make sure we have better documentation with a clean getting started README
Extra info about: