Generates a static object that includes a list of all activities declared in all manifest files of your project.
-
Added activities-constants.gradle in the module where you want to generate the object
ActivitiesConstants.kt
-
Include the gradle file to your build.gradle
apply from: 'activities-constants.gradle'
-
Build your project and use it !
ActivitiesConstants is located in
${applicationId}
.ActivitiesConstants