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 {
112112
113113 def localProperties = new Properties ()
114114 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(" , " ) + ' }'
115117 buildTypes {
116118 debug {
117119 debuggable true
@@ -124,6 +126,9 @@ android {
124126 buildConfigField " String" , " environment" , localProperties[' environment' ]
125127 buildConfigField " String" , " contentTypeUID" , localProperties[' contentType' ]
126128 buildConfigField " String" , " assetUID" , localProperties[' assetUid' ]
129+ buildConfigField " String" , " variantUID" , localProperties[' variantUID' ]
130+ buildConfigField " String" , " variantEntryUID" , localProperties[' variantEntryUID' ]
131+ buildConfigField " String[]" , " variantsUID" , variantsAsArrayString
127132 }
128133 release {
129134 minifyEnabled false
You can’t perform that action at this time.
0 commit comments