简体   繁体   中英

Instant app package name

I have an app on play store with package name com.xyz.hello Now I created instant app of same. I know pacakge name of instant app and installable app should be same. I want to know to which module of instant app I have to change the package name to com.xyz.hello

  • app module
  • instantapp module
  • Instant base
  • Feature Module

我得到了解决方案,只需将applicationId更改为与app模块的build.gradle安装的应用 applicationId相同。

In the instantapp samples provided by google they do not specify a separate AndroidManifest for the instant app module. Given this I think it will have the same package as specified in the installed AndroidManifest.xml

App Module: You need to add a new level in the app module package name, like "app". So it will change from "com.xyz.hello" to "com.xyz.hello.app".

Instant App Module: You don't need to set any package name to this module, since it doesn't have a manifest.

Base Module: The base module package name needs to be assigned as the old app's module package name, in this case "com.xyz.hello".

Feature Module: The package names for the feature modules should be assigned one level bellow the base module package name, like "com.xyz.hello.feature"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM