Question by
fahy · Apr 26, 2016 at 04:28 AM ·
androidunity 5android buildpluginsandroidplugin
How to use gradle's buildTypes, productFlavors, sourceSet and other features to batch build apks for different android channel in unity
I'm a fresher for unity3d , and I have to use unity3d to batch build different apks for multiple android channels. I have to change project's package name, app name, icon, and meta-data values defined in AndroidManifest.xml. which is really boring me. What's worse is that I have to depend on different sdks that makes the project so heavy.
I know that android studio now is using gradle which can use buildTypes, productFlavors and sourceSet, manifestPlaceHolder, applicationId and some other configures to build different apks for multiple android channel.
I alse find some plugins in github like [text](https://github.com/zasadnyy/unity-gradle-plugin "unity-gradle-plugin"), but it can't use buildTypes or productFlavors features
I wonder if it is possible to use gradle to achieve my goal? Any suggestions?
Thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
Android build problem 0 Answers
Decrease the pakage size of android game 1 Answer
Need some help with Unity Airpush plugin 0 Answers
FitnessSensorService not being started by Android OS 1 Answer
I have a few questions 1 Answer