File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,9 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
264
264
if ( this . $fs . exists ( sourceAppResourcesDirectoryPath ) . wait ( ) ) {
265
265
this . $fs . enumerateFilesInDirectorySync ( sourceAppResourcesDirectoryPath , ( file : string , stat : IFsStats ) => {
266
266
if ( stat . isDirectory ( ) && file . indexOf ( drawableFilePrefix ) !== - 1 &&
267
- allowedDrawables . indexOf ( path . basename ( file ) . replace ( drawableFilePrefix , "" ) ) === - 1 ) {
267
+ ( allowedDrawables . indexOf ( path . basename ( file ) . replace ( drawableFilePrefix , "" ) ) === - 1 ||
268
+ allowedDrawables . indexOf ( path . basename ( file ) . replace ( `${ drawableFilePrefix } -ldrtl-` , "" ) ) === - 1 ||
269
+ allowedDrawables . indexOf ( path . basename ( file ) . replace ( `${ drawableFilePrefix } -ldltr-` , "" ) ) === - 1 ) ) {
268
270
this . $errors . failWithoutHelp ( `Invalid Android drawable resource folder detected: ${ file } . Please check your ${ constants . APP_RESOURCES_FOLDER_NAME } folder.` ) ;
269
271
return false ;
270
272
}
You can’t perform that action at this time.
0 commit comments