【问题标题】:Customized application in app and play stores应用商店和 Play 商店中的定制应用程序
【发布时间】:2017-11-02 09:51:30
【问题描述】:

我已经为 Android 和 iOS 平台开发了一个 react 本机移动应用程序,我想为我的每个客户多次发布这个应用程序。它是具有完全相同功能的同一个应用程序,但每个客户都需要拥有具有自己图标和名称的应用程序。

这可能吗?请您与我分享应用程序和游戏商店的规则。

问候,

奥马尔。

【问题讨论】:

标签: android ios google-play app-store hybrid-mobile-app


【解决方案1】:

您可以使用产品风味来做到这一点。

https://developer.android.com/studio/build/build-variants.html

如果确实需要多个应用,则不应违反 Play 商店政策。例如,一些在线超市使用相同的应用为每家公司重新命名。

【讨论】:

  • 我也有同样的问题。但除此之外,我还需要为每个客户定制图像、样式和其他资源。任何帮助将不胜感激
  • 上面的链接中包含:developer.android.com/studio/build/…
  • 感谢您的回复。在我的 react-native 项目中,资源在 android 和 ios 版本之间是通用的。有没有其他解决方案来防止重复?我的资源包括每个客户的 javascript 文件、样式和图像。我不知道如何在 android 和 ios 版本的 react-native 中执行此操作。
  • 您应该打开自己的问题,以吸引更多在 Android 和 IOS 方面都有经验的受众。
【解决方案2】:

是的,有可能你必须做 productFlavors

第 1 步:

signingConfigs {
        client1{
            storeFile file("keystore")
            storePassword "secret"
            keyAlias "aliasForFlavor1"
            keyPassword "secretFlavor1"
        }

        client2{
            storeFile file("keystore")
            storePassword "secret"
            keyAlias "aliasForFlavor2"
            keyPassword "secretFlavor2"
        }......
    }

    productFlavors {
        def signingConfigsClient1 = signingConfigs.client1
        def signingConfigsClent2 = signingConfigs.client2
        client1{
            applicationIdSuffix ".client1"
            signingConfig signingConfigsClient1
        }
       client2{
            applicationIdSuffix ".client2"
            signingConfig signingConfigsClient2
        }.....
}

第二步:创建drawable/strings.xml....文件夹

        SRC--> clent1 --> drawable
        SRC--> clent2 --> drawable......

更多信息请点击此网址

http://santhoshkumarsrs.blogspot.in/2017/03/how-to-deal-with-product-flavors-in.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-14
    • 2018-09-26
    • 1970-01-01
    • 2019-10-15
    • 2016-05-27
    • 1970-01-01
    • 2022-12-08
    相关资源
    最近更新 更多