Skip to content

Commit 61d4b77

Browse files
committed
fix: ns typings android supports dtsGeneratorPath and now uses -per-library
1 parent aa3f028 commit 61d4b77

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/commands/typings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class TypingsCommand implements ICommand {
160160
path.resolve(this.$projectData.projectDir, "typings", "android"),
161161
);
162162

163-
const dtsGeneratorPath = path.resolve(
163+
const dtsGeneratorPath = this.$options.dtsGeneratorPath ?? path.resolve(
164164
this.$projectData.projectDir,
165165
this.$projectData.getBuildRelativeDirectoryPath(),
166166
"android",
@@ -200,6 +200,7 @@ export class TypingsCommand implements ICommand {
200200
[
201201
"-jar",
202202
dtsGeneratorPath,
203+
"-per-library",
203204
"-input",
204205
...inputs,
205206
"-output",

lib/declarations.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ interface IIOSOptions extends IEmbedOptions {}
594594

595595
interface ITypingsOptions {
596596
jar: string;
597+
dtsGeneratorPath: string;
597598
aar: string;
598599
filter: string;
599600
}

lib/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export class Options {
251251
appleSessionBase64: { type: OptionType.String, hasSensitiveValue: true },
252252
jar: { type: OptionType.String, hasSensitiveValue: true },
253253
aar: { type: OptionType.String, hasSensitiveValue: true },
254+
dtsGeneratorPath: { type: OptionType.String, hasSensitiveValue: true },
254255
filter: { type: OptionType.String, hasSensitiveValue: true },
255256
git: {
256257
type: OptionType.Boolean,

0 commit comments

Comments
 (0)