Skip to content

Commit ff84f17

Browse files
committedJun 26, 2022
[WIP] Need to fix icon launcher based on env
1 parent b80b699 commit ff84f17

File tree

73 files changed

+738
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+738
-400
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ https://user-images.githubusercontent.com/1531684/161389636-9802a444-2fac-41b2-8
1616
- Clone this project
1717
- Run `flutter run`
1818
- Run Test `flutter test`
19+
- To generate launcher icon based on Flavor `flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons*`
1920

2021
## Feature ✅
2122
- [x] BLoC State Management
@@ -32,7 +33,7 @@ https://user-images.githubusercontent.com/1531684/161389636-9802a444-2fac-41b2-8
3233
## TODO 📝
3334

3435
- [ ] Integration Test
35-
- [ ] Implement multi flavor
36+
- [x] Implement multi flavor
3637

3738
## Architecture Proposal by [Resocoder](https://github.com/ResoCoder/flutter-tdd-clean-architecture-course)
3839

‎android/app/build.gradle

+29-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ if (flutterVersionName == null) {
2424
apply plugin: 'com.android.application'
2525
apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
apply plugin: 'com.google.gms.google-services'
28+
2729

2830
android {
29-
compileSdkVersion 31
31+
compileSdkVersion 33
3032

3133
compileOptions {
3234
sourceCompatibility JavaVersion.VERSION_1_8
@@ -48,10 +50,11 @@ android {
4850
defaultConfig {
4951
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5052
applicationId "com.lazycatlabs.auth"
51-
minSdkVersion 16
53+
minSdkVersion 19
5254
targetSdkVersion 31
5355
versionCode flutterVersionCode.toInteger()
5456
versionName flutterVersionName
57+
multiDexEnabled true
5558
}
5659

5760
buildTypes {
@@ -78,6 +81,24 @@ android {
7881
}
7982
}
8083
}
84+
85+
flavorDimensions "env"
86+
productFlavors {
87+
stg {
88+
dimension 'env'
89+
versionNameSuffix '-stg'
90+
applicationIdSuffix ".stg"
91+
// TODO : Enable this if you want sign your app
92+
// signingConfig signingConfigs.release
93+
}
94+
prd {
95+
dimension 'env'
96+
// TODO : Enable this if you want sign your app
97+
// signingConfig signingConfigs.release
98+
}
99+
100+
101+
}
81102
}
82103

83104
flutter {
@@ -86,4 +107,10 @@ flutter {
86107

87108
dependencies {
88109
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
110+
implementation platform('com.google.firebase:firebase-bom:28.0.1')
111+
implementation 'com.google.firebase:firebase-messaging-ktx'
112+
implementation 'androidx.multidex:multidex:2.0.1'
113+
implementation 'com.google.firebase:firebase-analytics-ktx'
89114
}
115+
116+
apply plugin: 'com.google.firebase.crashlytics'

0 commit comments

Comments
 (0)
Please sign in to comment.