설치
@feralin/electron 0.1.0은(는) npm에 배포되었습니다. 아래 명령으로 패키지 관리자에서 설치하세요.
npm install @feralin/node @feralin/electron첫 사용
import { app, BrowserWindow, ipcMain } from "electron";
import { createFeralinMain } from "@feralin/electron/main";
app.whenReady().then(() => {
createFeralinMain({
ipcMain,
app, // kapanışta kuyruk gönderilir, sürüm ve dil olaya eklenir
projectKey: "pk_live_…",
collectUrl: "https://collect.example.com",
allowedOrigins: ["app://arayuz"],
});
new BrowserWindow({ webPreferences: { preload: PRELOAD_YOLU, contextIsolation: true, sandbox: true } });
});import { contextBridge, ipcRenderer } from "electron";
import { exposeFeralin } from "@feralin/electron/preload";
exposeFeralin({ contextBridge, ipcRenderer });npx esbuild preload.ts --bundle --platform=node --format=cjs --external:electron --outfile=preload.bundle.cjsimport { getFeralin } from "@feralin/electron/renderer";
const feralin = getFeralin();
await feralin.setConsent({ analytics: true, advertising: false });
await feralin.track("project_opened");코드 예시는 sdks/electron/README.md 파일에서 그대로 가져오므로 안에 있는 주석은 터키어일 수 있습니다. 프로젝트 키는 대시보드에서 직접 만듭니다.
기능
| 기능 | 상태 |
|---|---|
| 이벤트 전송 | 지원함 |
| 일괄 전송 | 일부 지원 |
| 동의 관리 | 지원함 |
| 신원 식별 | 일부 지원 |
| 어트리뷰션 | 일부 지원 |
| 딥링크 | 일부 지원 |
| 매출 | 일부 지원 |
| 오류 수집 | 일부 지원 |
| 세션 리플레이 | 계획됨 |
| 트레이싱 | 계획됨 |
검증 체인
| 단계 | 상태 |
|---|---|
| 소스 | 통과 |
| 빌드 | 통과 |
| 테스트 | 통과 |
| 레지스트리 배포 | 통과 |
| 클린 설치 | 통과 |
| 이벤트 수신 확인 | 통과 |
| 문서 | 통과 |
| Super Admin 증빙 | 시작하지 않음 |
통과는 로컬 근거를 뜻합니다. 소스, 빌드, 테스트가 실행되었다는 의미입니다. 레지스트리 배포와 Super Admin 증빙은 별도 단계이며, 이 단계를 통과하지 않은 SDK는 준비 완료로 보지 않습니다.