Skip to content

chore(*): maui sdk#1

Merged
Alexays merged 21 commits into
masterfrom
feat-maui
May 22, 2026
Merged

chore(*): maui sdk#1
Alexays merged 21 commits into
masterfrom
feat-maui

Conversation

@Alexays
Copy link
Copy Markdown
Contributor

@Alexays Alexays commented May 22, 2026

No description provided.

Alexays added 21 commits May 22, 2026 08:57
…en fixes

- Add XCFramework download step in CI (ci.yml, publish-maui.yml)
- Change <Content> to <None> for xcframework glob to avoid MSBuild
  processing binary framework files as build items (LocalDefiningProjectFullPath error)
- Add using System; and [BaseType(typeof(NSObject))] to ApiDefinitions.cs
- Add ScreebClassPtr.cs to provide missing class_ptr for bgen static class
- Replace MainThread.InvokeOnMainThread → NSRunLoop.Main.BeginInvokeOnMainThread
- Add NativeScreeb alias to resolve naming conflict in Screeb.iOS.cs
- Gitignore native/ios binaries (downloaded at build time)
Replace 18x repeated TaskCompletionSource+dispatch+try/catch pattern with:
- OnMain(Action) -> Task<bool?> for simple fire-and-forget calls
- OnMain(Action<TCS<bool?>>) -> Task<bool?> for calls with custom result/cleanup
- OnMain<T>(Action<TCS<T?>>) where T : class -> Task<T?> for reference-type results

Android: 344 -> 184 lines (-46%)
iOS: 325 -> 166 lines (-49%)
- Switch InitSdk from PluginInit to InitSdk(Context, ...) so the
  SDK properly registers ActivityLifecycleCallbacks and can attach
  its WebView overlay to the active window (fixes 'null null' log)
- Move Android init from OnStart() to OnResume() with _sdkInitialized
  guard so init runs after the Activity window is ready
- Remove unused ToInitOptionsMap helper (replaced by native InitOptions)
- Add BackgroundColor=White to MainPage to prevent grey/black screen
Without a MauiApplication subclass, the Android Application has no
MauiContext and MauiAppCompatActivity cannot bootstrap the rendering
pipeline, resulting in a grey/blank screen.

Also revert PluginInit (was incorrectly changed to InitSdk) and
restore ToInitOptionsMap helper. Revert OnResume back to OnStart.
- Add MainApplication.cs and minSdk 24 requirement for Android
- Add AppDelegate.cs requirement for iOS
- Show OnStart init pattern in App.xaml.cs
- Add ScreebInitOptions and ScreebHooks usage examples
- Add full API method reference table
- Fix example README: net8.0 → net9.0, MauiProgram.cs → App.xaml.cs
@Alexays Alexays merged commit ed134bb into master May 22, 2026
3 checks passed
@Alexays Alexays deleted the feat-maui branch May 22, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant