Skip to content

Commit

Permalink
Add code sources (#12)
Browse files Browse the repository at this point in the history
* Added gradle task

* Added doc
  • Loading branch information
danielceinos committed Apr 17, 2020
1 parent 5af74bb commit a22889f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fluxy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ dependencies {
ktlintCheck.dependsOn "ktlintFormat"
compileKotlin.dependsOn "ktlintCheck"
build.dependsOn "ktlintCheck"

task packageSources(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}

artifacts { archives packageSources }
3 changes: 3 additions & 0 deletions fluxy/src/main/java/com/hoopcarpool/fluxy/Logger.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.hoopcarpool.fluxy

/**
* Interface to decouple system log from fluxy
*/
interface Logger {
fun v(msg: String)
fun d(msg: String)
Expand Down
5 changes: 5 additions & 0 deletions timberlogger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ dependencies {
implementation project(":fluxy")
implementation 'com.jakewharton.timber:timber:4.7.1'
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

0 comments on commit a22889f

Please sign in to comment.