https://github.com/williamyyu/androidtemplate
Gradle Kotlin DSL
https://github.com/williamyyu/androidtemplate
android android-template kotlin-android kotlin-dsl
Last synced: about 2 months ago
JSON representation
Gradle Kotlin DSL
- Host: GitHub
- URL: https://github.com/williamyyu/androidtemplate
- Owner: williamyyu
- License: mit
- Created: 2020-11-04T13:33:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-21T10:52:40.000Z (over 5 years ago)
- Last Synced: 2025-08-18T03:38:46.768Z (10 months ago)
- Topics: android, android-template, kotlin-android, kotlin-dsl
- Language: Kotlin
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidTemplate
## Usage
1. Change `applicationId` in [AndroidConfigs](buildSrc/src/main/java/AndroidConfigs)
2. Change `app_name` in strings.xml
3. Change `rootProject.name` in [settings.gradle.kts](settings.gradle.kts)
4. Rename the package name `com.will.androidtemplate` to whatever you like
## How To Enable Dependency Version Checker
Download the [customlintversioncheck.jar](customlintversioncheck.jar) and put it under path `~/.android/lint`.
> Note: I'm using a customize version of the [version-checker-gradle-lint](https://github.com/PicPay/version-checker-gradle-lint),
which makes dependencies can be nested in one file. For instance, `Libs.Kotlin.stdLib`. If you'd prefer to create serveral separate files for dependencies, feel free to download the original jar from [version-checker-gradle-lint](https://github.com/PicPay/version-checker-gradle-lint).
## Glance
Look at this incredible clear dependencies!
```gradle
dependencies {
implementation(Libs.Kotlin.stdLib)
implementation(Libs.Kotlin.coroutinesCore)
implementation(Libs.Kotlin.coroutinesAndroid)
implementation(Libs.Material.material)
implementation(Libs.AndroidX.coreKtx)
implementation(Libs.AndroidX.appcompat)
implementation(Libs.AndroidX.lifecycleExt)
implementation(Libs.AndroidX.constraintLayout)
implementation(Libs.AndroidX.navigationFragment)
implementation(Libs.AndroidX.navigationUI)
implementation(Libs.AndroidX.roomRuntime)
kapt(Libs.AndroidX.roomCompiler)
implementation(Libs.Hilt.hiltAndroid)
implementation(Libs.Hilt.hiltViewModel)
kapt(Libs.Hilt.hiltCompiler)
kapt(Libs.Hilt.hiltAndroidCompiler)
implementation(Libs.ThirdPartyLib.timber)
implementation(Libs.ThirdPartyLib.mmkv)
testImplementation(TestLibs.UnitTest.junit4)
androidTestImplementation(TestLibs.AndroidTest.junit)
androidTestImplementation(TestLibs.AndroidTest.espressoCore)
}
```