Is your feature request related to a problem? Please describe.
We need a way to track if Kontlin integrations is used inside NativeScript projects.
Describe the solution you'd like
Every android build to produce data about Kotlin usage and this data to be tracked if Usage Reporting is enabled.
Describe alternatives you've considered
No alternatives
Additional context
None
Acceptance Criteria
{
"kotlinUsage": {
"hasUseKotlinPropertyInApp": true,
"hasKotlinRuntimeClasses": true
}
}
Make sure that usage reporting is enabled - tns usage-reporting enable. The flag --analyticsLogFile could be used for easier verification of the events that are sent.
For testing the properties use the attached project. To have hasUseKotlinPropertyInApp turn to false remove App_Resources/android/gradle.poperties. To have hasKotlinRuntimeClasses turn to false remove the jar file from App_Resources/android/libs. To test the feature use android@next.
kotlinTest.zip
Is your feature request related to a problem? Please describe.
We need a way to track if Kontlin integrations is used inside NativeScript projects.
Describe the solution you'd like
Every android build to produce data about Kotlin usage and this data to be tracked if Usage Reporting is enabled.
Describe alternatives you've considered
No alternatives
Additional context
None
Acceptance Criteria
platforms/android/analytics/build-statistics.jsonwith content:{ "kotlinUsage": { "hasUseKotlinPropertyInApp": true, "hasKotlinRuntimeClasses": true } }Using Kotlinand labelhasUseKotlinPropertyInAppData__true__ hasKotlinRuntimeClassesData__true. The values should be true/false according to the content of thebuild-statistics.json.Make sure that usage reporting is enabled - tns usage-reporting enable. The flag --analyticsLogFile could be used for easier verification of the events that are sent.
For testing the properties use the attached project. To have
hasUseKotlinPropertyInAppturn tofalseremoveApp_Resources/android/gradle.poperties. To havehasKotlinRuntimeClassesturn tofalseremove thejarfile fromApp_Resources/android/libs. To test the feature useandroid@next.kotlinTest.zip