@onairosofficial/onairos-capacitor 0.1.0
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/LICENSE +17 -0
- package/README.md +44 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Zion Darko
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Onairos Capacitor
|
|
2
|
+
|
|
3
|
+
Dedicated Capacitor entry point for the Onairos SDK. This package delegates to
|
|
4
|
+
the maintained `onairos/capacitor` implementation, giving Capacitor projects a
|
|
5
|
+
clear package to install without duplicating the SDK.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install onairos-capacitor onairos @capacitor/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Install the native integrations required by your application, then synchronize
|
|
14
|
+
the Capacitor project:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @capgo/capacitor-social-login @onairosofficial/capacitor-llm-onairos
|
|
18
|
+
npx cap sync
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import { initializeApiKey, OnairosButton } from "onairos-capacitor";
|
|
25
|
+
|
|
26
|
+
await initializeApiKey({
|
|
27
|
+
apiKey: "YOUR_ONAIROS_KEY",
|
|
28
|
+
environment: "production",
|
|
29
|
+
platform: "capacitor-ios"
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
See the [Onairos documentation](https://docs.onairos.io/) for the required iOS
|
|
34
|
+
and Android native configuration.
|
|
35
|
+
|
|
36
|
+
## Requirements
|
|
37
|
+
|
|
38
|
+
- Node.js 20–24
|
|
39
|
+
- Capacitor 8
|
|
40
|
+
- Onairos 8.4.8 or newer within major version 8
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
Apache-2.0
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "onairos/capacitor";
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "onairos/capacitor";
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@onairosofficial/onairos-capacitor",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Dedicated Capacitor package entry point for the Onairos SDK.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Zion Darko",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./index.js",
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./index.d.ts",
|
|
13
|
+
"import": "./index.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "node --test",
|
|
26
|
+
"pack:check": "npm pack --dry-run"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@capacitor/core": "^8.0.0",
|
|
30
|
+
"onairos": "^8.4.8"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=20 <25"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/zd819/onairos-capacitor.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/zd819/onairos-capacitor/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://docs.onairos.io/",
|
|
43
|
+
"keywords": [
|
|
44
|
+
"onairos",
|
|
45
|
+
"capacitor",
|
|
46
|
+
"ios",
|
|
47
|
+
"android",
|
|
48
|
+
"identity",
|
|
49
|
+
"authentication",
|
|
50
|
+
"personalization"
|
|
51
|
+
],
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public",
|
|
54
|
+
"provenance": true
|
|
55
|
+
}
|
|
56
|
+
}
|