This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominik Roszkowski
committed
Jul 10, 2019
1 parent
cef5fbf
commit a4c7ef8
Showing
6 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AppConfig { | ||
AppConfig(this.flavor); | ||
|
||
final String flavor; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:flutter_flavors/app_config.dart'; | ||
import 'package:flutter_flavors/main_common.dart'; | ||
|
||
Future<void> main() async { | ||
final config = AppConfig('dev'); | ||
|
||
mainCommon(config); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:flutter_flavors/app_config.dart'; | ||
import 'package:flutter_flavors/main_common.dart'; | ||
|
||
Future<void> main() async { | ||
final config = AppConfig('prod'); | ||
|
||
mainCommon(config); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:flutter_flavors/app_config.dart'; | ||
import 'package:flutter_flavors/main_common.dart'; | ||
|
||
Future<void> main() async { | ||
final config = AppConfig('tst'); | ||
|
||
mainCommon(config); | ||
} |
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