File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ android {
112
112
113
113
def localProperties = new Properties ()
114
114
localProperties. load(new FileInputStream (rootProject. file(" local.properties" )))
115
+ def variantsArray = localProperties[' variantsUID' ]?. split(" ," )?. collect { it. trim() }
116
+ def variantsAsArrayString = ' new String[] {' + variantsArray. collect { " \" $it \" " }. join(" , " ) + ' }'
115
117
buildTypes {
116
118
debug {
117
119
debuggable true
@@ -124,6 +126,9 @@ android {
124
126
buildConfigField " String" , " environment" , localProperties[' environment' ]
125
127
buildConfigField " String" , " contentTypeUID" , localProperties[' contentType' ]
126
128
buildConfigField " String" , " assetUID" , localProperties[' assetUid' ]
129
+ buildConfigField " String" , " variantUID" , localProperties[' variantUID' ]
130
+ buildConfigField " String" , " variantEntryUID" , localProperties[' variantEntryUID' ]
131
+ buildConfigField " String[]" , " variantsUID" , variantsAsArrayString
127
132
}
128
133
release {
129
134
minifyEnabled false
You can’t perform that action at this time.
0 commit comments