feat(update): expose store bridge entry
这个提交包含在:
父节点
d05b85b024
当前提交
8204ee7c38
@ -690,8 +690,17 @@ object UpdateSDK {
|
||||
* SDK 不展示 UI,返回 false 时由宿主决定是否提示“无法提供下载服务”。
|
||||
*/
|
||||
@JvmStatic
|
||||
fun openStore(context: Context, updateInfo: UpdateInfo): Boolean {
|
||||
val candidates = listOf(updateInfo.marketUrl, updateInfo.appStoreUrl)
|
||||
fun openStore(context: Context, updateInfo: UpdateInfo): Boolean =
|
||||
openStore(context, updateInfo.marketUrl, updateInfo.appStoreUrl)
|
||||
|
||||
/** Java/RN 使用的同一商店跳转入口。 */
|
||||
@JvmStatic
|
||||
fun openStore(
|
||||
context: Context,
|
||||
marketUrl: String?,
|
||||
appStoreUrl: String?,
|
||||
): Boolean {
|
||||
val candidates = listOf(marketUrl.orEmpty(), appStoreUrl.orEmpty())
|
||||
.map(String::trim)
|
||||
.filter(String::isNotBlank)
|
||||
.distinct()
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户