@vnejs/plugins.platform.android 0.1.0 → 0.1.2

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.
@@ -1,6 +1,6 @@
1
- import { Module } from "@vnejs/module";
1
+ import { ModuleCore } from "@vnejs/module.core";
2
2
  import type { AndroidPluginConstants, AndroidPluginEvents, AndroidPluginParams, AndroidPluginSettings } from "../types.js";
3
- export declare class Android extends Module<AndroidPluginEvents, AndroidPluginConstants, AndroidPluginSettings, AndroidPluginParams> {
3
+ export declare class Android extends ModuleCore<AndroidPluginEvents, AndroidPluginConstants, AndroidPluginSettings, AndroidPluginParams> {
4
4
  name: string;
5
5
  subscribe: () => void;
6
6
  onStarted: () => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { App } from "@capacitor/app";
2
2
  import { SplashScreen } from "@capacitor/splash-screen";
3
- import { Module } from "@vnejs/module";
4
- export class Android extends Module {
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 { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
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";
4
- export type AndroidPluginEvents = VnePluginEventsMapRegistry & Record<SystemPluginName, SystemSubscribeEvents>;
5
- export type AndroidPluginConstants = VnePluginConstantsMapRegistry & Record<PlatformsPluginName, PlatformsConstants>;
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.0",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,11 +33,9 @@
33
33
  "@vnejs/plugins.platform.android.contract": "~0.1.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@capacitor/app": "~5.0.8",
37
- "@capacitor/splash-screen": "~5.0.8",
38
- "@vnejs/module": "~0.1.0",
39
- "@vnejs/plugins.core.platforms.contract": "~0.1.0",
40
- "@vnejs/plugins.core.system.contract": "~0.1.0",
36
+ "@capacitor/app": "~8.0.0",
37
+ "@capacitor/splash-screen": "~8.0.0",
38
+ "@vnejs/module.core": "~0.1.0",
41
39
  "@vnejs/shared": "~0.1.0"
42
40
  },
43
41
  "devDependencies": {
@@ -1,10 +1,10 @@
1
1
  import { App } from "@capacitor/app";
2
2
  import { SplashScreen } from "@capacitor/splash-screen";
3
- import { Module } from "@vnejs/module";
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 Module<AndroidPluginEvents, AndroidPluginConstants, AndroidPluginSettings, AndroidPluginParams> {
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 { VnePluginConstantsMapRegistry, VnePluginEventsMapRegistry, VnePluginParamsMapRegistry, VnePluginSettingsMapRegistry } from "@vnejs/shared";
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 = VnePluginEventsMapRegistry & Record<SystemPluginName, SystemSubscribeEvents>;
3
+ export type AndroidPluginEvents = ModuleCoreEvents;
6
4
 
7
- export type AndroidPluginConstants = VnePluginConstantsMapRegistry & Record<PlatformsPluginName, PlatformsConstants>;
5
+ export type AndroidPluginConstants = ModuleCoreConstants;
8
6
 
9
- export type AndroidPluginSettings = VnePluginSettingsMapRegistry;
7
+ export type AndroidPluginSettings = ModuleCoreSettings;
10
8
 
11
- export type AndroidPluginParams = VnePluginParamsMapRegistry & Record<PlatformsPluginName, PlatformsParams>;
9
+ export type AndroidPluginParams = ModuleCoreParams;