Skip to content

Commit ebdf340

Browse files
authored
Fix example app compile (#807)
* macOS * iOS
1 parent 2bcaba1 commit ebdf340

File tree

11 files changed

+49
-25
lines changed

11 files changed

+49
-25
lines changed

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
D7FECD302860997500D04D1C /* Embed App Extensions */,
205205
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
206206
D9316257C44ACC699FF042FD /* [CP] Embed Pods Frameworks */,
207+
846FAB5D745587A695E025C5 /* [CP] Copy Pods Resources */,
207208
);
208209
buildRules = (
209210
);
@@ -239,7 +240,7 @@
239240
isa = PBXProject;
240241
attributes = {
241242
LastSwiftUpdateCheck = 1340;
242-
LastUpgradeCheck = 1300;
243+
LastUpgradeCheck = 1510;
243244
ORGANIZATIONNAME = "";
244245
TargetAttributes = {
245246
97C146ED1CF9000F007C117D = {
@@ -309,6 +310,23 @@
309310
shellPath = /bin/sh;
310311
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
311312
};
313+
846FAB5D745587A695E025C5 /* [CP] Copy Pods Resources */ = {
314+
isa = PBXShellScriptBuildPhase;
315+
buildActionMask = 2147483647;
316+
files = (
317+
);
318+
inputFileListPaths = (
319+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
320+
);
321+
name = "[CP] Copy Pods Resources";
322+
outputFileListPaths = (
323+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
324+
);
325+
runOnlyForDeploymentPostprocessing = 0;
326+
shellPath = /bin/sh;
327+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
328+
showEnvVarsInLog = 0;
329+
};
312330
9740EEB61CF901F6004384FC /* Run Script */ = {
313331
isa = PBXShellScriptBuildPhase;
314332
alwaysOutOfDate = 1;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<MacroExpansion>
3132
<BuildableReference
@@ -43,11 +44,13 @@
4344
buildConfiguration = "Debug"
4445
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4546
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
4648
launchStyle = "0"
4749
useCustomWorkingDirectory = "NO"
4850
ignoresPersistentStateOnLaunch = "NO"
4951
debugDocumentVersioning = "YES"
5052
debugServiceExtension = "internal"
53+
enableGPUValidationMode = "1"
5154
allowLocationSimulation = "YES">
5255
<BuildableProductRunnable
5356
runnableDebuggingMode = "0">

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66

77
override func application(

example/lib/pages/prejoin.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ class _PreJoinPageState extends State<PreJoinPage> {
289289
? VideoTrackRenderer(
290290
renderMode: VideoRenderMode.auto,
291291
_videoTrack!,
292-
fit: RTCVideoViewObjectFit
293-
.RTCVideoViewObjectFitContain,
294292
)
295293
: Container(
296294
alignment: Alignment.center,

example/lib/widgets/participant.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ abstract class _ParticipantWidgetState<T extends ParticipantWidget>
145145
? VideoTrackRenderer(
146146
renderMode: VideoRenderMode.auto,
147147
activeVideoTrack!,
148-
fit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain,
149148
)
150149
: const NoVideoWidget(),
151150
),

example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXAggregateTarget section */
@@ -204,7 +204,7 @@
204204
isa = PBXProject;
205205
attributes = {
206206
LastSwiftUpdateCheck = 0920;
207-
LastUpgradeCheck = 0930;
207+
LastUpgradeCheck = 1510;
208208
ORGANIZATIONNAME = "";
209209
TargetAttributes = {
210210
33CC10EC2044A3C60003C045 = {
@@ -257,6 +257,7 @@
257257
/* Begin PBXShellScriptBuildPhase section */
258258
3399D490228B24CF009A79C7 /* ShellScript */ = {
259259
isa = PBXShellScriptBuildPhase;
260+
alwaysOutOfDate = 1;
260261
buildActionMask = 2147483647;
261262
files = (
262263
);
@@ -405,7 +406,7 @@
405406
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
406407
GCC_WARN_UNUSED_FUNCTION = YES;
407408
GCC_WARN_UNUSED_VARIABLE = YES;
408-
MACOSX_DEPLOYMENT_TARGET = 10.11;
409+
MACOSX_DEPLOYMENT_TARGET = 10.14;
409410
MTL_ENABLE_DEBUG_INFO = NO;
410411
SDKROOT = macosx;
411412
SWIFT_COMPILATION_MODE = wholemodule;
@@ -486,7 +487,7 @@
486487
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
487488
GCC_WARN_UNUSED_FUNCTION = YES;
488489
GCC_WARN_UNUSED_VARIABLE = YES;
489-
MACOSX_DEPLOYMENT_TARGET = 10.11;
490+
MACOSX_DEPLOYMENT_TARGET = 10.14;
490491
MTL_ENABLE_DEBUG_INFO = YES;
491492
ONLY_ACTIVE_ARCH = YES;
492493
SDKROOT = macosx;
@@ -533,7 +534,7 @@
533534
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
534535
GCC_WARN_UNUSED_FUNCTION = YES;
535536
GCC_WARN_UNUSED_VARIABLE = YES;
536-
MACOSX_DEPLOYMENT_TARGET = 10.11;
537+
MACOSX_DEPLOYMENT_TARGET = 10.14;
537538
MTL_ENABLE_DEBUG_INFO = NO;
538539
SDKROOT = macosx;
539540
SWIFT_COMPILATION_MODE = wholemodule;

example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -48,6 +48,7 @@
4848
ignoresPersistentStateOnLaunch = "NO"
4949
debugDocumentVersioning = "YES"
5050
debugServiceExtension = "internal"
51+
enableGPUValidationMode = "1"
5152
allowLocationSimulation = "YES">
5253
<BuildableProductRunnable
5354
runnableDebuggingMode = "0">
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import Cocoa
22
import FlutterMacOS
33

4-
@NSApplicationMain
4+
@main
55
class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true
88
}
9+
10+
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11+
return true
12+
}
913
}

lib/src/widgets/video_track_renderer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum VideoViewFit {
4646
contain, cover,
4747
}
4848

49-
extension on VideoViewFit {
49+
extension VideoViewFitExt on VideoViewFit {
5050
rtc.RTCVideoViewObjectFit toRTCType() {
5151
if (this == VideoViewFit.cover) return rtc.RTCVideoViewObjectFit.RTCVideoViewObjectFitCover;
5252
return rtc.RTCVideoViewObjectFit.RTCVideoViewObjectFitContain;

0 commit comments

Comments
 (0)