且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

主要的应用程序下载另一个应用程序,然后使用它

更新时间:2022-12-21 12:43:02

我那么相信你可以下载这些SDK(显然是APK这里),并使用片段取值或code注入或东西。

I'm then sure you can download those SDK (apparently as APK here) and use Fragments or any code to inject or something.

可能需要尽管使用反射,因为你主要的应用B不会解决在A类。

Probably will need to use reflection though, because you main application "B" won't resolve the classes that are in "A".

也许你的A模块应该公开的方法/变量/片它,就像在一个嵌入式JSON描述资产或东西,即B可以解析,知道该怎么做。

Maybe your "A" modules should expose the methods / variables / fragments it has, like in an embedded JSON descriptive asset or something, that "B" could parse and know what to do with.

这里的关键显然是要摒弃所有的Acode从B,意为B的灵活性。

The point here is obviously to move all the "A" code away from "B", meaning flexibility for "B".