fix(android): set applicationId (#827)

Co-authored-by: Alexandre Alves <aalves@seamlink.com>
This commit is contained in:
seamlink-aalves 2023-04-14 12:06:30 +01:00 committed by GitHub
parent 827bb611ee
commit 2c09ade500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
this.callbackContext = callbackContext; this.callbackContext = callbackContext;
//Adding an API to CoreAndroid to get the BuildConfigValue //Adding an API to CoreAndroid to get the BuildConfigValue
//This allows us to not make this a breaking change to embedding //This allows us to not make this a breaking change to embedding
this.applicationId = (String) BuildHelper.getBuildConfigValue(cordova.getActivity(), "APPLICATION_ID"); this.applicationId = cordova.getContext().getPackageName();
this.applicationId = preferences.getString("applicationId", this.applicationId); this.applicationId = preferences.getString("applicationId", this.applicationId);