mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
Added flavors
This commit is contained in:
parent
4aa0c8e7c3
commit
94ac3a283f
2 changed files with 36 additions and 8 deletions
26
.vscode/launch.json
vendored
Normal file
26
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "dev",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"args": [
|
||||
"--flavor",
|
||||
"dev",
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"args": [
|
||||
"--flavor",
|
||||
"prod",
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
|
@ -43,20 +43,22 @@ android {
|
|||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.vodemn.lightmeter"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
flavorDimensions "app"
|
||||
productFlavors {
|
||||
dev {
|
||||
applicationId "com.vodemn.lightmeter.dev"
|
||||
dimension "app"
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
prod {
|
||||
applicationId "com.vodemn.lightmeter"
|
||||
dimension "app"
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue