Skip to content
Snippets Groups Projects

Resolve "Improve build process"

Merged Benoît Harrault requested to merge 72-improve-build-process into master
2 files
+ 27
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 25
0
@@ -62,6 +62,31 @@ android {
@@ -62,6 +62,31 @@ android {
signingConfig signingConfigs.release
signingConfig signingConfigs.release
}
}
}
}
 
 
splits {
 
abi {
 
reset()
 
include('armeabi-v7a', 'x86', 'x86_64')
 
}
 
}
 
}
 
 
ext.abiCodes = [
 
'armeabi-v7a': 1,
 
'x86': 2,
 
'x86_64': 3
 
]
 
 
import com.android.build.OutputFile
 
 
android.applicationVariants.all { variant ->
 
variant.outputs.each { output ->
 
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
 
 
if (baseAbiVersionCode != null) {
 
output.versionCodeOverride = baseAbiVersionCode * 1000 + variant.versionCode
 
}
 
}
}
}
flutter {
flutter {
Loading