File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ android {
156
156
" **/libc++_shared.so" ,
157
157
" **/libfbjni.so" ,
158
158
" **/libreactnativejni.so" ,
159
+ " **/libcrypto.so" ,
159
160
" **/libjsi.so" ,
160
161
" **/libreact_nativemodule_core.so" ,
161
162
" **/libturbomodulejsijni.so" ,
Original file line number Diff line number Diff line change @@ -70,12 +70,20 @@ module.exports.genTSType = (allKeys) => {
70
70
Object . keys ( allKeys ?. public ?? { } ) . forEach ( ( key ) => {
71
71
result += `\n ${ key } : string;` ;
72
72
} ) ;
73
- result += '\n [key: string]: string;\n};\n\n' ;
73
+ if ( ! allKeys ?. public ) {
74
+ result += '\n [key: string]: string;\n};\n\n' ;
75
+ } else {
76
+ result += '\n};\n\n' ;
77
+ }
74
78
result += 'export type KeyTurboSecuredType = {' ;
75
79
Object . keys ( allKeys ?. secure ?? { } ) . forEach ( ( key ) => {
76
80
result += `\n ${ key } : string;` ;
77
81
} ) ;
78
- result += '\n[key: string]: string;\n};\n' ;
82
+ if ( ! allKeys ?. secure ) {
83
+ result += '\n [key: string]: string;\n};\n\n' ;
84
+ } else {
85
+ result += '\n};\n\n' ;
86
+ }
79
87
fs . outputFileSync ( path . join ( SRC_PATH , 'type.ts' ) , result ) ;
80
88
} ;
81
89
You can’t perform that action at this time.
0 commit comments