Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【重要】在 Google Play 上发包的开发者请注意!! #1314

Open
tys282000 opened this issue Dec 19, 2019 · 17 comments
Open

【重要】在 Google Play 上发包的开发者请注意!! #1314

tys282000 opened this issue Dec 19, 2019 · 17 comments
Labels

Comments

@tys282000
Copy link
Collaborator

由于 Google Play 政策变更,从 2020 年 1 月起所有 Google Play 上的 App 都不能带有动态下载、加载类的代码(运行时禁用也不行),否则一旦被检测到,开发者将会被警告或封号,相关 App 会被下架处理。

为此从 1.9.14.5 版本开始 Tinker 的运行时依赖库单独拆了一份不含任何 Patch 合成和加载逻辑的实现。对 GP 渠道的包除了在 DefaultLifeCycle 注解中将 flag 设置为 ShareConstants.TINKER_DISABLE 外,请务必对 app 模块的 Tinker 依赖做如下修改

  • implementation("com.tencent.tinker:tinker-android-lib:1.9.14.5") 改为 implementation("com.tencent.tinker:tinker-android-lib-no-op:1.9.14.5")

  • 如果手动加入了 tinker-android-loader 依赖,则还需将implementation("com.tencent.tinker:tinker-android-loader:1.9.14.5") 改为 implementation("com.tencent.tinker:tinker-android-loader-no-op:1.9.14.5")

如果使用的是 1.9.14.5 之前的版本,请尽快升级,或 checkout 对应的 tag ,手动移除 Patch 合成和加载逻辑后单独发布一个针对 GP 的版本。

@tys282000 tys282000 pinned this issue Dec 19, 2019
@aibingbing
Copy link

1.9.14.5什么时候发布?

@tys282000
Copy link
Collaborator Author

已经发布了。

@aibingbing
Copy link

已经发布了。

在jcenter中找不到这个no-op的包啊

@mistakelijc
Copy link

同样找不到no-op的包,要怎么处理?

@1136346879
Copy link

已经发布了。

在jcenter中找不到这个no-op的包啊

怎么样了 可以找到了吗?

@chen3441251
Copy link

这个通知的意思是,googleplay上架的app无法使用热修复了吗?“对 GP 渠道的包除了在 DefaultLifeCycle 注解中将 flag 设置为 ShareConstants.TINKER_DISABLE ” 这个在哪里修改

@1wayticket
Copy link

1wayticket commented Jan 7, 2020

这个通知的意思是,googleplay上架的app无法使用热修复了吗?“对 GP 渠道的包除了在 DefaultLifeCycle 注解中将 flag 设置为 ShareConstants.TINKER_DISABLE ” 这个在哪里修改

自定义Application 继承TinkerApplication 构造函数里面有 ShareConstants这个类 你找下。
还有 你能拉下com.tencent.tinker:tinker-android-lib-no-op:1.9.14.5这个库吗?

@1wayticket
Copy link

是不是lib配置有问题 我写的api 'com.tencent.tinker:tinker-android-lib-no-op:1.9.14.5' build之后提示Unable to resolve dependency for ':basemodule@debug/compileClasspath': Could not resolve com.tencent.tinker:tinker-android-lib-no-op:1.9.14.5. 比我配置的多了一个点

@jiao808813
Copy link

implementation("com.tencent.tinker:tinker-android-lib-no-op:1.9.14.5") 该库同样无法导入,怎么办

@jiangyuanyuan
Copy link

弃坑

@playscforever
Copy link

已经被下架了怎么办,按照这个处理好了再次上架,还是被下架了

@TracyZhangLei
Copy link

同志们,按照这个改的,有通过的么?

@scsfwgy
Copy link

scsfwgy commented Jun 16, 2021

Google Play 一直好好的,昨天被下架。 @tomystang
image

之前就是这样的配置就没问题,google的政策变了吗???配置如下:

//https://mvnrepository.com/artifact/com.tencent.bugly/tinker-support
classpath 'com.tencent.bugly:tinker-support:1.2.3'

//https://github.com/Tencent/tinker
api 'com.tencent.tinker:tinker-android-lib-no-op:1.9.14.15'
//https://mvnrepository.com/artifact/com.tencent.bugly/crashreport_upgrade?repo=jcenter
api 'com.tencent.bugly:crashreport:3.3.92'

@Hynsn
Copy link

Hynsn commented Jun 23, 2021

已经被下架了怎么办,按照这个处理好了再次上架,还是被下架了

你好 请问最后上架之后热修复功能在GP还能用吗

@1136346879
Copy link

1136346879 commented Jun 23, 2021 via email

@scsfwgy
Copy link

scsfwgy commented Jun 23, 2021

Google Play 一直好好的,昨天被下架。 @tomystang
image

之前就是这样的配置就没问题,google的政策变了吗???配置如下:

//https://mvnrepository.com/artifact/com.tencent.bugly/tinker-support
classpath 'com.tencent.bugly:tinker-support:1.2.3'

//https://github.com/Tencent/tinker
api 'com.tencent.tinker:tinker-android-lib-no-op:1.9.14.15'
//https://mvnrepository.com/artifact/com.tencent.bugly/crashreport_upgrade?repo=jcenter
api 'com.tencent.bugly:crashreport:3.3.92'

希望可以重视这个问题。现在又因为Jpush的问题(用的也是google play渠道包)被下架了。应该是因为google play政策调整。两个问题基本一致,应用已经被下架了。。。:通过 Google Play 分发的应用程序不得使用 Google Play 更新机制以外的任何方法修改、替换或更新自身。同样,应用程序不得从 Google Play 以外的来源下载可执行代码(例如 dex、JAR、.so 文件)。

@zhi936689039
Copy link

除了谷歌市场外,其他海外应用市场支持嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests