【问题标题】:Best practice to store sensitive information like vcs or keystore passwords or API keys required during build process in Android studio在 Android Studio 的构建过程中存储敏感信息(如 vcs 或密钥库密码或 API 密钥)的最佳实践
【发布时间】:2017-06-27 23:41:01
【问题描述】:

也许这是个愚蠢的问题,但如果我需要在构建过程中使用这些敏感数据(如 vcs 密码、API 密钥、密钥库密码),我很困惑。是否有一些规则或最佳做法?

【问题讨论】:

    标签: android architecture


    【解决方案1】:

    保留 res/Values/Strings.xml 并使用 proguard 混淆该文件 或者更好的是保留您的应用在作为环境变量运行时不需要的任何内容

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-03
      • 2010-11-18
      • 2011-09-23
      • 2017-08-24
      • 1970-01-01
      • 2014-07-28
      • 2019-07-30
      • 1970-01-01
      相关资源
      最近更新 更多