dodorare / crossbow

Cross-Platform build tools and toolkit for games and game engines written in Rust! 🦀
https://crossbow.dodorare.com/
Apache License 2.0
201 stars 13 forks source link

Support build Environment Variables in Info.plist and AndroidManifest.xml #112

Open enfipy opened 2 years ago

enfipy commented 2 years ago

What problem does this solve or what need does it fill?

Now, crossbundle doesn't let you place environment variables in your Info.plist or AndroidManifest.xml properties. It would be good to make something like this this or like this in Xcode or like in AndroidManifest.xml.

What solution would you like?

For iOS, we can replace all vars in Info.plist during the build process for plain .app/.ipa. However, with Xcode, it would be better to create a .xcconfig file (see this tutorial).

For Android, we can add necessary vars in gradle.properties - so that Gradle will pick them up.