shifujun
shifujun
## Prelude * Could you find answer in below documents? 1. [FAQ](https://github.com/brookhong/Surfingkeys/wiki/FAQ) / [常见问题](https://github.com/brookhong/Surfingkeys/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) 1. [README](https://github.com/brookhong/Surfingkeys/blob/master/README.md) / [读我](https://github.com/brookhong/Surfingkeys/blob/master/README_CN.md) No. * Have you searched your problem in [issues](https://github.com/brookhong/Surfingkeys/issues)? Yes. ## Error...
Some projects like `aosp-dexutils` are using `java-library` plugin, but they are used in Android platform. That means it compiled against standard JDK, maybe JDK11, but run under android.jar. We should...
执行全量自动化测试时dump内存,发现Activity内存泄露。 由于ServiceContextSubDirTestActivity的ServiceConnection被com.tencent.shadow.core.loader.managers.UnsafePluginServiceManager#mConnectionIntentMap 持有。 https://github.com/Tencent/Shadow/blob/e38755ec8fb77adfb5e7e96d8631dd04a1626422/projects/test/plugin/general-cases/test-plugin-general-cases/src/main/java/com/tencent/shadow/test/plugin/general_cases/lib/usecases/context/ServiceContextSubDirTestActivity.java#L44 https://github.com/Tencent/Shadow/blob/9f0c762d5c11afb48e088be1f0c3abe3d6f1da1c/projects/sdk/core/loader/src/main/kotlin/com/tencent/shadow/core/loader/managers/PluginServiceManager.kt#L95 [memory-20220506T153206.hprof.zip](https://github.com/Tencent/Shadow/files/8638336/memory-20220506T153206.hprof.zip)
测试中DumbUpdater在第一次getLatest时返回一个空实现的DumbManager, 然后DynamicPluginManager中的enter逻辑会自动调用DumbUpdater的update方法, DumbUpdater此后就会返回另一个实现TestDynamicPluginManager。 测试用例通过将两次getLatest取得的Manager对象类名打印出来判断更新是否成功。 #784
临时兼容手段:`./gradlew :sample-host:installDebug` google开发者的意思是IDE中点Run按钮构建的apk是针对Run选择的机型构建的,把这个apk直接放到output目录中,会让人误以为这个apk是不区分机型的构建。所以这是个bug。修复方案就是点Run构建的apk不放到output目录。 我们这个项目并不涉及这个问题。我们只是想让sample-host构建自动触发sample-app等plugin的apk构建,然后拿到apk打包成插件包,自动放到host的asset中。这样开发shadow时,修改了代码一键运行host,方便开发调试。 现在我们代码是写死的output目录路径。如果要检测是Run构建的,还是assemble任务构建的,一时还没有好办法。这里主要是涉及两边如果都构建过,哪个是新的。初步看应该是从`apk_ide_redirect_file`的记录确定。 总之这个开发还比较费事,先置顶个issue吧。 这个AGP 7.1带来了一个很麻烦的变动。在Android Studio中运行assemble任务,apk文件会生成在`build/intermediates/apk`目录中。直接在命令行运行同一个assemble任务却会像以前一样生成到`build/outputs/apk`中。 这使得在IDE中直接运行`sample-host`和在命令行中运行`./gradlew :sample-host:assembleDebug`,需要两种不同的复制插件apk路径。 😞 😞 😞 😞 😞 _Originally posted by @shifujun in https://github.com/Tencent/Shadow/issues/799#issuecomment-1036001714_ https://developer.android.google.cn/studio/releases/fixed-bugs/studio/2021.1.1?hl=zh-cn [问题 69014026](https://issuetracker.google.com/issues/69014026?hl=zh-cn) 将部署 build 输出移至 intermediates 文件夹...
改为这个方法之后调起activity会报 Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? __最初由 @hzbhzb 在 https://github.com/Tencent/Shadow/issues/640#issuecomment-948563975 发布__ 有复现问题的代码吗?在sample上复现一下,push上来看看。要不就算我复现并修复了,也可能不是你说的情况。
FragmentContainerViewTestActivity通过layout_fragmentcontainerviewtestactivity.xml添加 FragmentContainerView,并在其中添加FooSupportFragment。 测试查找FooSupportFragment添加的tag为msg的TextView内容。 #1162 #1164
# Environment - `pub version` or `flutter pub version`: Pub 2.4.1 - OS version: Mac OS X 10.14.6 - Are you using the Chinese community mirror or a corporate firewall?...
#### 要解决的问题 Describe the problem to be solved 在我写[Tencent Shadow](https://github.com/Tencent/Shadow)之前,我曾经调研过RePlugin。发现RePlugin实现将插件Activity.class返回给系统使用的核心代码实现的有些麻烦了,而且还使用了很多私有API。 终于等到公司同意[Tencent Shadow](https://github.com/Tencent/Shadow)开源,特来将这段代码贡献给RePlugin。也希望RePlugin团队能同我们就插件框架技术有所交流。 这个PR如果有考虑不周之处,希望能得到指点。
@shifujun [ShadowActivityDelegate](https://github.com/Tencent/Shadow/blob/4880701cbf7ea652d4e20abc7b81c16df63057af/projects/sdk/core/loader/src/main/kotlin/com/tencent/shadow/core/loader/delegates/ShadowActivityDelegate.kt#L201) 这里带有 nfc 扫描结果的 Intent 数据会被覆盖掉,应该是一个 bug 。 这样改不知道会不会有问题啊 ```kotlin val pluginExtras: Bundle? = intent.getBundleExtra(CM_EXTRAS_BUNDLE_KEY) if (pluginExtras != null) { intent.putExtra(CM_EXTRAS_BUNDLE_KEY, pluginExtras) } mPluginActivity.onNewIntent(intent) ``` _最初由 qingsongwill 在 https://github.com/Tencent/Shadow/issues/1298#issuecomment-2024954501...