@vnejs/plugins.platform.android 0.1.1 → 0.1.3
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/dist/modules/android.d.ts +2 -2
- package/dist/modules/android.js +2 -2
- package/dist/types.d.ts +5 -7
- package/package.json +2 -4
- package/src/modules/android.ts +2 -2
- package/src/types.ts +5 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
2
2
|
import type { AndroidPluginConstants, AndroidPluginEvents, AndroidPluginParams, AndroidPluginSettings } from "../types.js";
|
|
3
|
-
export declare class Android extends
|
|
3
|
+
export declare class Android extends ModuleCore<AndroidPluginEvents, AndroidPluginConstants, AndroidPluginSettings, AndroidPluginParams> {
|
|
4
4
|
name: string;
|
|
5
5
|
subscribe: () => void;
|
|
6
6
|
onStarted: () => Promise<void>;
|
package/dist/modules/android.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App } from "@capacitor/app";
|
|
2
2
|
import { SplashScreen } from "@capacitor/splash-screen";
|
|
3
|
-
import {
|
|
4
|
-
export class Android extends
|
|
3
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
4
|
+
export class Android extends ModuleCore {
|
|
5
5
|
name = "android";
|
|
6
6
|
subscribe = () => {
|
|
7
7
|
if (this.PARAMS.PLATFORMS.CURRENT_PLATFORM !== this.CONST.PLATFORMS.MOBILE)
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type AndroidPluginSettings = VnePluginSettingsMapRegistry;
|
|
7
|
-
export type AndroidPluginParams = VnePluginParamsMapRegistry & Record<PlatformsPluginName, PlatformsParams>;
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
+
export type AndroidPluginEvents = ModuleCoreEvents;
|
|
3
|
+
export type AndroidPluginConstants = ModuleCoreConstants;
|
|
4
|
+
export type AndroidPluginSettings = ModuleCoreSettings;
|
|
5
|
+
export type AndroidPluginParams = ModuleCoreParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.platform.android",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,9 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@capacitor/app": "~8.0.0",
|
|
37
37
|
"@capacitor/splash-screen": "~8.0.0",
|
|
38
|
-
"@vnejs/module": "~0.1.0",
|
|
39
|
-
"@vnejs/plugins.core.platforms.contract": "~0.1.0",
|
|
40
|
-
"@vnejs/plugins.core.system.contract": "~0.1.0",
|
|
38
|
+
"@vnejs/module.core": "~0.1.0",
|
|
41
39
|
"@vnejs/shared": "~0.1.0"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
package/src/modules/android.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { App } from "@capacitor/app";
|
|
2
2
|
import { SplashScreen } from "@capacitor/splash-screen";
|
|
3
|
-
import {
|
|
3
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
4
4
|
|
|
5
5
|
import type { AndroidPluginConstants, AndroidPluginEvents, AndroidPluginParams, AndroidPluginSettings } from "../types.js";
|
|
6
6
|
|
|
7
|
-
export class Android extends
|
|
7
|
+
export class Android extends ModuleCore<AndroidPluginEvents, AndroidPluginConstants, AndroidPluginSettings, AndroidPluginParams> {
|
|
8
8
|
name = "android";
|
|
9
9
|
|
|
10
10
|
subscribe = () => {
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Constants as PlatformsConstants, Params as PlatformsParams, PluginName as PlatformsPluginName } from "@vnejs/plugins.core.platforms.contract";
|
|
3
|
-
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/plugins.core.system.contract";
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
4
2
|
|
|
5
|
-
export type AndroidPluginEvents =
|
|
3
|
+
export type AndroidPluginEvents = ModuleCoreEvents;
|
|
6
4
|
|
|
7
|
-
export type AndroidPluginConstants =
|
|
5
|
+
export type AndroidPluginConstants = ModuleCoreConstants;
|
|
8
6
|
|
|
9
|
-
export type AndroidPluginSettings =
|
|
7
|
+
export type AndroidPluginSettings = ModuleCoreSettings;
|
|
10
8
|
|
|
11
|
-
export type AndroidPluginParams =
|
|
9
|
+
export type AndroidPluginParams = ModuleCoreParams;
|