From 5a0e30b3452ed8f89899b2c22ea60487382e12fd Mon Sep 17 00:00:00 2001 From: Palash Mittal Date: Sat, 2 Sep 2023 19:00:03 +0530 Subject: [PATCH 1/4] acad disscussion forum --- android/build.gradle | 2 +- android/gradle/wrapper/gradle-wrapper.properties | 2 +- macos/Flutter/GeneratedPluginRegistrant.swift | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c00cf1a7..4bdaab5d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -30,6 +30,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index bc6a58af..cfe88f69 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index d6e284f9..6d5c33d8 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,6 +5,7 @@ import FlutterMacOS import Foundation +import device_info_plus_macos import firebase_core import firebase_messaging import flutter_local_notifications @@ -12,12 +13,12 @@ import flutter_native_timezone import location import package_info_plus_macos import path_provider_macos -import shared_preferences_macos +import shared_preferences_foundation import sqflite import url_launcher_macos -import wakelock_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin")) FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin")) @@ -28,5 +29,4 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) - WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin")) } From 644630253c4f5cba2ca07f3ed6734c7b6d9aab87 Mon Sep 17 00:00:00 2001 From: Tarus Date: Sat, 9 Sep 2023 15:27:30 +0530 Subject: [PATCH 2/4] set up flutter --- assets/login/login.html | 2 +- assets/login/login_dark.html | 2 +- ios/Runner.xcodeproj/project.pbxproj | 4 ++-- ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme | 2 +- lib/src/api/apiclient.dart | 6 +++--- lib/src/api/apiclient.g.dart | 3 +-- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/assets/login/login.html b/assets/login/login.html index d4a509fe..9b017590 100644 --- a/assets/login/login.html +++ b/assets/login/login.html @@ -107,7 +107,7 @@