miniprogram-ci 2.1.6 → 2.1.8
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/CHANGELOG.md +2 -0
- package/README.md +2 -0
- package/dist/@types/ci/cos-upload.d.ts +5 -0
- package/dist/@types/common/cloud-api/src/apis/tcb/tcb.apis.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/transactor.d.ts +1 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/billing.validations.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/common.validations.d.ts +8 -1
- package/dist/@types/common/cloud-api/src/transaction/validations/tcb.validations.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/validations/validations.d.ts +1 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/config/url.config.d.ts +2 -0
- package/dist/@types/index.d.ts +2 -1
- package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +1 -0
- package/dist/@types/modules/createSummer.d.ts +0 -1
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +4 -2
- package/dist/@types/project/baseProject.d.ts +2 -0
- package/dist/@types/schema/@types/appjson.d.ts +1 -1
- package/dist/@types/types/ci.d.ts +2 -0
- package/dist/@types/types/devtools.d.ts +2 -0
- package/dist/@types/types/miniapp/index.d.ts +1 -0
- package/dist/@types/utils/cosUpload.d.ts +37 -0
- package/dist/@types/utils/miniapp-builder.d.ts +1 -0
- package/dist/@types/utils/miniappJson.d.ts +124 -82
- package/dist/@types/utils/officialDonutPlugin.d.ts +3 -0
- package/dist/@types/utils/packOptionsHelper.d.ts +3 -1
- package/dist/@types/utils/tools.d.ts +2 -0
- package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
- package/dist/ci/cos-upload.js +1 -1
- package/dist/ci/miniapp/archive.js +1 -1
- package/dist/ci/miniapp/checkBuildArgument.js +1 -1
- package/dist/ci/miniapp/upload.js +1 -1
- package/dist/ci/upload.js +1 -1
- package/dist/common/cloud-api/src/apis/tcb/tcb.apis.js +1 -1
- package/dist/common/cloud-api/src/transaction/contracts/tcb.contracts.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/billing.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/common.validations.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/tcb.validations.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/validations.js +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/url.config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/corecompiler/original/npm/packnpm.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/createSummer.js +1 -1
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +19 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/index.js +4 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/util.js +1134 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +94 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +93 -0
- package/dist/modules/index.js +1 -1
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
- package/dist/modules/nativecompiler/ios/index.js +1 -1
- package/dist/project/baseProject.js +1 -1
- package/dist/schema/dist/app.js +2 -1
- package/dist/schema/dist/ext.js +4 -1
- package/dist/schema/dist/game.js +1 -1
- package/dist/schema/dist/page.js +3 -1
- package/dist/schema/dist/plugin.js +1 -1
- package/dist/schema/dist/pluginpage.js +1 -1
- package/dist/schema/dist/projectconfig.js +1 -1
- package/dist/schema/dist/projectprivateconfig.js +1 -1
- package/dist/schema/dist/sitemap.js +1 -1
- package/dist/schema/dist/theme.js +1 -1
- package/dist/static/scripts/resignIpa +17 -1
- package/dist/utils/cosUpload.js +1 -0
- package/dist/utils/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/officialDonutPlugin.js +1 -0
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/tools.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,3 +5,8 @@ export declare function uploadByCos(gzipBuffer: Buffer, commitUrl: string, proje
|
|
|
5
5
|
body?: any;
|
|
6
6
|
uploadCOSCostTime?: number;
|
|
7
7
|
}>;
|
|
8
|
+
export declare function uploadByCosSafely(buffer: Buffer, commitUrl: string, project: IProject, robot: any): Promise<{
|
|
9
|
+
fallback: boolean;
|
|
10
|
+
body?: any;
|
|
11
|
+
uploadCOSCostTime?: number;
|
|
12
|
+
}>;
|
|
@@ -170,7 +170,6 @@ export declare function tcbModifyClsTopic(opts: IAPITCBModifyClsTopicOptions): P
|
|
|
170
170
|
export declare function tcbResourceFreeze(opts: IAPITCBResourceFreezeOptions): Promise<IAPITCBResourceFreezeResult>;
|
|
171
171
|
export declare function tcbSetBaasRenewFlag(opts: IAPITCBSetBaasRenewFlagOptions): Promise<IAPITCBSetBaasRenewFlagResult>;
|
|
172
172
|
export declare function tcbDescribeBaasChangePay(opts: IAPITCBDescribeBaasChangePayOptions): Promise<IAPITCBDescribeBaasChangePayResult>;
|
|
173
|
-
export declare function tcbCreateFreeEnvByActivity(opts: IAPITCBCreateFreeEnvByActivityOptions): Promise<IAPITCBCreateFreeEnvByActivityResult>;
|
|
174
173
|
export declare function tcbCreateHeadlessService(opts: IAPITCBCreateHeadlessServiceOptions): Promise<IAPITCBCreateHeadlessServiceResult>;
|
|
175
174
|
export declare function tcbDescribeHeadlessEndUsers(opts: IAPITCBDescribeHeadlessEndUsersOptions): Promise<IAPITCBDescribeHeadlessEndUsersResult>;
|
|
176
175
|
export declare function tcbDescribeHeadlessServiceList(opts: IAPITCBDescribeHeadlessServiceListOptions): Promise<IAPITCBDescribeHeadlessServiceListResult>;
|
|
@@ -178,3 +177,10 @@ export declare function tcbModifyHeadlessEndUser(opts: IAPITCBModifyHeadlessEndU
|
|
|
178
177
|
export declare function tcbDescribeOperationAppList(opts: IAPITCBDescribeOperationAppListOptions): Promise<IAPITCBDescribeOperationAppListResult>;
|
|
179
178
|
export declare function tcbGetFunctionFlowList(opts: IAPITCBGetFunctionFlowListOptions): Promise<IAPITCBGetFunctionFlowListResult>;
|
|
180
179
|
export declare function tcbSetBillRenewFlag(opts: IAPITCBSetBillRenewFlagOptions): Promise<IAPITCBSetBillRenewFlagResult>;
|
|
180
|
+
export declare function tcbGetInvoiceFileUrlList(opts: IAPITCBGetInvoiceFileUrlListOptions): Promise<IAPITCBGetInvoiceFileUrlListResult>;
|
|
181
|
+
export declare function tcbDescribeOperationEnvInfo(opts: IAPITCBDescribeOperationEnvInfoOptions): Promise<IAPITCBDescribeOperationEnvInfoResult>;
|
|
182
|
+
export declare function tcbGetStaticFileStoreHidden(opts: IAPITCBGetStaticFileStoreHiddenOptions): Promise<IAPITCBGetStaticFileStoreHiddenResult>;
|
|
183
|
+
export declare function tcbDescribeVouchersByActivity(opts: IAPITCBDescribeVouchersByActivityOptions): Promise<IAPITCBDescribeVouchersByActivityResult>;
|
|
184
|
+
export declare function tcbDescribeUserPromotionalActivity(opts: IAPITCBDescribeUserPromotionalActivityOptions): Promise<IAPITCBDescribeUserPromotionalActivityResult>;
|
|
185
|
+
export declare function tcbCreateFreeEnvByActivity(opts: IAPITCBCreateFreeEnvByActivityOptions): Promise<IAPITCBCreateFreeEnvByActivityResult>;
|
|
186
|
+
export declare function tcbDescribeTcbModules(opts: IAPITCBDescribeTcbModulesOptions): Promise<IAPITCBDescribeTcbModulesResult>;
|
|
@@ -173,7 +173,6 @@ export declare const tcbModifyClsTopicContract: Factory<ITCTCBModifyClsTopicInpu
|
|
|
173
173
|
export declare const tcbResourceFreezeContract: Factory<ITCTCBResourceFreezeInput, ITCTCBResourceFreezeOutput>;
|
|
174
174
|
export declare const tcbSetBaasRenewFlagContract: Factory<ITCTCBSetBaasRenewFlagInput, ITCTCBSetBaasRenewFlagOutput>;
|
|
175
175
|
export declare const tcbDescribeBaasChangePayContract: Factory<ITCTCBDescribeBaasChangePayInput, ITCTCBDescribeBaasChangePayOutput>;
|
|
176
|
-
export declare const tcbCreateFreeEnvByActivityContract: Factory<ITCTCBCreateFreeEnvByActivityInput, ITCTCBCreateFreeEnvByActivityOutput>;
|
|
177
176
|
export declare const tcbCreateHeadlessServiceContract: Factory<ITCTCBCreateHeadlessServiceInput, ITCTCBCreateHeadlessServiceOutput>;
|
|
178
177
|
export declare const tcbDescribeHeadlessEndUsersContract: Factory<ITCTCBDescribeHeadlessEndUsersInput, ITCTCBDescribeHeadlessEndUsersOutput>;
|
|
179
178
|
export declare const tcbDescribeHeadlessServiceListContract: Factory<ITCTCBDescribeHeadlessServiceListInput, ITCTCBDescribeHeadlessServiceListOutput>;
|
|
@@ -181,3 +180,10 @@ export declare const tcbModifyHeadlessEndUserContract: Factory<ITCTCBModifyHeadl
|
|
|
181
180
|
export declare const tcbDescribeOperationAppListContract: Factory<ITCTCBDescribeOperationAppListInput, ITCTCBDescribeOperationAppListOutput>;
|
|
182
181
|
export declare const tcbGetFunctionFlowListContract: Factory<ITCTCBGetFunctionFlowListInput, ITCTCBGetFunctionFlowListOutput>;
|
|
183
182
|
export declare const tcbSetBillRenewFlagContract: Factory<ITCTCBSetBillRenewFlagInput, ITCTCBSetBillRenewFlagOutput>;
|
|
183
|
+
export declare const tcbGetInvoiceFileUrlListContract: Factory<ITCTCBGetInvoiceFileUrlListInput, ITCTCBGetInvoiceFileUrlListOutput>;
|
|
184
|
+
export declare const tcbDescribeOperationEnvInfoContract: Factory<ITCTCBDescribeOperationEnvInfoInput, ITCTCBDescribeOperationEnvInfoOutput>;
|
|
185
|
+
export declare const tcbGetStaticFileStoreHiddenContract: Factory<ITCTCBGetStaticFileStoreHiddenInput, ITCTCBGetStaticFileStoreHiddenOutput>;
|
|
186
|
+
export declare const tcbDescribeUserPromotionalActivityContract: Factory<ITCTCBDescribeUserPromotionalActivityInput, ITCTCBDescribeUserPromotionalActivityOutput>;
|
|
187
|
+
export declare const tcbDescribeVouchersByActivityContract: Factory<ITCTCBDescribeVouchersByActivityInput, ITCTCBDescribeVouchersByActivityOutput>;
|
|
188
|
+
export declare const tcbCreateFreeEnvByActivityContract: Factory<ITCTCBCreateFreeEnvByActivityInput, ITCTCBCreateFreeEnvByActivityOutput>;
|
|
189
|
+
export declare const tcbDescribeTcbModulesContract: Factory<ITCTCBDescribeTcbModulesInput, ITCTCBDescribeTcbModulesOutput>;
|
|
@@ -62,7 +62,6 @@ export declare const cloudBaseRunKvPriorityValidation: v.DeepImmutableJSONValida
|
|
|
62
62
|
export declare const objectKvValidation: v.DeepImmutableJSONValidation;
|
|
63
63
|
export declare const cloudBaseRunServerVersionItemValidation: v.DeepImmutableJSONValidation;
|
|
64
64
|
export declare const cloudBaseRunVersionPodValidation: v.DeepImmutableJSONValidation;
|
|
65
|
-
export declare const kvPairValidation: v.DeepImmutableJSONValidation;
|
|
66
65
|
export declare const cloudRunExceptionLinkInfoValidation: v.DeepImmutableJSONValidation;
|
|
67
66
|
export declare const cloudRunExceptionAdviceValidation: v.DeepImmutableJSONValidation;
|
|
68
67
|
export declare const cloudBaseGwapiValidation: v.DeepImmutableJSONValidation;
|
|
@@ -116,3 +115,11 @@ export declare const wedaAutomationValidation: v.DeepImmutableJSONValidation;
|
|
|
116
115
|
export declare const functionFlowInfoValidation: v.DeepImmutableJSONValidation;
|
|
117
116
|
export declare const resourceOperateReqValidation: v.DeepImmutableJSONValidation;
|
|
118
117
|
export declare const resourceOperateRspValidation: v.DeepImmutableJSONValidation;
|
|
118
|
+
export declare const operationAppBaseInfoValidation: v.DeepImmutableJSONValidation;
|
|
119
|
+
export declare const operationEnvInfoValidation: v.DeepImmutableJSONValidation;
|
|
120
|
+
export declare const kvPairValidation: v.DeepImmutableJSONValidation;
|
|
121
|
+
export declare const voucherInfoValidation: v.DeepImmutableJSONValidation;
|
|
122
|
+
export declare const promotionalActivityValidation: v.DeepImmutableJSONValidation;
|
|
123
|
+
export declare const goodsInfoValidation: v.DeepImmutableJSONValidation;
|
|
124
|
+
export declare const createAuthValidation: v.DeepImmutableJSONValidation;
|
|
125
|
+
export declare const tcbModuleInfoValidation: v.DeepImmutableJSONValidation;
|
|
@@ -178,7 +178,6 @@ export declare const tcbModifyClsTopicOutputValidation: v.DeepImmutableJSONValid
|
|
|
178
178
|
export declare const tcbResourceFreezeOutputValidation: v.DeepImmutableJSONValidation;
|
|
179
179
|
export declare const tcbSetBaasRenewFlagOutputValidation: v.DeepImmutableJSONValidation;
|
|
180
180
|
export declare const tcbDescribeBaasChangePayOutputValidation: v.DeepImmutableJSONValidation;
|
|
181
|
-
export declare const tcbCreateFreeEnvByActivityOutputValidation: v.DeepImmutableJSONValidation;
|
|
182
181
|
export declare const tcbCreateHeadlessServiceOutputValidation: v.DeepImmutableJSONValidation;
|
|
183
182
|
export declare const tcbDescribeHeadlessEndUsersOutputValidation: v.DeepImmutableJSONValidation;
|
|
184
183
|
export declare const tcbDescribeHeadlessServiceListOutputValidation: v.DeepImmutableJSONValidation;
|
|
@@ -186,3 +185,10 @@ export declare const tcbModifyHeadlessEndUserOutputValidation: v.DeepImmutableJS
|
|
|
186
185
|
export declare const tcbDescribeOperationAppListOutputValidation: v.DeepImmutableJSONValidation;
|
|
187
186
|
export declare const tcbGetFunctionFlowListOutputValidation: v.DeepImmutableJSONValidation;
|
|
188
187
|
export declare const tcbSetBillRenewFlagOutputValidation: v.DeepImmutableJSONValidation;
|
|
188
|
+
export declare const tcbGetInvoiceFileUrlListOutputValidation: v.DeepImmutableJSONValidation;
|
|
189
|
+
export declare const tcbDescribeOperationEnvInfoOutputValidation: v.DeepImmutableJSONValidation;
|
|
190
|
+
export declare const tcbGetStaticFileStoreHiddenOutputValidation: v.DeepImmutableJSONValidation;
|
|
191
|
+
export declare const tcbDescribeUserPromotionalActivityOutputValidation: v.DeepImmutableJSONValidation;
|
|
192
|
+
export declare const tcbDescribeVouchersByActivityOutputValidation: v.DeepImmutableJSONValidation;
|
|
193
|
+
export declare const tcbCreateFreeEnvByActivityOutputValidation: v.DeepImmutableJSONValidation;
|
|
194
|
+
export declare const tcbDescribeTcbModulesOutputValidation: v.DeepImmutableJSONValidation;
|
|
@@ -9,6 +9,8 @@ export declare const TRANSLATE_FILENAME: string;
|
|
|
9
9
|
export declare const GET_CLOUD_API_SIGNATURE: string;
|
|
10
10
|
export declare const GET_UPLOAD_TOKEN: string;
|
|
11
11
|
export declare const GET_ASYNC_RESULT: string;
|
|
12
|
+
export declare const GET_UPLOAD_INFO: string;
|
|
13
|
+
export declare const GET_UPLOAD_SIGN: string;
|
|
12
14
|
export declare const UPLOAD_JS_SERVER: string;
|
|
13
15
|
export declare const GET_LATEST_VERSION: string;
|
|
14
16
|
export declare const cloudAPIAgentURL: string;
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ import * as miniappBuilder from './utils/miniapp-builder';
|
|
|
22
22
|
import packOptionsHelper from './utils/packOptionsHelper';
|
|
23
23
|
import MiniAppI18N from './utils/miniAppI18N';
|
|
24
24
|
import * as MiniAppJson from './utils/miniappJson';
|
|
25
|
+
import * as cosUpload from './utils/cosUpload';
|
|
25
26
|
export { BaseProject, CIProject as Project, CIProject, DevtoolsProject, WebProject, PreCompileProject, };
|
|
26
27
|
export { BaseCoreCompiler, OriginalCompiler, SummerCompiler, ICompilerStatus, ICompileOptions, Builder, };
|
|
27
28
|
export * from './modules/corecompiler/original';
|
|
28
29
|
export declare const workletVersion: any;
|
|
29
|
-
export { getWhiteExtList, proxy, locales, isHexColor, DefaultProjectAttr, JSON_CONTENT_ERR, compileTypeConfig, generateMD5, mkdirSync, normalizePath, checkIsInSubPackage, getHelperOutputPath, isValidHelperFunc, getHelperName, getHelperContent, getHelperDeps, getBabelHelperVersion, getBabelHelperDepMap, escapeQuot, escapeScript, getSummerPluginConfig, packOptionsHelper, };
|
|
30
|
+
export { getWhiteExtList, proxy, locales, isHexColor, DefaultProjectAttr, JSON_CONTENT_ERR, compileTypeConfig, generateMD5, mkdirSync, normalizePath, checkIsInSubPackage, getHelperOutputPath, isValidHelperFunc, getHelperName, getHelperContent, getHelperDeps, getBabelHelperVersion, getBabelHelperDepMap, escapeQuot, escapeScript, getSummerPluginConfig, packOptionsHelper, cosUpload, };
|
|
30
31
|
export { adroidDeviceUtils, iosDeviceUtils, miniappBuilder, };
|
|
31
32
|
export { MiniAppI18N, MiniAppJson, };
|
|
@@ -2,6 +2,7 @@ import { MiniProgramBaseConf } from './baseconf';
|
|
|
2
2
|
import { Recorder } from '../../../../utils/progressRecorder';
|
|
3
3
|
export declare class AppConf extends MiniProgramBaseConf {
|
|
4
4
|
private app;
|
|
5
|
+
private ext;
|
|
5
6
|
private packages;
|
|
6
7
|
private pages;
|
|
7
8
|
private comps;
|
|
@@ -10,6 +11,7 @@ export declare class AppConf extends MiniProgramBaseConf {
|
|
|
10
11
|
destroy(): void;
|
|
11
12
|
getConf(recorder: Recorder): Promise<{
|
|
12
13
|
app: any;
|
|
14
|
+
ext: any;
|
|
13
15
|
packages: {
|
|
14
16
|
[k: string]: any;
|
|
15
17
|
};
|
|
@@ -39,6 +39,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
39
39
|
private getConf;
|
|
40
40
|
getPackageFiles(graphId: MiniProgramDevtools.GraphId, root: string, resultType?: MiniProgramCore.IResultType, useCache?: boolean): Promise<FileInfo[]>;
|
|
41
41
|
_getPackageFiles: (graphId: import("../../types").MiniProgramCI.ProjectType, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
|
|
42
|
+
private isMiniappPlatformInclude;
|
|
42
43
|
private filterFactory;
|
|
43
44
|
private getCodeByFileList;
|
|
44
45
|
getExtJSON(): Promise<ExtJSON.IExtJSON>;
|
|
@@ -12,7 +12,6 @@ export declare class SummerCompilerFactory {
|
|
|
12
12
|
private releaseLastCompiler;
|
|
13
13
|
private ensureCacheDir;
|
|
14
14
|
private createSummerCompiler;
|
|
15
|
-
private getFileFilter;
|
|
16
15
|
private getSummerOptions;
|
|
17
16
|
}
|
|
18
17
|
export declare const summerCompilerFactory: SummerCompilerFactory;
|
|
@@ -39,7 +39,9 @@ declare class buildCloudManager {
|
|
|
39
39
|
updateExtendedSdk(bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, sdkPath: string, arch: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, debugInfo: IMiniApp.IDebugInfo | undefined, recorder: Recorder): Promise<void>;
|
|
40
40
|
updatePrivacyInfo(demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder): Promise<void>;
|
|
41
41
|
updatePlugin(demoIpaPath: string, pluginDirList: IMiniApp.IIOSPluginDir[], projectPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, miniappCacheDirPath: string, isPublish: boolean, CFBundleVersion: string, recorder: Recorder): Promise<void>;
|
|
42
|
-
copyUserResourcePathIntoPlugins(pluginId: string, projectPath: string, configResourcePath: string,
|
|
42
|
+
copyUserResourcePathIntoPlugins(pluginId: string, projectPath: string, configResourcePath: string, configResourceObject: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
}, distFrameworkPath: string, recorder: Recorder): void;
|
|
43
45
|
copyResourcesToMainBundle(srcFrameworksPath: string, distFrameworkPath: string): void;
|
|
44
46
|
prepareAppexProfileConfig(pluginDirList: IMiniApp.IIOSPluginDir[], iosMiniappJson: MiniProgramCore.IStringKeyMap, projectPath: string, miniappCacheDirPath: string, isPublish: boolean, CFBundleVersion: string, CFBundleShortVersionString: string, recorder: Recorder): false | {
|
|
45
47
|
[appexName: string]: {
|
|
@@ -52,7 +54,7 @@ declare class buildCloudManager {
|
|
|
52
54
|
changeInfoplistBundleId(infoPlistPath: string, newBundleId: string): any;
|
|
53
55
|
changeInfoplistBundleVersion(infoPlistPath: string, bundleVersion: string, bundleShortVersion: string): any;
|
|
54
56
|
getEntitlements(bindAppInfo: MiniProgramCore.IStringKeyMap, _demoIpaPath: string, _iosMiniappJson: MiniProgramCore.IStringKeyMap, _recorder: Recorder): Promise<{
|
|
55
|
-
'com.apple.developer.associated-domains':
|
|
57
|
+
'com.apple.developer.associated-domains': string;
|
|
56
58
|
}>;
|
|
57
59
|
useTpush(iosMiniappJson: MiniProgramCore.IStringKeyMap): any;
|
|
58
60
|
buildCloud(args: IMiniApp.IIOSBuildCloudArgs, recorder: Recorder): Promise<IBuildCloudResult>;
|
|
@@ -10,6 +10,7 @@ type ProjectEventEmitter = MiniProgramSummer.TypedEventEmitter<{
|
|
|
10
10
|
export declare abstract class BaseProject extends WaitAble implements MiniProgramCore.IProject {
|
|
11
11
|
protected _nameMappingFromDevtools?: MiniProgramCore.IStringKeyMap<string> | undefined;
|
|
12
12
|
protected _projectPath: string;
|
|
13
|
+
protected _injectedPages: string[];
|
|
13
14
|
protected _projectArchitecture: MiniProgramCore.IProjectArchitecture;
|
|
14
15
|
protected _miniprogramRoot: string;
|
|
15
16
|
protected _pluginRoot: string;
|
|
@@ -28,6 +29,7 @@ export declare abstract class BaseProject extends WaitAble implements MiniProgra
|
|
|
28
29
|
protected _fileSet: Set<string>;
|
|
29
30
|
event: ProjectEventEmitter;
|
|
30
31
|
get projectPath(): string;
|
|
32
|
+
get injectedPages(): string[];
|
|
31
33
|
get projectArchitecture(): import("../types").MiniProgramCI.IProjectArchitecture;
|
|
32
34
|
get srcPath(): string;
|
|
33
35
|
get pluginSrcPath(): string;
|
|
@@ -38,7 +38,7 @@ export interface IWindow {
|
|
|
38
38
|
renderingMode?: 'seperated' | 'mixed';
|
|
39
39
|
restartStrategy?: 'homePage' | 'homePageAndLatestPage';
|
|
40
40
|
visualEffectInBackground?: 'hidden' | 'none';
|
|
41
|
-
initialRenderingCache?: 'static' | 'dynamic';
|
|
41
|
+
initialRenderingCache?: 'static' | 'dynamic' | 'capture';
|
|
42
42
|
handleWebviewPreload?: 'static' | 'manual' | 'auto';
|
|
43
43
|
homeButton?: boolean;
|
|
44
44
|
}
|
|
@@ -44,6 +44,7 @@ export declare namespace MiniProgramCI {
|
|
|
44
44
|
appid: string;
|
|
45
45
|
type: ProjectType;
|
|
46
46
|
projectPath: string;
|
|
47
|
+
injectedPages: string[];
|
|
47
48
|
privateKey: string;
|
|
48
49
|
miniprogramRoot: string;
|
|
49
50
|
pluginRoot: string;
|
|
@@ -101,6 +102,7 @@ export declare namespace MiniProgramCI {
|
|
|
101
102
|
autoPrefixWXSS?: boolean;
|
|
102
103
|
disableUseStrict?: boolean;
|
|
103
104
|
compileWorklet?: boolean;
|
|
105
|
+
targetPlatform?: string;
|
|
104
106
|
}
|
|
105
107
|
interface ITaskStatus {
|
|
106
108
|
id: string;
|
|
@@ -5,6 +5,7 @@ export declare namespace MiniProgramDevtools {
|
|
|
5
5
|
type IBuildLogType = 'doing' | 'success' | 'error' | 'info' | 'warn';
|
|
6
6
|
interface IAppConf {
|
|
7
7
|
app: any;
|
|
8
|
+
ext: any;
|
|
8
9
|
packages: Record<string, any>;
|
|
9
10
|
pages: Record<string, any>;
|
|
10
11
|
comps: Record<string, any>;
|
|
@@ -49,6 +50,7 @@ export declare namespace MiniProgramDevtools {
|
|
|
49
50
|
ignore: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
50
51
|
include: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
51
52
|
};
|
|
53
|
+
injectedPages?: string[];
|
|
52
54
|
}
|
|
53
55
|
type GraphId = MiniProgramCore.ProjectType;
|
|
54
56
|
type IGetConfOptions = {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export type IRegion = 'ap-shanghai';
|
|
3
|
+
export interface IUploadToCosCoreParam {
|
|
4
|
+
uploadBuf: Buffer;
|
|
5
|
+
region: IRegion;
|
|
6
|
+
getUploadInfoFunc: FGetUploadInfoFunc;
|
|
7
|
+
getAuthFunc: FGetAuthFunc;
|
|
8
|
+
}
|
|
9
|
+
export interface IUploadToCosCoreRes {
|
|
10
|
+
err?: string;
|
|
11
|
+
data?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUploadInfo {
|
|
14
|
+
expired_time: string;
|
|
15
|
+
start_time: string;
|
|
16
|
+
object: string;
|
|
17
|
+
bucket: string;
|
|
18
|
+
crypt_key: string;
|
|
19
|
+
task_id: string;
|
|
20
|
+
checksum: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IUploadReq extends IUploadInfo {
|
|
23
|
+
action: string;
|
|
24
|
+
uploadId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IAuthResData {
|
|
27
|
+
Authorization: string;
|
|
28
|
+
SecurityToken: string;
|
|
29
|
+
AuthExpireTime: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IReqCache extends IUploadReq, IAuthResData {
|
|
32
|
+
}
|
|
33
|
+
type FGetUploadInfoFunc = () => Promise<IUploadInfo>;
|
|
34
|
+
type FGetAuthFunc = (data: IUploadReq) => Promise<IAuthResData>;
|
|
35
|
+
export declare function uploadToCosCore({ uploadBuf, region, getUploadInfoFunc, getAuthFunc, }: IUploadToCosCoreParam): Promise<IUploadToCosCoreRes>;
|
|
36
|
+
export declare function uploadToCosInCI(): void;
|
|
37
|
+
export {};
|
|
@@ -10,15 +10,17 @@ export declare enum PLATFORM {
|
|
|
10
10
|
PLUGIN = "mini-plugin"
|
|
11
11
|
}
|
|
12
12
|
export interface IAppMiniappJSON {
|
|
13
|
+
mockWithWxLoginToken?: string;
|
|
13
14
|
adapteByMiniprogram?: {
|
|
14
15
|
userName: string;
|
|
15
16
|
};
|
|
16
17
|
identityServiceConfig?: {
|
|
17
18
|
authorizeMiniprogramType: number;
|
|
18
19
|
miniprogramLoginPath: string;
|
|
20
|
+
adaptWxLogin?: boolean;
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
interface IOldMiniappJSON {
|
|
23
|
+
export interface IOldMiniappJSON {
|
|
22
24
|
name: string;
|
|
23
25
|
icon: string;
|
|
24
26
|
'mini-android': {
|
|
@@ -48,89 +50,130 @@ interface IOldMiniappJSON {
|
|
|
48
50
|
};
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
network: boolean;
|
|
61
|
-
scanner: boolean;
|
|
62
|
-
xweb: boolean;
|
|
63
|
-
};
|
|
64
|
-
icons: {
|
|
65
|
-
hdpi?: string;
|
|
66
|
-
xhdpi?: string;
|
|
67
|
-
xxhdpi?: string;
|
|
68
|
-
xxxhdpi?: string;
|
|
69
|
-
};
|
|
70
|
-
splashscreen: {
|
|
71
|
-
hdpi?: string;
|
|
72
|
-
xhdpi?: string;
|
|
73
|
-
xxhdpi?: string;
|
|
74
|
-
};
|
|
75
|
-
enableVConsole: boolean;
|
|
53
|
+
export interface IMiniAndroidMiniappJson {
|
|
54
|
+
sdkVersion: string;
|
|
55
|
+
toolkitVersion: string;
|
|
56
|
+
useExtendedSdk: {
|
|
57
|
+
media: boolean;
|
|
58
|
+
bluetooth: boolean;
|
|
59
|
+
network: boolean;
|
|
60
|
+
scanner: boolean;
|
|
61
|
+
xweb: boolean;
|
|
76
62
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
spotlightIcon80?: string;
|
|
94
|
-
spotlightIcon120?: string;
|
|
95
|
-
settingsIcon58?: string;
|
|
96
|
-
settingsIcon87?: string;
|
|
97
|
-
notificationIcon40?: string;
|
|
98
|
-
notificationIcon60?: string;
|
|
63
|
+
icons: {
|
|
64
|
+
hdpi?: string;
|
|
65
|
+
xhdpi?: string;
|
|
66
|
+
xxhdpi?: string;
|
|
67
|
+
xxxhdpi?: string;
|
|
68
|
+
};
|
|
69
|
+
splashscreen: {
|
|
70
|
+
hdpi?: string;
|
|
71
|
+
xhdpi?: string;
|
|
72
|
+
xxhdpi?: string;
|
|
73
|
+
};
|
|
74
|
+
enableVConsole: boolean;
|
|
75
|
+
officialPlugins?: {
|
|
76
|
+
imPush?: {
|
|
77
|
+
enable: boolean;
|
|
78
|
+
version?: string;
|
|
99
79
|
};
|
|
100
|
-
|
|
101
|
-
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface IMiniIOSMiniappJson {
|
|
83
|
+
sdkVersion: string;
|
|
84
|
+
toolkitVersion: string;
|
|
85
|
+
useExtendedSdk: {
|
|
86
|
+
WeAppOpenFuns?: boolean;
|
|
87
|
+
WeAppNetwork?: boolean;
|
|
88
|
+
WeAppBluetooth?: boolean;
|
|
89
|
+
WeAppMedia?: boolean;
|
|
90
|
+
WeAppLBS?: boolean;
|
|
91
|
+
WeAppLive?: boolean;
|
|
92
|
+
WeAppOthers?: boolean;
|
|
93
|
+
};
|
|
94
|
+
enableVConsole: boolean;
|
|
95
|
+
icons: {
|
|
96
|
+
mainIcon120?: string;
|
|
97
|
+
mainIcon180?: string;
|
|
98
|
+
spotlightIcon80?: string;
|
|
99
|
+
spotlightIcon120?: string;
|
|
100
|
+
settingsIcon58?: string;
|
|
101
|
+
settingsIcon87?: string;
|
|
102
|
+
notificationIcon40?: string;
|
|
103
|
+
notificationIcon60?: string;
|
|
104
|
+
};
|
|
105
|
+
splashScreen?: {
|
|
106
|
+
customImage?: string;
|
|
107
|
+
};
|
|
108
|
+
tpush?: {
|
|
109
|
+
useExtendedLib_WeAppTPNS?: boolean;
|
|
110
|
+
accessKey: string;
|
|
111
|
+
accessID: number;
|
|
112
|
+
};
|
|
113
|
+
officialPlugins?: {
|
|
114
|
+
imPush?: {
|
|
115
|
+
enable: boolean;
|
|
116
|
+
version?: string;
|
|
117
|
+
businessID?: string;
|
|
118
|
+
TIMPushAppGroupId?: string;
|
|
119
|
+
enableNSE: boolean;
|
|
120
|
+
NSEBundleID?: string;
|
|
121
|
+
NSEProfilePath?: string;
|
|
122
|
+
NSEDistributetProfilePath?: string;
|
|
123
|
+
resourcePath?: string;
|
|
102
124
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export interface IMiniPluginIOSItem {
|
|
128
|
+
open: boolean;
|
|
129
|
+
pluginId: string;
|
|
130
|
+
pluginVersion: string;
|
|
131
|
+
isFromLocal?: boolean;
|
|
132
|
+
loadWhenStart?: boolean;
|
|
133
|
+
resourcePath?: string;
|
|
134
|
+
resourceObjects?: {
|
|
135
|
+
[key: string]: string;
|
|
136
|
+
};
|
|
137
|
+
appexProfiles?: {
|
|
138
|
+
[key: string]: {
|
|
139
|
+
enable?: boolean;
|
|
140
|
+
bundleID?: string;
|
|
141
|
+
profilePath?: string;
|
|
142
|
+
distributeProfilePath?: string;
|
|
107
143
|
};
|
|
108
144
|
};
|
|
145
|
+
}
|
|
146
|
+
export interface IMiniPluginAndroidItem {
|
|
147
|
+
open: boolean;
|
|
148
|
+
pluginId: string;
|
|
149
|
+
pluginVersion: string;
|
|
150
|
+
}
|
|
151
|
+
export interface IMiniPluginMiniappJson {
|
|
152
|
+
android: IMiniPluginAndroidItem[];
|
|
153
|
+
ios: IMiniPluginIOSItem[];
|
|
154
|
+
}
|
|
155
|
+
export interface IAndroidMiniappJSON extends IMiniAndroidMiniappJson {
|
|
156
|
+
miniVersion: 'v2';
|
|
157
|
+
name: string;
|
|
109
158
|
sdkKey: string;
|
|
110
159
|
sdkKeySecret: string;
|
|
111
|
-
'mini-plugin':
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
profilePath?: string;
|
|
129
|
-
distributeProfilePath?: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}[];
|
|
133
|
-
};
|
|
160
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
161
|
+
}
|
|
162
|
+
export interface IIOSMiniappJSON extends IMiniIOSMiniappJson {
|
|
163
|
+
miniVersion: 'v2';
|
|
164
|
+
name: string;
|
|
165
|
+
sdkKey: string;
|
|
166
|
+
sdkKeySecret: string;
|
|
167
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
168
|
+
}
|
|
169
|
+
export interface INewMiniappJSON {
|
|
170
|
+
miniVersion: 'v2';
|
|
171
|
+
name: string;
|
|
172
|
+
'mini-android': IMiniAndroidMiniappJson;
|
|
173
|
+
'mini-ios': IMiniIOSMiniappJson;
|
|
174
|
+
sdkKey: string;
|
|
175
|
+
sdkKeySecret: string;
|
|
176
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
134
177
|
}
|
|
135
178
|
export type IMiniappJSON = IOldMiniappJSON | INewMiniappJSON;
|
|
136
179
|
export declare function identityServiceConfigToMiniAppJSON(pagePath: string, appMiniappJSON?: IAppMiniappJSON): IAppMiniappJSON;
|
|
@@ -138,10 +181,10 @@ export declare function getRawMiniappJson(projectPath: string): any;
|
|
|
138
181
|
export declare function getMiniappJson(projectPath: string, targetPlatform?: string): any;
|
|
139
182
|
export declare function tryGetAndroidMiniappJson(projectPath: string): any;
|
|
140
183
|
export declare function tryGetIOSMiniappJson(projectPath: string): any;
|
|
141
|
-
export declare function tryGetPluginMiniappJson(projectPath: string):
|
|
142
|
-
export declare function
|
|
143
|
-
export declare function
|
|
144
|
-
export declare function
|
|
184
|
+
export declare function tryGetPluginMiniappJson(projectPath: string): IMiniPluginMiniappJson;
|
|
185
|
+
export declare function isMiniAppProjectWithProjectPath(projectpath: string): boolean;
|
|
186
|
+
export declare function isNewMiniAppProjectWithProjectPath(projectpath: string): boolean;
|
|
187
|
+
export declare function writeMiniAppJsonWithProjectPath(projectpath: string, values: types.PlainObj<any>): void;
|
|
145
188
|
export declare function iOSMiniAppJsonIsUsingTpush(iosMiniappJson: any): any;
|
|
146
189
|
export declare function iOSMiniAppJsonIsUsingGDT(iosMiniappJson: any): any;
|
|
147
190
|
export declare function iOSAppJsonIsUsingIPadResizable(projectPath: string): boolean;
|
|
@@ -151,4 +194,3 @@ export declare function getTargetMiniprogramArg(projectPath: string, targetArg:
|
|
|
151
194
|
export declare const iosPrivacyDescObj: Record<string, string>;
|
|
152
195
|
export declare function isAndroidNeedClientJsExtInfo(projectPath: string): 0 | 1;
|
|
153
196
|
export declare const autoCompleteIOSPrivacyDesc: (projectpath: string) => boolean;
|
|
154
|
-
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IMiniPluginMiniappJson, INewMiniappJSON } from './miniappJson';
|
|
2
|
+
export declare const IMPushPluginId = "wx369499c8a9c4c19e";
|
|
3
|
+
export declare function preprocessDonutPluginConfig(projectMiniappJson: IMiniPluginMiniappJson, rawJson: INewMiniappJSON): IMiniPluginMiniappJson;
|
|
@@ -6,12 +6,13 @@ declare class PackOptionsHelper {
|
|
|
6
6
|
private ignoreUploadUnusedFiles;
|
|
7
7
|
private ignoreDevUnusedFiles;
|
|
8
8
|
private unusedFiles;
|
|
9
|
+
private projectRoot;
|
|
9
10
|
private extOpts;
|
|
10
11
|
setExtOpts(options?: {
|
|
11
12
|
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
12
13
|
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
13
14
|
}): void;
|
|
14
|
-
updateState(project: MiniProgramCore.
|
|
15
|
+
updateState(project: MiniProgramCore.IProject): void;
|
|
15
16
|
isUnuserFilesEnable(production?: boolean): boolean;
|
|
16
17
|
filter(fileList: string[], production?: boolean): string[];
|
|
17
18
|
isIgnored(file: string, production?: boolean): any;
|
|
@@ -20,6 +21,7 @@ declare class PackOptionsHelper {
|
|
|
20
21
|
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
21
22
|
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
22
23
|
}): any;
|
|
24
|
+
relativePath(file: string): string;
|
|
23
25
|
isFileIgnored(file: string, ignores?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
24
26
|
isFileIncluded(file: string, includes?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
25
27
|
isIgnoreByUnusedFiles(file: string, production?: boolean): boolean;
|
|
@@ -38,6 +38,8 @@ export declare const compareVersion: (v1: any, v2: any) => 0 | 1 | -1;
|
|
|
38
38
|
export declare const pathRelative: (left: string, right: string) => string;
|
|
39
39
|
export declare function isLeftSubPathOfRight(child: string, parent: string): boolean;
|
|
40
40
|
export declare function isGameApp(project: MiniProgramCI.IProject): boolean;
|
|
41
|
+
export declare function isPluginType(project: MiniProgramCI.IProject): boolean;
|
|
42
|
+
export declare function isMiniappPlatform(targetPlatform?: string): boolean;
|
|
41
43
|
export declare const checkIsUseCompilerPlugins: () => boolean;
|
|
42
44
|
export declare const sourcePathToTargetPath: (sourcePath: string) => string;
|
|
43
45
|
export declare function getCompilerPlugins(project: MiniProgramCore.IPreCompileProject): ("typescript" | "less" | "sass")[];
|