Reputation: 7425
Is it possible to alter the code of a library imported through Gradle
in Android Studio
? I am thinking it isn't possible since the libraries get added in at runtime?
Is there anything equivalent of extensions in Swift
in Java
? An extension in Swift
is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.
Thanks in advance!
Upvotes: 0
Views: 93
Reputation: 1006604
Is it possible to alter the code of a library imported through Gradle in Android Studio?
Not as you are defining it, per your Swift extension reference.
An extension in Swift is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.
Java does not have this, sorry.
Upvotes: 1