-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from SpryRocks/merge-cap2
Merge cap2
- Loading branch information
Showing
13 changed files
with
1,067 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip | ||
distributionUrl=https://services.gradle.org/distributions/gradle-7.0-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@spryrocks/capacitor-socket-connection-plugin", | ||
"version": "2.1.9", | ||
"version": "2.3.0-alpha.5", | ||
"description": "Capacitor Socket Connection Plugin", | ||
"main": "dist/plugin.cjs.js", | ||
"module": "dist/esm/index.js", | ||
|
@@ -36,14 +36,14 @@ | |
"clean": "rimraf ./dist" | ||
}, | ||
"dependencies": { | ||
"@spryrocks/logger-plugin": "^0.1.15-alpha.1" | ||
"@spryrocks/logger-plugin": "^0.1.17-alpha.2" | ||
}, | ||
"devDependencies": { | ||
"@capacitor/core": "^2.4.7", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.28.1", | ||
"typescript": "^5.1.6", | ||
"@spryrocks/eslint-config": "^0.2.8-alpha.0" | ||
"rimraf": "^6.0.1", | ||
"rollup": "^4.21.2", | ||
"typescript": "^5.5.4", | ||
"@spryrocks/eslint-config": "^0.3.0-alpha.2" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": "^2.4.7" | ||
|
@@ -55,5 +55,6 @@ | |
"android": { | ||
"src": "android" | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {Plugins} from '@capacitor/core'; | ||
|
||
type CapPluginListener = (event: unknown) => void; | ||
|
||
export type Plugin = { | ||
addListener: (name: string, listener: CapPluginListener) => void; | ||
}; | ||
|
||
export {Plugins}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './Plugin'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
export interface SocketOptions {} | ||
|
||
export type SocketState = | ||
| 'initial' | ||
| 'opening' | ||
| 'opened' | ||
| 'closing' | ||
| 'closed' | ||
| 'error'; | ||
|
||
export type SocketData = Uint8Array; | ||
|
||
export type OnStateChanged = (state: SocketState) => void; | ||
|
||
export type OnSocketData = (data: SocketData) => void; | ||
export type OnSocketClose = () => void; | ||
export type OnSocketError = (error: unknown) => void; |
Oops, something went wrong.