Skip to content

Commit ba44c68

Browse files
committed
RTL/LTR support added
1 parent f214044 commit ba44c68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/services/android-project-service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
264264
if (this.$fs.exists(sourceAppResourcesDirectoryPath).wait()) {
265265
this.$fs.enumerateFilesInDirectorySync(sourceAppResourcesDirectoryPath, (file: string, stat: IFsStats) => {
266266
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)) {
268270
this.$errors.failWithoutHelp(`Invalid Android drawable resource folder detected: ${file}. Please check your ${constants.APP_RESOURCES_FOLDER_NAME} folder.`);
269271
return false;
270272
}

0 commit comments

Comments
 (0)