Skip to content

Commit

Permalink
🔀 :: 3.3.5 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoochanhong authored Mar 2, 2024
2 parents a465bfc + 8215fcf commit 7c60b6f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 42 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ if (flutterRoot == null) {

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '15'
flutterVersionCode = '16'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '3.3.4'
flutterVersionName = '3.3.5'
}

def keystoreProperties = new Properties()
Expand Down
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = Z25H7B85Z8;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand All @@ -376,7 +376,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.3.3;
MARKETING_VERSION = 3.3.5;
PRODUCT_BUNDLE_IDENTIFIER = com.osj.lotura;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down Expand Up @@ -507,7 +507,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = Z25H7B85Z8;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand All @@ -516,7 +516,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.3.3;
MARKETING_VERSION = 3.3.5;
PRODUCT_BUNDLE_IDENTIFIER = com.osj.lotura;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand All @@ -537,7 +537,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 14;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = Z25H7B85Z8;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand All @@ -546,7 +546,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.3.3;
MARKETING_VERSION = 3.3.5;
PRODUCT_BUNDLE_IDENTIFIER = com.osj.lotura;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down
17 changes: 9 additions & 8 deletions lib/presentation/splash_page/ui/view/splash_page.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:firebase_remote_config/firebase_remote_config.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:http/http.dart' as http;
import 'package:lotura/data/dto/request/get_apply_list_request.dart';
import 'package:lotura/presentation/app_update_page/ui/app_update_page.dart';
import 'package:lotura/presentation/apply_page/bloc/apply_bloc.dart';
Expand All @@ -13,6 +14,7 @@ import 'package:lotura/presentation/laundry_room_page/bloc/laundry_bloc.dart';
import 'package:lotura/presentation/laundry_room_page/bloc/laundry_event.dart';
import 'package:lotura/presentation/utils/bottom_navi.dart';
import 'package:lotura/presentation/utils/lotura_colors.dart';
import 'package:lotura/secret.dart';
import 'package:package_info_plus/package_info_plus.dart';

class SplashPage extends StatefulWidget {
Expand All @@ -26,16 +28,15 @@ class SplashPage extends StatefulWidget {

class _SplashPageState extends State<SplashPage> {
Future<void> checkAppVersion() async {
final remoteConfig = FirebaseRemoteConfig.instance;
await remoteConfig.fetchAndActivate();

String firebaseVersion = remoteConfig.getString(
Platform.isAndroid ? "ANDROID_APP_VERSION" : "iOS_APP_VERSION");

PackageInfo packageInfo = await PackageInfo.fromPlatform();
String appVersion = packageInfo.version;

if (firebaseVersion != appVersion) {
final res = await http.get(Uri.parse(
"$baseurl/app_ver_${Platform.isAndroid ? "android" : "ios"}"));

final newestAppVersion = jsonDecode(res.body)['version'];

if (newestAppVersion != appVersion) {
Future.delayed(Duration.zero).then((value) =>
Navigator.pushAndRemoveUntil(
context,
Expand Down
24 changes: 0 additions & 24 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -193,30 +193,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.5.18"
firebase_remote_config:
dependency: "direct main"
description:
name: firebase_remote_config
sha256: "60fc92273d1db338a6fad1839c42dedc4ad64f812043acad0cbb200702f5c9ce"
url: "https://pub.dev"
source: hosted
version: "4.3.8"
firebase_remote_config_platform_interface:
dependency: transitive
description:
name: firebase_remote_config_platform_interface
sha256: "41813ef8dfbc40ef7a59a73f9e5acef2608dbcb2933241b6c03d52e90677040f"
url: "https://pub.dev"
source: hosted
version: "1.4.16"
firebase_remote_config_web:
dependency: transitive
description:
name: firebase_remote_config_web
sha256: "089e92f333c2fb2c05c640c80fecea9d1e06dada0ba85efe34a580987ef94a0a"
url: "https://pub.dev"
source: hosted
version: "1.4.16"
flutter:
dependency: "direct main"
description: flutter
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 3.3.4+15
version: 3.3.5+16

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down Expand Up @@ -53,7 +53,6 @@ dependencies:
http: ^1.1.0
web_socket_channel: ^2.4.0
package_info_plus: ^4.2.0
firebase_remote_config: ^4.3.8


dev_dependencies:
Expand Down

0 comments on commit 7c60b6f

Please sign in to comment.