Skip to content

Commit cc2b953

Browse files
authoredOct 15, 2024··
chore: Update Dependencies (#156)
1 parent 6c96629 commit cc2b953

File tree

15 files changed

+78
-104
lines changed

15 files changed

+78
-104
lines changed
 

‎.github/workflows/pull_request_validation.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,22 @@ jobs:
1616
- name: 📚 Git Checkout
1717
uses: actions/checkout@v4
1818

19+
- name: ♨️ Setup Java
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
1925
- name: 🐦 Setup Flutter
2026
uses: subosito/flutter-action@v2
2127
with:
2228
channel: 'stable'
2329
cache: true
2430
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
2531

32+
- name: 🛎️ Checking Flutter Version
33+
run: flutter --version
34+
2635
- name: 📦 Install Dependencies
2736
run: flutter pub get
2837

@@ -32,9 +41,6 @@ jobs:
3241
- name: 🕵️ Analyze Code
3342
run: flutter analyze lib test
3443

35-
- name: ✨ Check Formatting
36-
run: dart format --line-length 80 --set-exit-if-changed lib test
37-
3844
- name: 🏗️ Build APK (Production Flavor)
3945
run: flutter build apk --release --flavor production -t lib/main_production.dart
4046

‎.metadata

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
7+
revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
88
channel: "stable"
99

1010
project_type: app
@@ -13,11 +13,11 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
17-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
18-
- platform: ios
19-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
20-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
16+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
17+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
18+
- platform: android
19+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
20+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
2121

2222
# User provided section
2323

‎.run/Development Release.run.xml

-8
This file was deleted.

‎.run/Staging Release.run.xml

-8
This file was deleted.

‎android/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gradle-wrapper.jar
77
GeneratedPluginRegistrant.java
88

99
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
10+
# See https://flutter.dev/to/reference-keystore
1111
key.properties
1212
**/*.keystore
1313
**/*.jks

‎android/app/build.gradle

+13-28
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,22 @@ plugins {
44
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
55
id "dev.flutter.flutter-gradle-plugin"
66
}
7-
8-
def localProperties = new Properties()
9-
def localPropertiesFile = rootProject.file("local.properties")
10-
if (localPropertiesFile.exists()) {
11-
localPropertiesFile.withReader("UTF-8") { reader ->
12-
localProperties.load(reader)
13-
}
14-
}
15-
16-
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
17-
if (flutterVersionCode == null) {
18-
flutterVersionCode = "1"
19-
}
20-
21-
def flutterVersionName = localProperties.getProperty("flutter.versionName")
22-
if (flutterVersionName == null) {
23-
flutterVersionName = "1.0"
24-
}
25-
26-
277
// TODO: Change the appName, it will be used as app label
28-
def appName = "Flutter Template"
8+
def appName = "Monstarlab Flutter Template"
299

3010
// TODO: Change the applicationId for production
3111
// On staging it will add .staging and on development it will add .development as suffix.
32-
def applicationId = "com.example.flutter_template"
12+
def applicationId = "com.monstarlab.flutter"
13+
14+
ext {
15+
androidMinSdkVersion = 21
16+
androidCompileAndTargetSdkVersion = 34
17+
}
3318

3419

3520
android {
3621
namespace = "$applicationId"
37-
compileSdk = flutter.compileSdkVersion
22+
compileSdk = androidCompileAndTargetSdkVersion
3823
ndkVersion = flutter.ndkVersion
3924

4025
compileOptions {
@@ -49,11 +34,11 @@ android {
4934
defaultConfig {
5035
applicationId = "$applicationId"
5136
// You can update the following values to match your application needs.
52-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
53-
minSdk = flutter.minSdkVersion
54-
targetSdk = flutter.targetSdkVersion
55-
versionCode = flutterVersionCode.toInteger()
56-
versionName = flutterVersionName
37+
// For more information, see: https://flutter.dev/to/review-gradle-config.
38+
minSdk = androidMinSdkVersion
39+
targetSdk = androidCompileAndTargetSdkVersion
40+
versionCode = flutter.versionCode
41+
versionName = flutter.versionName
5742
}
5843

5944
buildTypes {

‎android/app/src/main/kotlin/com/example/flutter_template/MainActivity.kt renamed to ‎android/app/src/main/kotlin/com/monstarlab/flutter/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.flutter_template
1+
package com.monstarlab.flutter
22

33
import io.flutter.embedding.android.FlutterActivity
44

‎android/build.gradle

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ allprojects {
55
}
66
}
77

8-
rootProject.buildDir = '../build'
9-
10-
8+
rootProject.buildDir = "../build"
119
// [NStack] the namespace property is null within
1210
// the android block of the build.gradle file for the nstack sdk.
1311
// Additionally, the Kotlin Gradle plugin is using a very old version there.

‎android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
1+
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true

‎android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.3.0" apply false
21+
id "com.android.application" version '7.4.2' apply false
2222
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
2323
}
2424

‎ios/Runner.xcodeproj/project.pbxproj

+18-18
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
isa = XCBuildConfiguration;
369369
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
370370
buildSettings = {
371-
APP_DISPLAY_NAME = "[DEV] Application Name";
371+
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
372372
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
373373
CLANG_ENABLE_MODULES = YES;
374374
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -378,7 +378,7 @@
378378
"$(inherited)",
379379
"@executable_path/Frameworks",
380380
);
381-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
381+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
382382
PRODUCT_NAME = "$(TARGET_NAME)";
383383
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
384384
SWIFT_VERSION = 5.0;
@@ -497,7 +497,7 @@
497497
isa = XCBuildConfiguration;
498498
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
499499
buildSettings = {
500-
APP_DISPLAY_NAME = "[DEV] Application Name";
500+
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
501501
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
502502
CLANG_ENABLE_MODULES = YES;
503503
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -507,7 +507,7 @@
507507
"$(inherited)",
508508
"@executable_path/Frameworks",
509509
);
510-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
510+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
511511
PRODUCT_NAME = "$(TARGET_NAME)";
512512
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
513513
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -520,7 +520,7 @@
520520
isa = XCBuildConfiguration;
521521
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
522522
buildSettings = {
523-
APP_DISPLAY_NAME = "[DEV] Application Name";
523+
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
524524
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
525525
CLANG_ENABLE_MODULES = YES;
526526
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -530,7 +530,7 @@
530530
"$(inherited)",
531531
"@executable_path/Frameworks",
532532
);
533-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
533+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
534534
PRODUCT_NAME = "$(TARGET_NAME)";
535535
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
536536
SWIFT_VERSION = 5.0;
@@ -597,7 +597,7 @@
597597
isa = XCBuildConfiguration;
598598
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
599599
buildSettings = {
600-
APP_DISPLAY_NAME = "[STG] Application Name";
600+
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
601601
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
602602
CLANG_ENABLE_MODULES = YES;
603603
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -607,7 +607,7 @@
607607
"$(inherited)",
608608
"@executable_path/Frameworks",
609609
);
610-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
610+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
611611
PRODUCT_NAME = "$(TARGET_NAME)";
612612
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
613613
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -672,7 +672,7 @@
672672
isa = XCBuildConfiguration;
673673
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
674674
buildSettings = {
675-
APP_DISPLAY_NAME = "[STG] Application Name";
675+
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
676676
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
677677
CLANG_ENABLE_MODULES = YES;
678678
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -682,7 +682,7 @@
682682
"$(inherited)",
683683
"@executable_path/Frameworks",
684684
);
685-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
685+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
686686
PRODUCT_NAME = "$(TARGET_NAME)";
687687
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
688688
SWIFT_VERSION = 5.0;
@@ -744,7 +744,7 @@
744744
isa = XCBuildConfiguration;
745745
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
746746
buildSettings = {
747-
APP_DISPLAY_NAME = "[STG] Application Name";
747+
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
748748
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
749749
CLANG_ENABLE_MODULES = YES;
750750
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -754,7 +754,7 @@
754754
"$(inherited)",
755755
"@executable_path/Frameworks",
756756
);
757-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
757+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
758758
PRODUCT_NAME = "$(TARGET_NAME)";
759759
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
760760
SWIFT_VERSION = 5.0;
@@ -821,7 +821,7 @@
821821
isa = XCBuildConfiguration;
822822
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
823823
buildSettings = {
824-
APP_DISPLAY_NAME = "Application Name";
824+
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
825825
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
826826
CLANG_ENABLE_MODULES = YES;
827827
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -831,7 +831,7 @@
831831
"$(inherited)",
832832
"@executable_path/Frameworks",
833833
);
834-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
834+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
835835
PRODUCT_NAME = "$(TARGET_NAME)";
836836
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
837837
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -896,7 +896,7 @@
896896
isa = XCBuildConfiguration;
897897
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
898898
buildSettings = {
899-
APP_DISPLAY_NAME = "Application Name";
899+
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
900900
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
901901
CLANG_ENABLE_MODULES = YES;
902902
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -906,7 +906,7 @@
906906
"$(inherited)",
907907
"@executable_path/Frameworks",
908908
);
909-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
909+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
910910
PRODUCT_NAME = "$(TARGET_NAME)";
911911
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
912912
SWIFT_VERSION = 5.0;
@@ -968,7 +968,7 @@
968968
isa = XCBuildConfiguration;
969969
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
970970
buildSettings = {
971-
APP_DISPLAY_NAME = "Application Name";
971+
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
972972
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
973973
CLANG_ENABLE_MODULES = YES;
974974
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
@@ -978,7 +978,7 @@
978978
"$(inherited)",
979979
"@executable_path/Frameworks",
980980
);
981-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
981+
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
982982
PRODUCT_NAME = "$(TARGET_NAME)";
983983
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
984984
SWIFT_VERSION = 5.0;

‎ios/Runner/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Flutter
22
import UIKit
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

‎lib/presentation/app.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class App extends StatelessWidget {
1818
darkTheme: AppTheme.fromBrightness(Brightness.dark),
1919
// TODO: Set to [ThemeMode.light] if your app only supports light mode
2020
themeMode: ThemeMode.system,
21-
title: 'Project Name',
21+
// TODO: Change Project Name Here
22+
title: 'Monstarlab Flutter Template',
2223
builder: (c, widget) {
2324
if (widget == null) {
2425
return const SizedBox();

‎lib/presentation/routes/router.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter_template/presentation/routes/router.gr.dart';
77
/// for example, Bottom navigation child views, tab views, etc.
88
///
99
@AutoRouterConfig()
10-
class AppRouter extends $AppRouter {
10+
class AppRouter extends RootStackRouter {
1111
@override
1212
RouteType get defaultRouteType => const RouteType.material();
1313

0 commit comments

Comments
 (0)