Created
November 3, 2018 15:17
-
-
Save pranaypatel512/3f37299b63f07cb5261d5f319c114ec1 to your computer and use it in GitHub Desktop.
use config variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config = rootProject.extensions.getByName("ext") // Create variable to access "ext" members | |
android { | |
compileSdkVersion config["compileSdkVersion"] // access "ext" members using variable "config" | |
defaultConfig { | |
applicationId "com.pranay.managegradledemo" | |
minSdkVersion config["minSdkVersion"] | |
targetSdkVersion config["targetSdkVersion"] | |
.... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment