https://github.com/icapps/android_gradle_build
https://github.com/icapps/android_gradle_build
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icapps/android_gradle_build
- Owner: icapps
- License: apache-2.0
- Created: 2018-01-18T12:41:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T10:06:21.000Z (almost 5 years ago)
- Last Synced: 2025-04-04T15:11:15.082Z (about 1 year ago)
- Language: Kotlin
- Size: 213 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Android Gradle Build Plugin
**Getting Started**
This readme is purly for using the basic config and how you should setup the plugin. Check the [Wiki](https://github.com/icapps/android_gradle_build/wiki) for a specific configuration
**Setup**
[  ](https://bintray.com/icapps/maven/icapps-build-gradle-plugin/_latestVersion)
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` and `unitTestVariant`
- translations will be enabled with the given `apiKey`
- playStore will be enabled with the given `serviceAccountEmail` and `pk12File`
```
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:
- [General Info](https://github.com/icapps/android_gradle_build/wiki)
- [Detekt](https://github.com/icapps/android_gradle_build/wiki/detekt)
- [Pr](https://github.com/icapps/android_gradle_build/wiki/pr)
- [Translations](https://github.com/icapps/android_gradle_build/wiki/Translations)
- [AppCenter](https://github.com/icapps/android_gradle_build/wiki/AppCenter)
- [PlayStore](https://github.com/icapps/android_gradle_build/wiki/PlayStore)
- [Bitbucket](https://github.com/icapps/android_gradle_build/wiki/Bitbucket)