Skip to content

Commit 27066b3

Browse files
klopez4212Terp
andcommitted
Polish mobile onboarding and profile setup sheets
Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz> Signed-off-by: kenny lopez <[email protected]>
1 parent 6e6173a commit 27066b3

39 files changed

Lines changed: 3207 additions & 172 deletions

‎mobile/ios/Runner.xcodeproj/project.pbxproj‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
4A71C0152F40B00100A17E01 /* HuddleMediaPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A71C0162F40B00100A17E01 /* HuddleMediaPlugin.swift */; };
3636
4A71C0172F40C00100A17E01 /* HuddleAudioEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A71C0182F40C00100A17E01 /* HuddleAudioEngine.swift */; };
3737
4A71C0192F40D00100A17E01 /* NativeProfileTextEditor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A71C01A2F40D00100A17E01 /* NativeProfileTextEditor.swift */; };
38+
7B81D0192F40D00100A17E01 /* NativeCommunityEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B81D01A2F40D00100A17E01 /* NativeCommunityEntry.swift */; };
39+
7B81D0192F40D00100A17E91 /* NativeProfileSetup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B81D01A2F40D00100A17E91 /* NativeProfileSetup.swift */; };
3840
4A71C01B2F40E00100A17E01 /* NativeSkinToneControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A71C01C2F40E00100A17E01 /* NativeSkinToneControl.swift */; };
3941
4A71C01D2F40F00100A17E01 /* ThemePaginationGlassControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A71C01E2F40F00100A17E01 /* ThemePaginationGlassControl.swift */; };
4042
CA8300012F50000100A17E01 /* IosMediaCarousel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA8300022F50000100A17E01 /* IosMediaCarousel.swift */; };
@@ -129,6 +131,8 @@
129131
4A71C0162F40B00100A17E01 /* HuddleMediaPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HuddleMediaPlugin.swift; sourceTree = "<group>"; };
130132
4A71C0182F40C00100A17E01 /* HuddleAudioEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HuddleAudioEngine.swift; sourceTree = "<group>"; };
131133
4A71C01A2F40D00100A17E01 /* NativeProfileTextEditor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeProfileTextEditor.swift; sourceTree = "<group>"; };
134+
7B81D01A2F40D00100A17E01 /* NativeCommunityEntry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeCommunityEntry.swift; sourceTree = "<group>"; };
135+
7B81D01A2F40D00100A17E91 /* NativeProfileSetup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeProfileSetup.swift; sourceTree = "<group>"; };
132136
4A71C01C2F40E00100A17E01 /* NativeSkinToneControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeSkinToneControl.swift; sourceTree = "<group>"; };
133137
4A71C01E2F40F00100A17E01 /* ThemePaginationGlassControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemePaginationGlassControl.swift; sourceTree = "<group>"; };
134138
CA8300022F50000100A17E01 /* IosMediaCarousel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IosMediaCarousel.swift; sourceTree = "<group>"; };
@@ -305,6 +309,8 @@
305309
C0AF00000000000000000022 /* NativePresenceMenu.swift */,
306310
C0AF00000000000000000012 /* NativeAddMembersSheet.swift */,
307311
4A71C01A2F40D00100A17E01 /* NativeProfileTextEditor.swift */,
312+
7B81D01A2F40D00100A17E01 /* NativeCommunityEntry.swift */,
313+
7B81D01A2F40D00100A17E91 /* NativeProfileSetup.swift */,
308314
4A71C01A2F40D00100A17E02 /* MeAvatarLoader.swift */,
309315
4A71C01C2F40E00100A17E01 /* NativeSkinToneControl.swift */,
310316
4A71C01E2F40F00100A17E01 /* ThemePaginationGlassControl.swift */,
@@ -647,6 +653,8 @@
647653
C0AF00000000000000000021 /* NativePresenceMenu.swift in Sources */,
648654
C0AF00000000000000000011 /* NativeAddMembersSheet.swift in Sources */,
649655
4A71C0192F40D00100A17E01 /* NativeProfileTextEditor.swift in Sources */,
656+
7B81D0192F40D00100A17E01 /* NativeCommunityEntry.swift in Sources */,
657+
7B81D0192F40D00100A17E91 /* NativeProfileSetup.swift in Sources */,
650658
4A71C0192F40D00100A17E02 /* MeAvatarLoader.swift in Sources */,
651659
4A71C01B2F40E00100A17E01 /* NativeSkinToneControl.swift in Sources */,
652660
4A71C01D2F40F00100A17E01 /* ThemePaginationGlassControl.swift in Sources */,

‎mobile/ios/Runner/AppDelegate.swift‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import os.log
3030
endpointGrantStore: endpointGrantStore,
3131
keychainAccessGroup: pushKeychainAccessGroup
3232
)
33+
private var communityKeyboardChannel: FlutterMethodChannel?
34+
private var communityKeyboardObserver: NSObjectProtocol?
3335
private var hapticsChannel: FlutterMethodChannel?
3436
private var qrScannerChannel: FlutterMethodChannel?
3537
private var inlinePhotoPickerSupportChannel: FlutterMethodChannel?
@@ -44,6 +46,8 @@ import os.log
4446
private var nativeEmojiPickerCoordinator: NativeEmojiPickerCoordinator?
4547
private var nativeAddMembersSheetCoordinator: NativeAddMembersSheetCoordinator?
4648
private var nativeConfirmationDialogCoordinator: NativeConfirmationDialogCoordinator?
49+
private var nativeProfileSetupCoordinator: NativeProfileSetupCoordinator?
50+
private var nativeCommunityEntryCoordinator: NativeCommunityEntryCoordinator?
4751
private var nativeProfileTextEditorCoordinator: NativeProfileTextEditorCoordinator?
4852
private var nativeMessageActionSurfaceSupportChannel: FlutterMethodChannel?
4953
private var identityFilePlugin: IdentityFilePlugin?
@@ -68,6 +72,20 @@ import os.log
6872
}
6973

7074
let messenger = engineBridge.applicationRegistrar.messenger()
75+
let keyboardChannel = FlutterMethodChannel(
76+
name: "buzz/community_keyboard", binaryMessenger: messenger)
77+
communityKeyboardChannel = keyboardChannel
78+
if let observer = communityKeyboardObserver {
79+
NotificationCenter.default.removeObserver(observer)
80+
}
81+
communityKeyboardObserver = NotificationCenter.default.addObserver(
82+
forName: UIResponder.keyboardWillShowNotification, object: nil, queue: .main
83+
) { _ in
84+
// Deliver after UIKit finishes preparing the keyboard in this run-loop turn.
85+
DispatchQueue.main.async {
86+
keyboardChannel.invokeMethod("willShow", arguments: nil)
87+
}
88+
}
7189
identityFilePlugin = IdentityFilePlugin(messenger: messenger)
7290
browserAuthBridge = BuzzBrowserAuthBridge(messenger: messenger)
7391
hostedHpkeChannel = FlutterMethodChannel(name: "buzz/hosted_hpke", binaryMessenger: messenger)
@@ -292,6 +310,12 @@ import os.log
292310
)?.viewController
293311
)
294312

313+
nativeProfileSetupCoordinator = NativeProfileSetupCoordinator(messenger: messenger) { [weak self] engine in
314+
let channel = FlutterMethodChannel(name: "buzz/media_upload", binaryMessenger: engine.binaryMessenger)
315+
channel.setMethodCallHandler { [weak self] call, result in self?.handleMediaUploadMethodCall(call, result: result) }
316+
}
317+
nativeCommunityEntryCoordinator = NativeCommunityEntryCoordinator(messenger: messenger)
318+
295319
let nativeProfileTextEditorRegistrar = engineBridge.pluginRegistry.registrar(
296320
forPlugin: "BuzzNativeProfileTextEditor"
297321
)

0 commit comments

Comments
 (0)