How to make Android app automatically configure w/ debug vs. release values?

前端 未结 6 2246
故里飘歌
故里飘歌 2021-02-10 14:13

I\'m working on an Android app, specifically one that uses the Facebook Android SDK. In development mode, I\'m working with a test Facebook app that goes by one ID. However, i

6条回答
  •  轮回少年
    2021-02-10 14:31

    It's been a while since you asked but I thought I'd share how I'm doing it.

    Like Sebastian hinted, an Ant script can handle that change for you and generate the static final constants that you're looking for. You can configure IntelliJ or Eclipse to make it almost seamless.

    I tried to detail the different steps I took over here, let me know if it helps. I know I never have to make any manual changes before releasing, and it's a nice relief!

提交回复
热议问题