File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ def computeBuildToolsVersion = { ->
8686def enableAnalytics = (project. hasProperty(" gatherAnalyticsData" ) && project. gatherAnalyticsData == " true" )
8787def analyticsFilePath = " $rootDir /analytics/build-statistics.json"
8888def analyticsCollector = project.ext.AnalyticsCollector . withOutputPath(analyticsFilePath)
89- if (enableKotlin && enableAnalytics) {
90- analyticsCollector. markHasUseKotlinPropertyInApp( )
89+ if (enableAnalytics) {
90+ analyticsCollector. markUseKotlinPropertyInApp(enableKotlin )
9191 analyticsCollector. writeAnalyticsFile()
9292}
9393
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ class AnalyticsCollector{
1919 return new AnalyticsCollector (analyticsFilePath)
2020 }
2121
22- void markHasUseKotlinPropertyInApp ( ) {
23- hasUseKotlinPropertyInApp = true
22+ void markUseKotlinPropertyInApp ( boolean useKotlin ) {
23+ hasUseKotlinPropertyInApp = useKotlin
2424 }
2525
2626 void writeAnalyticsFile () {
@@ -45,4 +45,4 @@ class AnalyticsCollector{
4545 }
4646}
4747
48- ext.AnalyticsCollector = AnalyticsCollector
48+ ext.AnalyticsCollector = AnalyticsCollector
You can’t perform that action at this time.
0 commit comments