Skip to content

Commit

Permalink
chore: replace deprecated UIApplicationMain in swift
Browse files Browse the repository at this point in the history
  • Loading branch information
shihabkandil committed Aug 27, 2024
1 parent b6d6a90 commit 28df524
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
60 changes: 32 additions & 28 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
194BB7082C714B39008CEF6E /* Debug-dev */ = {
1922E3A32C7B19AA00AFE3D0 /* Debug-dev */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
Expand Down Expand Up @@ -480,7 +480,7 @@
};
name = "Debug-dev";
};
194BB7092C714B39008CEF6E /* Debug-dev */ = {
1922E3A42C7B19AA00AFE3D0 /* Debug-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
Expand All @@ -504,7 +504,7 @@
};
name = "Debug-dev";
};
194BB70A2C714B39008CEF6E /* Debug-dev */ = {
1922E3A52C7B19AA00AFE3D0 /* Debug-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 4117E90BEE6EB2A438842018 /* Pods-RunnerTests.debug-dev.xcconfig */;
buildSettings = {
Expand All @@ -522,7 +522,7 @@
};
name = "Debug-dev";
};
194BB70B2C714B41008CEF6E /* Release-dev */ = {
1922E3A62C7B19B200AFE3D0 /* Profile-dev */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
Expand Down Expand Up @@ -569,14 +569,12 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = "Release-dev";
name = "Profile-dev";
};
194BB70C2C714B41008CEF6E /* Release-dev */ = {
1922E3A72C7B19B200AFE3D0 /* Profile-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
Expand All @@ -591,17 +589,18 @@
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.example.flutter-app-template";
PRODUCT_NAME = Template;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = "Release-dev";
name = "Profile-dev";
};
194BB70D2C714B41008CEF6E /* Release-dev */ = {
1922E3A82C7B19B200AFE3D0 /* Profile-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 787E8B813BE0F857B3679814 /* Pods-RunnerTests.release-dev.xcconfig */;
baseConfigurationReference = DCCA8FFDCCFB007B36D31AEA /* Pods-RunnerTests.profile-dev.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
Expand All @@ -613,9 +612,9 @@
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = "Release-dev";
name = "Profile-dev";
};
194BB70E2C714B47008CEF6E /* Profile-dev */ = {
1922E3A92C7B19B800AFE3D0 /* Release-dev */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
Expand Down Expand Up @@ -662,12 +661,14 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = "Profile-dev";
name = "Release-dev";
};
194BB70F2C714B47008CEF6E /* Profile-dev */ = {
1922E3AA2C7B19B800AFE3D0 /* Release-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
Expand All @@ -682,17 +683,18 @@
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.example.flutter-app-template";
PRODUCT_NAME = Template;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = "Profile-dev";
name = "Release-dev";
};
194BB7102C714B47008CEF6E /* Profile-dev */ = {
1922E3AB2C7B19B800AFE3D0 /* Release-dev */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DCCA8FFDCCFB007B36D31AEA /* Pods-RunnerTests.profile-dev.xcconfig */;
baseConfigurationReference = 787E8B813BE0F857B3679814 /* Pods-RunnerTests.release-dev.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
Expand All @@ -704,7 +706,7 @@
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = "Profile-dev";
name = "Release-dev";
};
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -773,6 +775,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.example.flutter-app-template";
PRODUCT_NAME = Template;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -981,6 +984,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.example.flutter-app-template";
PRODUCT_NAME = Template;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -996,11 +1000,11 @@
isa = XCConfigurationList;
buildConfigurations = (
331C8088294A63A400263BE5 /* Debug */,
194BB70A2C714B39008CEF6E /* Debug-dev */,
1922E3A52C7B19AA00AFE3D0 /* Debug-dev */,
331C8089294A63A400263BE5 /* Release */,
194BB70D2C714B41008CEF6E /* Release-dev */,
1922E3AB2C7B19B800AFE3D0 /* Release-dev */,
331C808A294A63A400263BE5 /* Profile */,
194BB7102C714B47008CEF6E /* Profile-dev */,
1922E3A82C7B19B200AFE3D0 /* Profile-dev */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
Expand All @@ -1009,11 +1013,11 @@
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
194BB7082C714B39008CEF6E /* Debug-dev */,
1922E3A32C7B19AA00AFE3D0 /* Debug-dev */,
97C147041CF9000F007C117D /* Release */,
194BB70B2C714B41008CEF6E /* Release-dev */,
1922E3A92C7B19B800AFE3D0 /* Release-dev */,
249021D3217E4FDB00AE95B9 /* Profile */,
194BB70E2C714B47008CEF6E /* Profile-dev */,
1922E3A62C7B19B200AFE3D0 /* Profile-dev */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
Expand All @@ -1022,11 +1026,11 @@
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
194BB7092C714B39008CEF6E /* Debug-dev */,
1922E3A42C7B19AA00AFE3D0 /* Debug-dev */,
97C147071CF9000F007C117D /* Release */,
194BB70C2C714B41008CEF6E /* Release-dev */,
1922E3AA2C7B19B800AFE3D0 /* Release-dev */,
249021D4217E4FDB00AE95B9 /* Profile */,
194BB70F2C714B47008CEF6E /* Profile-dev */,
1922E3A72C7B19B200AFE3D0 /* Profile-dev */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
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

0 comments on commit 28df524

Please sign in to comment.