是否可以更改通过Gradle
中的Android Studio
导入的库的代码?我想这是不可能的,因为在运行时添加了库?extensions in Swift
中有什么等效的Java
吗? Swift
的扩展基本上是一种向现有类添加更多函数/方法的方法。无需直接更改原始源代码。
提前致谢!
最佳答案
Is it possible to alter the code of a library imported through Gradle in Android Studio?
根据您的Swift扩展引用,不是您所定义的那样。
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没有这个,抱歉。
关于android - 能够更改通过Gradle(Android Studio)导入的库的代码吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28422274/