@@ -122,7 +122,8 @@ const transaction = {
122122 'HookEntry.kt' : {
123123 annotations : {
124124 entryClassName : ( name ) => 'entryClassName = "' + name + '"' ,
125- supportResourcesHook : ( isEnabled ) => 'isUsingResourcesHook = ' + ( isEnabled ? 'true' : 'false' )
125+ supportResourcesHook : ( isEnabled ) => 'isUsingResourcesHook = ' + ( isEnabled ? 'true' : 'false' ) ,
126+ supportXposedModuleStatus : ( isEnabled ) => 'isUsingXposedModuleStatus = ' + ( isEnabled ? 'true' : 'false' )
126127 } ,
127128 configs : {
128129 debugLog : {
@@ -131,7 +132,6 @@ const transaction = {
131132 } ,
132133 enableDebug : ( isEnabled ) => 'isDebug = ' + ( isEnabled ? 'true' : 'false' ) ,
133134 enableResourcesCache : ( isEnabled ) => 'isEnableModuleAppResourcesCache = ' + ( isEnabled ? 'true' : 'false' ) ,
134- enableModuleStatus : ( isEnabled ) => 'isEnableHookModuleStatus = ' + ( isEnabled ? 'true' : 'false' ) ,
135135 enableYChannel : ( isEnabled ) => 'isEnableDataChannel = ' + ( isEnabled ? 'true' : 'false' )
136136 }
137137 } ,
@@ -251,6 +251,11 @@ const transaction = {
251251 if ( configs . yukiHookApiConfig . supportResourcesHook !== 0 )
252252 hookEntryAnnotationCode = hookEntryAnnotationCode . concat (
253253 codeFiles [ 'HookEntry.kt' ] . annotations . supportResourcesHook ( configs . yukiHookApiConfig . supportResourcesHook === 1 ) ) ;
254+ if ( configs . yukiHookApiConfig . supportResourcesHook !== 0 && configs . yukiHookApiConfig . enableModuleStatus !== 0 )
255+ hookEntryAnnotationCode = hookEntryAnnotationCode . concat ( ', ' ) ;
256+ if ( configs . yukiHookApiConfig . enableModuleStatus !== 0 )
257+ hookEntryAnnotationCode = hookEntryAnnotationCode . concat (
258+ codeFiles [ 'HookEntry.kt' ] . annotations . supportXposedModuleStatus ( configs . yukiHookApiConfig . enableModuleStatus === 1 ) ) ;
254259 if ( hookEntryAnnotationCode . trim ( ) !== '' )
255260 hookEntryAnnotationCode = '(' + ( hookEntryAnnotationCode . trim ( ) . endsWith ( ',' ) ?
256261 hookEntryAnnotationCode . trim ( ) . substring ( 0 , hookEntryAnnotationCode . trim ( ) . lastIndexOf ( ',' ) ) :
@@ -276,9 +281,6 @@ const transaction = {
276281 if ( configs . yukiHookApiConfig . enableResourcesCache !== 0 )
277282 hookEntryConfigsCode = codeFiles . append ( hookEntryConfigsCode ,
278283 codeFiles [ 'HookEntry.kt' ] . configs . enableResourcesCache ( configs . yukiHookApiConfig . enableResourcesCache === 1 ) ) ;
279- if ( configs . yukiHookApiConfig . enableModuleStatus !== 0 )
280- hookEntryConfigsCode = codeFiles . append ( hookEntryConfigsCode ,
281- codeFiles [ 'HookEntry.kt' ] . configs . enableModuleStatus ( configs . yukiHookApiConfig . enableModuleStatus === 1 ) ) ;
282284 if ( configs . yukiHookApiConfig . enableYChannel !== 0 )
283285 hookEntryConfigsCode = codeFiles . append ( hookEntryConfigsCode ,
284286 codeFiles [ 'HookEntry.kt' ] . configs . enableYChannel ( configs . yukiHookApiConfig . enableYChannel === 1 ) ) ;
0 commit comments