I want to define and create custom classes in gradle to define some constants values for my projects.
We can define field under the BuildConfig as above
buildConfigField "String", 'SOME_FIELD', 'SOME_VALUE'
But I need another object not related or under the BuildConfig. And I want to use java/kotlin code. The output that I want like above.
public final class SomeClass {
public static final String SOME_FIELD = "SOME_VALUE";
}
Is this possible to create class like that ?