keel-module-push
v0.1.0
Published
推送通知 (push notifications: JPush / 个推) for Keel apps — scaffold; native side is a ping/pong stub.
Maintainers
Readme
keel-module-push
推送通知 (push notifications: JPush / 个推) for Keel apps. Scaffold — the native side is a ping/pong stub; replace it with real push-SDK calls. See keel-module-wechat for a complete worked example.
Delivery
| Platform | Wrapper | Upstream SDK |
|----------|---------|--------------|
| iOS | SPM source target (Package.swift, @KeelModule macro) — keel-module autolink --emit=spm | declare the CocoaPods-only push SDK (e.g. JPush / GTSDK) in module.yml ios.pods → host Podfile via --emit=pods ("pod + spm dual") |
| Android | AAR gradle subproject — keel-module autolink --emit=gradle | a normal implementation(...) in android/build.gradle.kts |
Install
keel install keel-module-pushKeel's autolinker discovers the module via its module.yml and wires both
platforms on the next build — no manual Podfile / Gradle edits.
Usage (current stub)
import { ping } from 'keel-module-push';
console.log(await ping('hello')); // → "pong: hello"Development
keel-module validate # check module.yml against actual source pathsLicense
Apache-2.0 — see LICENSE in the parent monorepo.
