Let's say we have Android app, compiled from files A, B, C. I want to print on screen source code from file A and if in the future i will make some changes in file A I want to print new state of this file . Let's assume that it's permissionable to print from file B or C (file A doesn't have to print itself). What is the most straightforward way to do this?
TIP. From my research i think it's possible with gradle task, which fill copy files from src/main/java to assets before compilation. Than we can read these files from assets in "standard" way. But this sound for me like a workaround. I don't want to have duplicates of java/kotlin files in my app. If i have classes A,B,C under src/main/java i want to print e.g source of class A from class B without these operations.