beplus / fastlane-plugin-versioning_android

Android Versioning Plugin for Fastlane
MIT License
140 stars 25 forks source link

Exception occured while reading gradle file #12

Open soethan99 opened 2 years ago

soethan99 commented 2 years ago

An exception occured while reading gradle file: No such file or directory @ rb_sysopen

Following error occured when using android_get_version_code and android_get_version_name containing white space in provided gradle path.

E-g . android_get_version_code(gradle_file: "MBFS/build.gradle") works fine.

android_get_version_code(gradle_file: "MBFS\ JP/build.gradle") exception occur.

losikov commented 2 years ago

The same happens if path to the project has spaces:

An exception occured while reading gradle file: No such file or directory @ rb_sysopen - /Client\ Test\ And\ Internal\ Deploy/android/app/build.gradle

invoked by:

version = android_get_version_name(gradle_file: "android/app/build.gradle")

If I rename jerkins job (and folder name) to "ClientTestAndInternalDeploy" it works fine.