Android `templateMergeStrategy` in strings.xml

后端 未结 3 1210
心在旅途
心在旅途 2021-02-08 10:35

What does the templateMergeStrategy property mean in an Android resource?

e.g. in Google Maps API key file



        
相关标签:
3条回答
  • 2021-02-08 10:54

    Well, I have found the following in Google Code

    Following commit in Google code states

    Uses this to overwrite the instructions in the Google Maps template. Subsequent runs of the template always update the instructions with the user's current keystore credentials.

    0 讨论(0)
  • 2021-02-08 10:56

    From change log

    Uses this to overwrite the instructions in the Google Maps template. Subsequent runs of the template always update the instructions with the user's current keystore credentials.

    Also changed the Maps instructions to deep link into a Google developer console flow, which allows for easier key generation.

    0 讨论(0)
  • 2021-02-08 11:02

    It means Android Studio template engine will preserve this line when a new Google Maps Activity is created, so you don't loose your key.

    0 讨论(0)
提交回复
热议问题