Hi all,
Today I tried this component once again but when I try to generate the application it is returning some errors. It's a brand new mobile application with nothing in it (only the default stuff). It is being built with MABS 8.1 (I did also try it with other versions and it is giving me the same problem). I did follow all steps as written in the documentation. When I remove the Social Login dependency, the application is generated successfully. Does anyone encounter this problem aswell? I also did attach the .OML so anyone could check what I did.
Also, here is little part of the Android build log which is returning the error:
[2022-12-23T10:16:34.154Z] [VERBOSE] [Build] Executing script found in plugin com.outsystems.plugins.sociallogins for hook "after_prepare": plugins/com.outsystems.plugins.sociallogins/hooks/androidCopyPreferences.js
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] Missing configuration file or error trying to obtain the configuration.
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] Error: Missing configuration file or error trying to obtain the configuration.
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] at copyFacebookPreferences (source/plugins/com.outsystems.plugins.sociallogins/hooks/androidCopyPreferences.js:81:15)
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] at module.exports (source/plugins/com.outsystems.plugins.sociallogins/hooks/androidCopyPreferences.js:16:5)
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] at runScriptViaModuleLoader (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:32)
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] at runScript (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:136:12)
[2022-12-23T10:16:34.157Z] [VERBOSE] [Build] at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:108:40
[2022-12-23T10:16:34.292Z] [INFO] [Build] Remove generated Android build files
[2022-12-23T10:16:34.295Z] [INFO] [Build] Remove debug/release signing properties
[2022-12-23T10:16:34.438Z] [INFO] [Build] Zipping application source code...
[2022-12-23T10:16:49.952Z] [INFO] [Build] Saving package and source files...
[2022-12-23T10:16:49.955Z] [ERROR] [Build] -- v --
[2022-12-23T10:16:49.956Z] [ERROR] [Build] The build phase failed to complete!
Update
It seems that you need to upload the json configuration file. In the guide they are mentioning some usecases and since I was only testing Google on Android device for now I thought it was not needed.
Hi @Bart Nooijens
I am having the same error but using social login mobile ver 4.0. The socialLoginsConfigurations.json is deprecated. any idea for the error?
[2023-08-22T12:14:04.342Z] [VERBOSE] [Build] Error: Something went wrong with the request. [object Object]
[2023-08-22T12:14:04.342Z] [VERBOSE] [Build] at getJsonFile (source/plugins/com.outsystems.plugins.sociallogins/hooks/utils.js:24:23)
[2023-08-22T12:14:04.342Z] [VERBOSE] [Build] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-08-22T12:14:04.342Z] [VERBOSE] [Build] at async module.exports (source/plugins/com.outsystems.plugins.sociallogins/hooks/androidCopyPreferences.js:19:22)
[2023-08-22T12:14:04.489Z] [INFO] [Build] Remove generated Android build files
[2023-08-22T12:14:04.490Z] [INFO] [Build] Remove debug/release signing properties
[2023-08-22T12:14:04.635Z] [INFO] [Build] Zipping application source code...
[2023-08-22T12:14:23.638Z] [INFO] [Build] Saving package and source files...
[2023-08-22T12:14:23.638Z] [ERROR] [Build] -- v --
[2023-08-22T12:14:23.639Z] [ERROR] [Build] The build phase failed to complete!
[2023-08-22T12:14:23.639Z] [ERROR] [Build] Reason: Couldn't generate your app. If the problem persists, check our documentation for more information.
[2023-08-22T12:14:23.639Z] [ERROR] [Build] Additional information:
[2023-08-22T12:14:23.639Z] [ERROR] [Build] Something went wrong with the request. [object Object]
[2023-08-22T12:14:23.639Z] [ERROR] [Build] -- ^ --
[2023-08-22T12:14:23.639Z] [INFO] [Build] Application was not successfully generated!
[2023-08-22T12:14:24.138Z] [INFO] [Build] Execution time: 143464 ms
Hi CG,
I think it's the best to create a new topic for this. We are not using the new version yet, so I am afraid I can't help you with this error at the moment.
Best,
Bart
Thank you