From 339f7f776fe94b95e0664ef9e159681948c686b1 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 8 Aug 2022 23:43:48 -0500 Subject: [PATCH] Fixed setting high refresh rate crash ios release build --- mobile/android/fastlane/README.md | 10 +++++++++- mobile/android/fastlane/report.xml | 6 +++--- mobile/ios/Podfile.lock | 6 ++++++ mobile/ios/Runner.xcodeproj/project.pbxproj | 6 +++--- mobile/ios/Runner/Info.plist | 4 ++-- mobile/ios/fastlane/report.xml | 14 ++++++-------- mobile/lib/main.dart | 10 ++++++++-- 7 files changed, 37 insertions(+), 19 deletions(-) diff --git a/mobile/android/fastlane/README.md b/mobile/android/fastlane/README.md index 13ce6317e3..fb4b573aac 100644 --- a/mobile/android/fastlane/README.md +++ b/mobile/android/fastlane/README.md @@ -15,13 +15,21 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do ## Android +### android build + +```sh +[bundle exec] fastlane android build +``` + +Build Android + ### android release ```sh [bundle exec] fastlane android release ``` -Update AAB to PlayStore +Build and Release Android ---- diff --git a/mobile/android/fastlane/report.xml b/mobile/android/fastlane/report.xml index 99969bffe9..610b4f31ff 100644 --- a/mobile/android/fastlane/report.xml +++ b/mobile/android/fastlane/report.xml @@ -5,17 +5,17 @@ - + - + - + diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lock index bf2c6aef54..0bc7850eb6 100644 --- a/mobile/ios/Podfile.lock +++ b/mobile/ios/Podfile.lock @@ -19,6 +19,8 @@ PODS: - Flutter - FlutterMacOS - SAMKeychain (1.5.3) + - share_plus (0.0.1): + - Flutter - shared_preferences_ios (0.0.1): - Flutter - sqflite (0.0.2): @@ -40,6 +42,7 @@ DEPENDENCIES: - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) - photo_manager (from `.symlinks/plugins/photo_manager/ios`) + - share_plus (from `.symlinks/plugins/share_plus/ios`) - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`) - sqflite (from `.symlinks/plugins/sqflite/ios`) - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) @@ -67,6 +70,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/path_provider_ios/ios" photo_manager: :path: ".symlinks/plugins/photo_manager/ios" + share_plus: + :path: ".symlinks/plugins/share_plus/ios" shared_preferences_ios: :path: ".symlinks/plugins/shared_preferences_ios/ios" sqflite: @@ -88,6 +93,7 @@ SPEC CHECKSUMS: path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604 SAMKeychain: 483e1c9f32984d50ca961e26818a534283b4cd5c + share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj index 4ed6cda265..e5399800c3 100644 --- a/mobile/ios/Runner.xcodeproj/project.pbxproj +++ b/mobile/ios/Runner.xcodeproj/project.pbxproj @@ -360,7 +360,7 @@ CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 38; + CURRENT_PROJECT_VERSION = 40; DEVELOPMENT_TEAM = 2F67MQ8R79; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -495,7 +495,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 38; + CURRENT_PROJECT_VERSION = 40; DEVELOPMENT_TEAM = 2F67MQ8R79; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -522,7 +522,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 38; + CURRENT_PROJECT_VERSION = 40; DEVELOPMENT_TEAM = 2F67MQ8R79; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist index a8b30d6563..0cb22a5148 100644 --- a/mobile/ios/Runner/Info.plist +++ b/mobile/ios/Runner/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.20.0 + 1.21.0 CFBundleSignature ???? CFBundleVersion - 38 + 40 LSRequiresIPhoneOS MGLMapboxMetricsEnabledSettingShownInApp diff --git a/mobile/ios/fastlane/report.xml b/mobile/ios/fastlane/report.xml index 4e2d1d6a5d..8522da91c2 100644 --- a/mobile/ios/fastlane/report.xml +++ b/mobile/ios/fastlane/report.xml @@ -5,34 +5,32 @@ - + - + - + - + - + - - - + diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart index 94d581c57a..d254ae9178 100644 --- a/mobile/lib/main.dart +++ b/mobile/lib/main.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -51,8 +53,12 @@ void main() async { Locale('it', 'IT'), ]; - if (kReleaseMode) { - await FlutterDisplayMode.setHighRefreshRate(); + if (kReleaseMode && Platform.isAndroid) { + try { + await FlutterDisplayMode.setHighRefreshRate(); + } catch (e) { + debugPrint("Error setting high refresh rate: $e"); + } } runApp(