Skip to content

Commit

Permalink
Merge pull request #100 from dimipay/hotfixes/1.0.5+15
Browse files Browse the repository at this point in the history
v1.0.5+15 핫픽스 - screen_brightness Library로 인한 Crash 해결
  • Loading branch information
doch2 authored Mar 17, 2023
2 parents 01dffdd + def20e2 commit 67ef0d1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = X2TSPBJQ6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down Expand Up @@ -515,7 +515,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = X2TSPBJQ6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down Expand Up @@ -543,7 +543,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = X2TSPBJQ6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down
5 changes: 4 additions & 1 deletion lib/app/core/utils/loader.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:dimipay/app/core/utils/token_reference.dart';
import 'package:dimipay/app/data/provider/api.dart';
import 'package:dimipay/app/data/services/auth/repository.dart';
Expand All @@ -17,8 +19,9 @@ class AppLoader {
setPathUrlStrategy();
KakaoSdk.init(nativeAppKey: TokenReference.KAKAO_NATIVE_KEY);

if (Platform.isIOS) { await ScreenBrightness().setAutoReset(false); }

await Future.wait([
ScreenBrightness().setAutoReset(false),
Firebase.initializeApp(options: kIsWeb ? TokenReference.FIREBASEOPTION : null),
Get.putAsync<UpgraderService>(() => UpgraderService().init()),
Get.putAsync<AuthService>(() => AuthService(AuthRepository(ApiProvider())).init()),
Expand Down
9 changes: 8 additions & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ packages:
name: screen_brightness
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1"
version: "0.2.2"
screen_brightness_android:
dependency: transitive
description:
Expand Down Expand Up @@ -1087,6 +1087,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
screen_brightness_windows:
dependency: transitive
description:
name: screen_brightness_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.1"
sensors_plus:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.5+14
version: 1.0.5+15

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down Expand Up @@ -48,7 +48,7 @@ dependencies:
credit_card_scanner: ^1.0.5
intl: ^0.17.0
jwt_decoder: ^2.0.1
screen_brightness: ^0.2.1
screen_brightness: ^0.2.2
shimmer: ^2.0.0
url_strategy: ^0.2.0
qr_flutter: ^4.0.0
Expand Down

0 comments on commit 67ef0d1

Please sign in to comment.