Skip to content

Commit def77be

Browse files
committed
fix(workspace): provider authority 改用 ${applicationId} 占位符,解 debug/release 共存冲突
authorities 原写死 com.aicode.documents:debug 变体有 applicationIdSuffix=.debug,applicationId 变 com.aicode.debug,但 provider authority 不随之变、两变体注册同一 authority,Android 拒绝共存报 INSTALL_FAILED_CONFLICTING_PROVIDERS(=-13),debug 与 release 无法同机安装(发版 CI 装机阶段暴露)。 改为 ${applicationId}.documents 占位符:debug → com.aicode.debug.documents,release → com.aicode.documents,各变体 authority 各不相同,共存恢复。师生 provider 内部不引用 authority 字符串(系统从 manifest 注入),无代码侧影响。合并 manifest 已核对 universalDebug 注入为 com.aicode.debug.documents。
1 parent d3ba7e2 commit def77be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<provider
3535
android:name=".feature.workspace.data.provider.WorkspaceDocumentsProvider"
36-
android:authorities="com.aicode.documents"
36+
android:authorities="${applicationId}.documents"
3737
android:exported="true"
3838
android:grantUriPermissions="true"
3939
android:permission="android.permission.MANAGE_DOCUMENTS">

0 commit comments

Comments
 (0)