Skip to content

Commit

Permalink
chore: Update Dependencies (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
utpal-barman authored Oct 15, 2024
1 parent 6c96629 commit cc2b953
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 104 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pull_request_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@ jobs:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: ♨️ Setup Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}

- name: 🛎️ Checking Flutter Version
run: flutter --version

- name: 📦 Install Dependencies
run: flutter pub get

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

- name: ✨ Check Formatting
run: dart format --line-length 80 --set-exit-if-changed lib test

- name: 🏗️ Build APK (Production Flavor)
run: flutter build apk --release --flavor production -t lib/main_production.dart

Expand Down
12 changes: 6 additions & 6 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
channel: "stable"

project_type: app
Expand All @@ -13,11 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: ios
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
- platform: android
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730

# User provided section

Expand Down
8 changes: 0 additions & 8 deletions .run/Development Release.run.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .run/Staging Release.run.xml

This file was deleted.

2 changes: 1 addition & 1 deletion android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
41 changes: 13 additions & 28 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,22 @@ plugins {
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader("UTF-8") { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "1"
}

def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}


// TODO: Change the appName, it will be used as app label
def appName = "Flutter Template"
def appName = "Monstarlab Flutter Template"

// TODO: Change the applicationId for production
// On staging it will add .staging and on development it will add .development as suffix.
def applicationId = "com.example.flutter_template"
def applicationId = "com.monstarlab.flutter"

ext {
androidMinSdkVersion = 21
androidCompileAndTargetSdkVersion = 34
}


android {
namespace = "$applicationId"
compileSdk = flutter.compileSdkVersion
compileSdk = androidCompileAndTargetSdkVersion
ndkVersion = flutter.ndkVersion

compileOptions {
Expand All @@ -49,11 +34,11 @@ android {
defaultConfig {
applicationId = "$applicationId"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = androidMinSdkVersion
targetSdk = androidCompileAndTargetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.flutter_template
package com.monstarlab.flutter

import io.flutter.embedding.android.FlutterActivity

Expand Down
4 changes: 1 addition & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ allprojects {
}
}

rootProject.buildDir = '../build'


rootProject.buildDir = "../build"
// [NStack] the namespace property is null within
// the android block of the build.gradle file for the nstack sdk.
// Additionally, the Kotlin Gradle plugin is using a very old version there.
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "com.android.application" version '7.4.2' apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}

Expand Down
36 changes: 18 additions & 18 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[DEV] Application Name";
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -378,7 +378,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -497,7 +497,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[DEV] Application Name";
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -507,7 +507,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -520,7 +520,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[DEV] Application Name";
APP_DISPLAY_NAME = "[DEV] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -530,7 +530,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.development;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.development;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -597,7 +597,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[STG] Application Name";
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -607,7 +607,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -672,7 +672,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[STG] Application Name";
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -682,7 +682,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -744,7 +744,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "[STG] Application Name";
APP_DISPLAY_NAME = "[STG] Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -754,7 +754,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate.staging;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter.staging;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -821,7 +821,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "Application Name";
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -831,7 +831,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -896,7 +896,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "Application Name";
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -906,7 +906,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -968,7 +968,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DISPLAY_NAME = "Application Name";
APP_DISPLAY_NAME = "Monstarlab Flutter Template";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
Expand All @@ -978,7 +978,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTemplate;
PRODUCT_BUNDLE_IDENTIFIER = com.monstarlab.flutter;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Flutter
import UIKit

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
3 changes: 2 additions & 1 deletion lib/presentation/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class App extends StatelessWidget {
darkTheme: AppTheme.fromBrightness(Brightness.dark),
// TODO: Set to [ThemeMode.light] if your app only supports light mode
themeMode: ThemeMode.system,
title: 'Project Name',
// TODO: Change Project Name Here
title: 'Monstarlab Flutter Template',
builder: (c, widget) {
if (widget == null) {
return const SizedBox();
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/routes/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:flutter_template/presentation/routes/router.gr.dart';
/// for example, Bottom navigation child views, tab views, etc.
///
@AutoRouterConfig()
class AppRouter extends $AppRouter {
class AppRouter extends RootStackRouter {
@override
RouteType get defaultRouteType => const RouteType.material();

Expand Down
Loading

0 comments on commit cc2b953

Please sign in to comment.