@hot-updater/plugin-core 0.20.0-rc.0 → 0.20.1
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 +964 -988
- package/dist/index.d.cts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +963 -989
- package/package.json +4 -4
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.
|
|
@@ -137,7 +161,7 @@ type ConfigInput = {
|
|
|
137
161
|
*
|
|
138
162
|
* @default "fingerprint"
|
|
139
163
|
*/
|
|
140
|
-
updateStrategy
|
|
164
|
+
updateStrategy: "fingerprint" | "appVersion";
|
|
141
165
|
/**
|
|
142
166
|
* The fingerprint configuration.
|
|
143
167
|
*/
|
|
@@ -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;
|
|
@@ -392,4 +417,10 @@ interface PaginatedResult {
|
|
|
392
417
|
*/
|
|
393
418
|
declare function calculatePagination(total: number, options: PaginationOptions): PaginationInfo;
|
|
394
419
|
//#endregion
|
|
395
|
-
|
|
420
|
+
//#region src/generateMinBundleId.d.ts
|
|
421
|
+
declare const generateMinBundleId: () => string;
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/createStorageKeyBuilder.d.ts
|
|
424
|
+
declare const createStorageKeyBuilder: (basePath: string | undefined) => (...args: string[]) => string;
|
|
425
|
+
//#endregion
|
|
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.
|
|
@@ -137,7 +161,7 @@ type ConfigInput = {
|
|
|
137
161
|
*
|
|
138
162
|
* @default "fingerprint"
|
|
139
163
|
*/
|
|
140
|
-
updateStrategy
|
|
164
|
+
updateStrategy: "fingerprint" | "appVersion";
|
|
141
165
|
/**
|
|
142
166
|
* The fingerprint configuration.
|
|
143
167
|
*/
|
|
@@ -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;
|
|
@@ -392,4 +417,10 @@ interface PaginatedResult {
|
|
|
392
417
|
*/
|
|
393
418
|
declare function calculatePagination(total: number, options: PaginationOptions): PaginationInfo;
|
|
394
419
|
//#endregion
|
|
395
|
-
|
|
420
|
+
//#region src/generateMinBundleId.d.ts
|
|
421
|
+
declare const generateMinBundleId: () => string;
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/createStorageKeyBuilder.d.ts
|
|
424
|
+
declare const createStorageKeyBuilder: (basePath: string | undefined) => (...args: string[]) => string;
|
|
425
|
+
//#endregion
|
|
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 };
|