@hot-updater/plugin-core 0.20.0 → 0.20.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.
- package/dist/index.cjs +7302 -9757
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +7311 -9766
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -80,6 +80,30 @@ interface BuildPlugin {
|
|
|
80
80
|
}>;
|
|
81
81
|
name: string;
|
|
82
82
|
}
|
|
83
|
+
interface PlatformConfig {
|
|
84
|
+
/**
|
|
85
|
+
* Android platform configuration.
|
|
86
|
+
*/
|
|
87
|
+
android?: {
|
|
88
|
+
/**
|
|
89
|
+
* Android string resource paths.
|
|
90
|
+
*
|
|
91
|
+
* @default ["android/app/src/main/res/values/strings.xml"]
|
|
92
|
+
*/
|
|
93
|
+
stringResourcePaths?: string[];
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* iOS platform configuration.
|
|
97
|
+
*/
|
|
98
|
+
ios?: {
|
|
99
|
+
/**
|
|
100
|
+
* iOS info.plist paths.
|
|
101
|
+
*
|
|
102
|
+
* @default ["ios/\*\/Info.plist"]
|
|
103
|
+
*/
|
|
104
|
+
infoPlistPaths?: string[];
|
|
105
|
+
};
|
|
106
|
+
}
|
|
83
107
|
interface NativeBuildArgs {
|
|
84
108
|
/**
|
|
85
109
|
* Android specific configuration.
|
|
@@ -167,6 +191,7 @@ type ConfigInput = {
|
|
|
167
191
|
*/
|
|
168
192
|
port?: number;
|
|
169
193
|
};
|
|
194
|
+
platform?: PlatformConfig;
|
|
170
195
|
nativeBuild?: NativeBuildArgs;
|
|
171
196
|
build: (args: BasePluginArgs) => Promise<BuildPlugin> | BuildPlugin;
|
|
172
197
|
storage: (args: BasePluginArgs) => Promise<StoragePlugin> | StoragePlugin;
|
|
@@ -398,4 +423,4 @@ declare const generateMinBundleId: () => string;
|
|
|
398
423
|
//#region src/createStorageKeyBuilder.d.ts
|
|
399
424
|
declare const createStorageKeyBuilder: (basePath: string | undefined) => (...args: string[]) => string;
|
|
400
425
|
//#endregion
|
|
401
|
-
export { AbstractDatabasePlugin, BaseDatabaseUtils, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuildType, BuiltIns, type Bundle, ConfigBuilder, ConfigInput, ConfigResponse, DatabasePlugin, DatabasePluginHooks, HasMultipleCallSignatures, HotUpdaterConfigOptions, IConfigBuilder, ImportInfo, NativeBuildArgs, PaginatedResult, PaginationInfo, PaginationOptions, type Platform, Primitive, ProviderConfig, RequiredDeep, StoragePlugin, StoragePluginHooks, banner, calculatePagination, copyDirToTmp, createBlobDatabasePlugin, createDatabasePlugin, createStorageKeyBuilder, createZip, createZipTargetFiles, generateMinBundleId, getCwd, link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate };
|
|
426
|
+
export { AbstractDatabasePlugin, BaseDatabaseUtils, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuildType, BuiltIns, type Bundle, ConfigBuilder, ConfigInput, ConfigResponse, DatabasePlugin, DatabasePluginHooks, HasMultipleCallSignatures, HotUpdaterConfigOptions, IConfigBuilder, ImportInfo, NativeBuildArgs, PaginatedResult, PaginationInfo, PaginationOptions, type Platform, PlatformConfig, Primitive, ProviderConfig, RequiredDeep, StoragePlugin, StoragePluginHooks, banner, calculatePagination, copyDirToTmp, createBlobDatabasePlugin, createDatabasePlugin, createStorageKeyBuilder, createZip, createZipTargetFiles, generateMinBundleId, getCwd, link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate };
|
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,30 @@ interface BuildPlugin {
|
|
|
80
80
|
}>;
|
|
81
81
|
name: string;
|
|
82
82
|
}
|
|
83
|
+
interface PlatformConfig {
|
|
84
|
+
/**
|
|
85
|
+
* Android platform configuration.
|
|
86
|
+
*/
|
|
87
|
+
android?: {
|
|
88
|
+
/**
|
|
89
|
+
* Android string resource paths.
|
|
90
|
+
*
|
|
91
|
+
* @default ["android/app/src/main/res/values/strings.xml"]
|
|
92
|
+
*/
|
|
93
|
+
stringResourcePaths?: string[];
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* iOS platform configuration.
|
|
97
|
+
*/
|
|
98
|
+
ios?: {
|
|
99
|
+
/**
|
|
100
|
+
* iOS info.plist paths.
|
|
101
|
+
*
|
|
102
|
+
* @default ["ios/\*\/Info.plist"]
|
|
103
|
+
*/
|
|
104
|
+
infoPlistPaths?: string[];
|
|
105
|
+
};
|
|
106
|
+
}
|
|
83
107
|
interface NativeBuildArgs {
|
|
84
108
|
/**
|
|
85
109
|
* Android specific configuration.
|
|
@@ -167,6 +191,7 @@ type ConfigInput = {
|
|
|
167
191
|
*/
|
|
168
192
|
port?: number;
|
|
169
193
|
};
|
|
194
|
+
platform?: PlatformConfig;
|
|
170
195
|
nativeBuild?: NativeBuildArgs;
|
|
171
196
|
build: (args: BasePluginArgs) => Promise<BuildPlugin> | BuildPlugin;
|
|
172
197
|
storage: (args: BasePluginArgs) => Promise<StoragePlugin> | StoragePlugin;
|
|
@@ -398,4 +423,4 @@ declare const generateMinBundleId: () => string;
|
|
|
398
423
|
//#region src/createStorageKeyBuilder.d.ts
|
|
399
424
|
declare const createStorageKeyBuilder: (basePath: string | undefined) => (...args: string[]) => string;
|
|
400
425
|
//#endregion
|
|
401
|
-
export { AbstractDatabasePlugin, BaseDatabaseUtils, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuildType, BuiltIns, type Bundle, ConfigBuilder, ConfigInput, ConfigResponse, DatabasePlugin, DatabasePluginHooks, HasMultipleCallSignatures, HotUpdaterConfigOptions, IConfigBuilder, ImportInfo, NativeBuildArgs, PaginatedResult, PaginationInfo, PaginationOptions, type Platform, Primitive, ProviderConfig, RequiredDeep, StoragePlugin, StoragePluginHooks, banner, calculatePagination, copyDirToTmp, createBlobDatabasePlugin, createDatabasePlugin, createStorageKeyBuilder, createZip, createZipTargetFiles, generateMinBundleId, getCwd, link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate };
|
|
426
|
+
export { AbstractDatabasePlugin, BaseDatabaseUtils, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuildType, BuiltIns, type Bundle, ConfigBuilder, ConfigInput, ConfigResponse, DatabasePlugin, DatabasePluginHooks, HasMultipleCallSignatures, HotUpdaterConfigOptions, IConfigBuilder, ImportInfo, NativeBuildArgs, PaginatedResult, PaginationInfo, PaginationOptions, type Platform, PlatformConfig, Primitive, ProviderConfig, RequiredDeep, StoragePlugin, StoragePluginHooks, banner, calculatePagination, copyDirToTmp, createBlobDatabasePlugin, createDatabasePlugin, createStorageKeyBuilder, createZip, createZipTargetFiles, generateMinBundleId, getCwd, link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate };
|