tauri-plugin-pushups 0.2.0

Ships the Android module and the iOS push entitlement and background mode of the pushups crate into a Tauri app
docs.rs failed to build tauri-plugin-pushups-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

tauri-plugin-pushups

Puts what pushups needs outside Rust into a Tauri 2 app. On Android its build adds the crate's Gradle module, holding the FCM and UnifiedPush services, to the app's Gradle project, and names the app's library for it. On iOS it adds the aps-environment entitlement as development when the app's entitlements have none, which Xcode replaces with the value of the provisioning profile it signs with, and the remote-notification background mode to UIBackgroundModes, keeping the modes the project already lists. A macOS app adds com.apple.developer.aps-environment to its own entitlements.

The app adds the plugin to its builder and uses pushups from Rust as any other app does, calling install before the builder runs, then set_handler and register.

fn with_push<R: tauri::Runtime>(builder: tauri::Builder<R>) -> tauri::Builder<R> {
    if let Err(error) = pushups::install(pushups::Config::new()) {
        eprintln!("no push on this target: {error}");
    }
    builder.plugin(tauri_plugin_pushups::init())
}