Skip to content

Commit

Permalink
add support for kotlin classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle committed Nov 20, 2024
1 parent 82494b7 commit da61a5f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tooling/custom-lint-rules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,17 @@ rootProject.project('android-core').android.buildTypes.all {

task zipSources(type: Jar) {
def fileName = "$project.rootDir/android-core/build/intermediates/javac/${targetBuildType}/classes"
def kotlinClassesPath = "$project.rootDir/android-core/build/tmp/kotlin-classes/${targetBuildType}"

from(fileTree(dir: fileName)) {
destinationDir new File("$project.projectDir/libs")
archiveName "mparticle.jar"
include '**/*.class' // Include Java classes

}
from(fileTree(dir: kotlinClassesPath)) {
include '**/*.class' // Include Kotlin classes
}
destinationDir new File("$project.projectDir/libs")
archiveName "mparticle.jar"
outputs.upToDateWhen { false }
}

Expand Down

0 comments on commit da61a5f

Please sign in to comment.