Skip to content

Commit 24cc08e

Browse files
committed
Update audio_soloud
1 parent b5f83ee commit 24cc08e

File tree

31 files changed

+838
-778
lines changed

31 files changed

+838
-778
lines changed

audio_soloud/codelab_rebuild.yaml

Lines changed: 46 additions & 70 deletions
Large diffs are not rendered by default.

audio_soloud/step_02/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ migrate_working_dir/
2727
**/doc/api/
2828
**/ios/Flutter/.last_build_id
2929
.dart_tool/
30-
.flutter-plugins
3130
.flutter-plugins-dependencies
3231
.pub-cache/
3332
.pub/
3433
/build/
34+
/coverage/
3535

3636
# Symbolication related
3737
app.*.symbols

audio_soloud/step_02/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

audio_soloud/step_02/linux/runner/my_application.cc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ struct _MyApplication {
1414

1515
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
1616

17+
// Called when first Flutter frame received.
18+
static void first_frame_cb(MyApplication* self, FlView *view)
19+
{
20+
gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view)));
21+
}
22+
1723
// Implements GApplication::activate.
1824
static void my_application_activate(GApplication* application) {
1925
MyApplication* self = MY_APPLICATION(application);
@@ -48,15 +54,23 @@ static void my_application_activate(GApplication* application) {
4854
}
4955

5056
gtk_window_set_default_size(window, 1280, 720);
51-
gtk_widget_show(GTK_WIDGET(window));
5257

5358
g_autoptr(FlDartProject) project = fl_dart_project_new();
5459
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
5560

5661
FlView* view = fl_view_new(project);
62+
GdkRGBA background_color;
63+
// Background defaults to black, override it here if necessary, e.g. #00000000 for transparent.
64+
gdk_rgba_parse(&background_color, "#000000");
65+
fl_view_set_background_color(view, &background_color);
5766
gtk_widget_show(GTK_WIDGET(view));
5867
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
5968

69+
// Show the window when Flutter renders.
70+
// Requires the view to be realized so we can start rendering.
71+
g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb), self);
72+
gtk_widget_realize(GTK_WIDGET(view));
73+
6074
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
6175

6276
gtk_widget_grab_focus(GTK_WIDGET(view));

audio_soloud/step_02/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2828
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2929
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
30-
BC50800E55D33632105DDB46 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F42E44ADD82193F73D87C981 /* Pods_RunnerTests.framework */; };
31-
F684D8CE2F6D6E6C9B726759 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77BB04D86B744C92330E435D /* Pods_Runner.framework */; };
30+
4CB151B0E3C98E0CB88BFCDA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B6C22A20B898587D1E52925 /* Pods_Runner.framework */; };
31+
857FE96832F56A0D6D4E0CF8 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B4EB08660D465360EF033E4 /* Pods_RunnerTests.framework */; };
3232
/* End PBXBuildFile section */
3333

3434
/* Begin PBXContainerItemProxy section */
@@ -62,9 +62,10 @@
6262
/* End PBXCopyFilesBuildPhase section */
6363

6464
/* Begin PBXFileReference section */
65-
0DED8159C1B69ACE48CB77CC /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
66-
2C7DBA54C1E26C42248C0388 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
67-
2D825DFCBF7EA2798EEFB15C /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
65+
16D1E54DF40BC80FC298B5D6 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
66+
1B4EB08660D465360EF033E4 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
67+
2B6C22A20B898587D1E52925 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
68+
2F348556D2C8C5B385A446E3 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
6869
331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
6970
331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
7071
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
@@ -81,29 +82,28 @@
8182
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
8283
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
8384
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
84-
77BB04D86B744C92330E435D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8585
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
86+
803CAC42127268C3F36B4AAB /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
87+
84CF20D5A575504E5DD77FBE /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
8688
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
87-
E9EB317BC1B31BD9525B3237 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
88-
F42E44ADD82193F73D87C981 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
89-
F590D705A24230CDB2D77C51 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
90-
FD184153A11730B6740A597A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
89+
DBE498BD6419F6A9FE13092C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
90+
EA19C19537B1FDF0D69F61C6 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
9191
/* End PBXFileReference section */
9292

9393
/* Begin PBXFrameworksBuildPhase section */
9494
331C80D2294CF70F00263BE5 /* Frameworks */ = {
9595
isa = PBXFrameworksBuildPhase;
9696
buildActionMask = 2147483647;
9797
files = (
98-
BC50800E55D33632105DDB46 /* Pods_RunnerTests.framework in Frameworks */,
98+
857FE96832F56A0D6D4E0CF8 /* Pods_RunnerTests.framework in Frameworks */,
9999
);
100100
runOnlyForDeploymentPostprocessing = 0;
101101
};
102102
33CC10EA2044A3C60003C045 /* Frameworks */ = {
103103
isa = PBXFrameworksBuildPhase;
104104
buildActionMask = 2147483647;
105105
files = (
106-
F684D8CE2F6D6E6C9B726759 /* Pods_Runner.framework in Frameworks */,
106+
4CB151B0E3C98E0CB88BFCDA /* Pods_Runner.framework in Frameworks */,
107107
);
108108
runOnlyForDeploymentPostprocessing = 0;
109109
};
@@ -137,7 +137,7 @@
137137
331C80D6294CF71000263BE5 /* RunnerTests */,
138138
33CC10EE2044A3C60003C045 /* Products */,
139139
D73912EC22F37F3D000D13A0 /* Frameworks */,
140-
D558A340C49EF9F31B514D71 /* Pods */,
140+
803D38F54F95663524DFCDA2 /* Pods */,
141141
);
142142
sourceTree = "<group>";
143143
};
@@ -185,15 +185,15 @@
185185
path = Runner;
186186
sourceTree = "<group>";
187187
};
188-
D558A340C49EF9F31B514D71 /* Pods */ = {
188+
803D38F54F95663524DFCDA2 /* Pods */ = {
189189
isa = PBXGroup;
190190
children = (
191-
FD184153A11730B6740A597A /* Pods-Runner.debug.xcconfig */,
192-
E9EB317BC1B31BD9525B3237 /* Pods-Runner.release.xcconfig */,
193-
2C7DBA54C1E26C42248C0388 /* Pods-Runner.profile.xcconfig */,
194-
2D825DFCBF7EA2798EEFB15C /* Pods-RunnerTests.debug.xcconfig */,
195-
F590D705A24230CDB2D77C51 /* Pods-RunnerTests.release.xcconfig */,
196-
0DED8159C1B69ACE48CB77CC /* Pods-RunnerTests.profile.xcconfig */,
191+
DBE498BD6419F6A9FE13092C /* Pods-Runner.debug.xcconfig */,
192+
EA19C19537B1FDF0D69F61C6 /* Pods-Runner.release.xcconfig */,
193+
2F348556D2C8C5B385A446E3 /* Pods-Runner.profile.xcconfig */,
194+
16D1E54DF40BC80FC298B5D6 /* Pods-RunnerTests.debug.xcconfig */,
195+
803CAC42127268C3F36B4AAB /* Pods-RunnerTests.release.xcconfig */,
196+
84CF20D5A575504E5DD77FBE /* Pods-RunnerTests.profile.xcconfig */,
197197
);
198198
name = Pods;
199199
path = Pods;
@@ -202,8 +202,8 @@
202202
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
203203
isa = PBXGroup;
204204
children = (
205-
77BB04D86B744C92330E435D /* Pods_Runner.framework */,
206-
F42E44ADD82193F73D87C981 /* Pods_RunnerTests.framework */,
205+
2B6C22A20B898587D1E52925 /* Pods_Runner.framework */,
206+
1B4EB08660D465360EF033E4 /* Pods_RunnerTests.framework */,
207207
);
208208
name = Frameworks;
209209
sourceTree = "<group>";
@@ -215,7 +215,7 @@
215215
isa = PBXNativeTarget;
216216
buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
217217
buildPhases = (
218-
98A716720135B2F212808A45 /* [CP] Check Pods Manifest.lock */,
218+
F4A6B39F99348A00505C51A6 /* [CP] Check Pods Manifest.lock */,
219219
331C80D1294CF70F00263BE5 /* Sources */,
220220
331C80D2294CF70F00263BE5 /* Frameworks */,
221221
331C80D3294CF70F00263BE5 /* Resources */,
@@ -234,13 +234,13 @@
234234
isa = PBXNativeTarget;
235235
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
236236
buildPhases = (
237-
8304F70AF2469789D7B16900 /* [CP] Check Pods Manifest.lock */,
237+
71A9534595A5E24587254BA5 /* [CP] Check Pods Manifest.lock */,
238238
33CC10E92044A3C60003C045 /* Sources */,
239239
33CC10EA2044A3C60003C045 /* Frameworks */,
240240
33CC10EB2044A3C60003C045 /* Resources */,
241241
33CC110E2044A8840003C045 /* Bundle Framework */,
242242
3399D490228B24CF009A79C7 /* ShellScript */,
243-
5CE26052020ACD9B9990E92E /* [CP] Embed Pods Frameworks */,
243+
062A86308B13F79F1D210BC6 /* [CP] Embed Pods Frameworks */,
244244
);
245245
buildRules = (
246246
);
@@ -323,6 +323,23 @@
323323
/* End PBXResourcesBuildPhase section */
324324

325325
/* Begin PBXShellScriptBuildPhase section */
326+
062A86308B13F79F1D210BC6 /* [CP] Embed Pods Frameworks */ = {
327+
isa = PBXShellScriptBuildPhase;
328+
buildActionMask = 2147483647;
329+
files = (
330+
);
331+
inputFileListPaths = (
332+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
333+
);
334+
name = "[CP] Embed Pods Frameworks";
335+
outputFileListPaths = (
336+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
337+
);
338+
runOnlyForDeploymentPostprocessing = 0;
339+
shellPath = /bin/sh;
340+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
341+
showEnvVarsInLog = 0;
342+
};
326343
3399D490228B24CF009A79C7 /* ShellScript */ = {
327344
isa = PBXShellScriptBuildPhase;
328345
alwaysOutOfDate = 1;
@@ -361,24 +378,7 @@
361378
shellPath = /bin/sh;
362379
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
363380
};
364-
5CE26052020ACD9B9990E92E /* [CP] Embed Pods Frameworks */ = {
365-
isa = PBXShellScriptBuildPhase;
366-
buildActionMask = 2147483647;
367-
files = (
368-
);
369-
inputFileListPaths = (
370-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
371-
);
372-
name = "[CP] Embed Pods Frameworks";
373-
outputFileListPaths = (
374-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
375-
);
376-
runOnlyForDeploymentPostprocessing = 0;
377-
shellPath = /bin/sh;
378-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
379-
showEnvVarsInLog = 0;
380-
};
381-
8304F70AF2469789D7B16900 /* [CP] Check Pods Manifest.lock */ = {
381+
71A9534595A5E24587254BA5 /* [CP] Check Pods Manifest.lock */ = {
382382
isa = PBXShellScriptBuildPhase;
383383
buildActionMask = 2147483647;
384384
files = (
@@ -400,7 +400,7 @@
400400
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
401401
showEnvVarsInLog = 0;
402402
};
403-
98A716720135B2F212808A45 /* [CP] Check Pods Manifest.lock */ = {
403+
F4A6B39F99348A00505C51A6 /* [CP] Check Pods Manifest.lock */ = {
404404
isa = PBXShellScriptBuildPhase;
405405
buildActionMask = 2147483647;
406406
files = (
@@ -473,7 +473,7 @@
473473
/* Begin XCBuildConfiguration section */
474474
331C80DB294CF71000263BE5 /* Debug */ = {
475475
isa = XCBuildConfiguration;
476-
baseConfigurationReference = 2D825DFCBF7EA2798EEFB15C /* Pods-RunnerTests.debug.xcconfig */;
476+
baseConfigurationReference = 16D1E54DF40BC80FC298B5D6 /* Pods-RunnerTests.debug.xcconfig */;
477477
buildSettings = {
478478
BUNDLE_LOADER = "$(TEST_HOST)";
479479
CURRENT_PROJECT_VERSION = 1;
@@ -488,7 +488,7 @@
488488
};
489489
331C80DC294CF71000263BE5 /* Release */ = {
490490
isa = XCBuildConfiguration;
491-
baseConfigurationReference = F590D705A24230CDB2D77C51 /* Pods-RunnerTests.release.xcconfig */;
491+
baseConfigurationReference = 803CAC42127268C3F36B4AAB /* Pods-RunnerTests.release.xcconfig */;
492492
buildSettings = {
493493
BUNDLE_LOADER = "$(TEST_HOST)";
494494
CURRENT_PROJECT_VERSION = 1;
@@ -503,7 +503,7 @@
503503
};
504504
331C80DD294CF71000263BE5 /* Profile */ = {
505505
isa = XCBuildConfiguration;
506-
baseConfigurationReference = 0DED8159C1B69ACE48CB77CC /* Pods-RunnerTests.profile.xcconfig */;
506+
baseConfigurationReference = 84CF20D5A575504E5DD77FBE /* Pods-RunnerTests.profile.xcconfig */;
507507
buildSettings = {
508508
BUNDLE_LOADER = "$(TEST_HOST)";
509509
CURRENT_PROJECT_VERSION = 1;

audio_soloud/step_02/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
flutter_soloud: ^3.1.10
12+
flutter_soloud: ^3.2.2
1313
logging: ^1.3.0
1414

1515
dev_dependencies:

audio_soloud/step_03/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ migrate_working_dir/
2727
**/doc/api/
2828
**/ios/Flutter/.last_build_id
2929
.dart_tool/
30-
.flutter-plugins
3130
.flutter-plugins-dependencies
3231
.pub-cache/
3332
.pub/
3433
/build/
34+
/coverage/
3535

3636
# Symbolication related
3737
app.*.symbols

0 commit comments

Comments
 (0)