pusher / push-notifications-android

Android SDK for Pusher Beams
https://www.pusher.com/beams
MIT License
21 stars 22 forks source link

Sources JAR is missing Kotlin sources #74

Open mike-burns opened 5 years ago

mike-burns commented 5 years ago

In the Maven configuration you specify that the sources are the Java files via android.sourceSets.main.java.sourceFiles. Very few of the files in this project are *.java files, though.

I think the better thing to do here is:

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

(Even still I wasn't able to convince Android Studio to attach sources to the files I was debugging. Maybe that just doesn't work with Kotlin.)