Skip to content

A Kotlin + Android library template (with a sample project).

License

Notifications You must be signed in to change notification settings

efguydan/library-template-android

 
 

Repository files navigation

Library Template (ANDROID)

This repository can be used as a template to create new GitHub repositories for Kotlin/Android libraries.

Code Formatting

./gradlew spotlessApply

Make sure you update spotless.license.kt and LICENSE.md to reflect your own license and author info! Other settings for this plugin can be tweaked in spotless.gradle.

Check if Dependencies Are Up-to-Date

./gradlew dependencyUpdates

Settings can be tweaked for this plugin within versionsPlugin.gradle.

Publishing the Library to Bintray -> jCenter

Just have to execute:

./gradlew clean build bintrayUpload

But there are some pre-requisites:

  1. Update bintrayconfig.gradle to contain your own Bintray username and the new library's matching details.
  2. Add bintray.user and bintray.apikey entries to local.properties matching your own Bintray account.
  3. With each release, update the version name and code in dependencies.gradle.
  4. Once you've deployed to Bintray for the first time, you can link your Bintray repository to jCenter so people can depend on your library from Android projects without having to add any special repositories.

About

A Kotlin + Android library template (with a sample project).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%