despia-native 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -68
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
# Despia SDK
|
|
2
2
|
|
|
3
|
-
JavaScript SDK for [Despia](https://despia.com) -
|
|
3
|
+
JavaScript SDK for [Despia](https://despia.com) - Transform your web app into a native iOS & Android app without writing Swift or Kotlin. This npm package provides command queuing and variable watching for seamless integration with Despia's GPU-accelerated native runtime, enabling access to 25+ device APIs through simple JavaScript calls.
|
|
4
4
|
|
|
5
5
|
## About Despia
|
|
6
6
|
|
|
7
|
-
Despia
|
|
7
|
+
Despia bridges the gap between web and native mobile development. Build your app using the web technologies you already know, then deploy it as a truly native application to the App Store and Google Play - complete with hardware acceleration, offline support, and deep OS integration.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Our visual editor allows you to configure native widgets, shortcuts, and dynamic app behaviors without touching Xcode or Android Studio. Ship to both app stores with one-click deployment, automatic CI/CD pipelines, and over-the-air updates. Export clean, human-readable Swift and Kotlin source code anytime - you own everything, no vendor lock-in.
|
|
10
10
|
|
|
11
|
-
**
|
|
11
|
+
**Go from web app to app store in a weekend - with full native capabilities.**
|
|
12
12
|
|
|
13
13
|
### Key Features:
|
|
14
|
-
- **
|
|
15
|
-
- **Visual
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
19
|
-
- **One-Click
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
- **Single Codebase** -
|
|
25
|
-
|
|
26
|
-
###
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
- **
|
|
14
|
+
- **Universal Framework Support** - Works with React, Vue, Angular, Svelte, vanilla JS, or any web framework
|
|
15
|
+
- **Visual Configuration** - Set up native features through an intuitive interface
|
|
16
|
+
- **Zero Native Coding** - Access device APIs without writing Swift or Kotlin
|
|
17
|
+
- **Source Code Export** - Get complete Xcode and Android Studio projects you can modify
|
|
18
|
+
- **True Ownership** - Full access to generated code, no restrictions
|
|
19
|
+
- **One-Click Publishing** - Direct deployment to App Store & Google Play
|
|
20
|
+
- **Automated Pipeline** - Built-in CI/CD with code signing and provisioning
|
|
21
|
+
- **OTA Updates** - Push updates instantly without app store review
|
|
22
|
+
- **Performance** - 60fps GPU-accelerated rendering
|
|
23
|
+
- **Device API Access** - NFC, HealthKit, Siri, RevenueCat, and 20+ more
|
|
24
|
+
- **Single Codebase** - Maintain one project for iOS, Android, and web
|
|
25
|
+
|
|
26
|
+
### Native Device Features:
|
|
27
|
+
- **App Links & Deep Linking** - Universal links and app-to-app communication
|
|
28
|
+
- **Widgets & App Clips** - Home screen widgets and instant app experiences
|
|
29
|
+
- **In-App Purchases** - RevenueCat integration for subscriptions and payments
|
|
30
|
+
- **Push Notifications** - Local and remote notifications with rich media
|
|
31
|
+
- **Camera & Media** - Camera access, photo library, and file management
|
|
32
|
+
- **Biometric Authentication** - Face ID, Touch ID, and fingerprint
|
|
33
|
+
- **Location Services** - Foreground and background GPS tracking
|
|
34
|
+
- **Contacts** - Address book access with proper permissions
|
|
35
|
+
- **Haptic Feedback** - Tactile responses for user interactions
|
|
36
|
+
- **App Analytics** - Version tracking, bundle IDs, device identifiers
|
|
37
|
+
- **Screenshots** - Programmatic screen capture
|
|
38
|
+
- **Status Bar** - Dynamic styling and visibility control
|
|
39
|
+
- **Privacy Controls** - IDFA tracking and permission management
|
|
40
|
+
- **Share Sheets** - Native sharing UI
|
|
41
|
+
- **UI Controls** - Loading indicators, navigation bars, dynamic layouts
|
|
42
|
+
- **Plus 8+ additional native capabilities**
|
|
43
43
|
|
|
44
44
|
## Installation
|
|
45
45
|
|
|
@@ -47,40 +47,6 @@ Ship your app to the App Store and Google Play Store in just one click with auto
|
|
|
47
47
|
npm install despia-native
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
## 🚀 **Build in Any Framework → Make it Native**
|
|
51
|
-
|
|
52
|
-
**Step 1:** Build your web app in any framework you prefer (React, Vue, Angular, vanilla JS, etc.)
|
|
53
|
-
|
|
54
|
-
**Step 2:** Connect your project to Despia editor:
|
|
55
|
-
- **Remote URL:** Add your project's remote URL (gets updated over-the-air automatically)
|
|
56
|
-
- **Upload Project:** Upload your project files directly to the editor
|
|
57
|
-
|
|
58
|
-
**Step 3:** Use Despia to transform it into a native app with full device access
|
|
59
|
-
|
|
60
|
-
**Step 4:** This npm package gives you access to all native functionalities and native data
|
|
61
|
-
|
|
62
|
-
## 📱 **Access 25+ Native Device Features**
|
|
63
|
-
|
|
64
|
-
With Despia, your web app gets **full native device access** without any native development:
|
|
65
|
-
|
|
66
|
-
- **🔐 Biometric Check** - Touch ID, Face ID, fingerprint authentication
|
|
67
|
-
- **📍 Location Services** - Background GPS tracking with native permissions
|
|
68
|
-
- **📷 Camera & Photos** - Direct camera access and photo library
|
|
69
|
-
- **👥 Contacts** - Read device contacts with proper permissions
|
|
70
|
-
- **📳 Haptic Feedback** - 5 types of native vibrations
|
|
71
|
-
- **🔔 Push Notifications** - Native notification system + OneSignal remote push
|
|
72
|
-
- **💳 In-App Purchases** - RevenueCat integration for subscriptions & purchases
|
|
73
|
-
- **🎯 Widgets & Shortcuts** - iOS widgets and Shortcuts
|
|
74
|
-
- **📱 App Store Features** - Version info, bundle IDs, device UUIDs
|
|
75
|
-
- **🎨 Native UI** - Status bar styling, spinners, fullscreen mode
|
|
76
|
-
- **📤 Share & Export** - Native share sheets and file downloads
|
|
77
|
-
- **🔄 Privacy Controls** - App reset and tracking disable
|
|
78
|
-
- **📡 NFC Access** - Near Field Communication for contactless interactions
|
|
79
|
-
- **🎤 Siri Integration** - Voice commands and shortcuts
|
|
80
|
-
- **❤️ HealthKit & Google Fit** - Health data integration
|
|
81
|
-
- **💾 Offline Support** - Offline database and data persistence
|
|
82
|
-
- **And many more native features!**
|
|
83
|
-
|
|
84
50
|
## Usage
|
|
85
51
|
|
|
86
52
|
### Basic Despia Command Execution
|
|
@@ -478,7 +444,7 @@ const deviceInfo: any = despia.deviceInfo;
|
|
|
478
444
|
|
|
479
445
|
## Integration with Despia
|
|
480
446
|
|
|
481
|
-
Despia operates through a streamlined protocol handler system, allowing you to invoke native features using the global `window.despia` object. This npm package is the JavaScript SDK that makes your web app communicate with Despia's native runtime. The SDK provides:
|
|
447
|
+
Despia operates through a streamlined protocol handler system, allowing you to invoke native features using the global `window.despia` object. This npm package is the JavaScript SDK that makes your web app communicate with Despia's native runtime. The SDK provides:
|
|
482
448
|
|
|
483
449
|
- **Command Queuing** - Sequential execution of Despia commands via `window.despia` setter
|
|
484
450
|
- **Variable Watching** - Async monitoring of response variables
|