Hello :wave: Need input/help in below question. ...
# gradle
n
Hello 👋 Need input/help in below question. How can we move specific configuration from Android app’s level build.gradle.kts to dedicated gradle.kts. Example : in Main app level gradle file multiple blocks are there.
android { signingConfig, defaultConfig etc }
dependencies {}
From above Case I am able to move
dependencies { }
into separate
dependencies.gradle.kts
file. Now i am facing issue when I am trying to move signingConfig & defaultConfig etc into separate
flavorSigning.gradle.kts
file Can anyone please help me how can we move defaultConfig and productFlavor code into dedicated gradle.kts file ? I am not sure where this question should be asked so please guide me if its in wrong channel. Thank you
a
you can extract shared configuration by creating some convention plugins. I answered a similar question in the Gradle Slack - https://www.linen.dev/s/gradle-community/t/14140462/hello-when-using-buildscript-kotlin-what-is-the-recommended- - I think it will work for you too
👀 1
☝️ 1
👍 1
🤝 1