Skip to content

Commit

Permalink
Merge pull request #438 from shikshalokam/5.1.0.10_33
Browse files Browse the repository at this point in the history
ISSUE #000 fix : 5.1 API 33 level issue fix
  • Loading branch information
vishwanath1004 authored Oct 11, 2023
2 parents 5c140bc + 102b153 commit 0ad1903
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions build_config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cordova-plugin=cordova-plugin-x-socialsharing
cordova-plugin=cordova-plugin-androidx-adapter
cordova-plugin=cordova-plugin-device
cordova-plugin=cordova-plugin-file
cordova-plugin=https://github.com/vishwanath1004/cordova-plugin-file-transfer
cordova-plugin=https://github.com/shikshalokam/cordova-plugin-file-transfer.git
cordova-plugin=cordova-plugin-inappbrowser
cordova-plugin=cordova-plugin-network-information
cordova-plugin=cordova-plugin-statusbar
Expand All @@ -20,20 +20,20 @@ cordova-plugin=cordova-plugin-android-permissions
cordova-plugin=cordova.plugins.diagnostic
cordova-plugin=com.telerik.plugins.nativepagetransitions
cordova-plugin=cordova-plugin-secure-storage-echo
cordova-plugin=cordova-plugin-chooser
cordova-plugin=https://github.com/shikshalokam/cordova-plugin-chooser.git
cordova-plugin=cordova-plugin-appavailability
cordova-plugin=cordova-plugin-filepicker
cordova-plugin=cordova-plugin-document-viewer
cordova-plugin=com-sarriaroman-photoviewer
cordova-plugin=https://github.com/vishwanath1004/cordova-plugin-filepath.git
cordova-plugin=https://github.com/shikshalokam/cordova-plugin-filepath.git
cordova-plugin=https://github.com/greybax/cordova-plugin-proguard.git
cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-utility.git#release-4.1.0
cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-downloadmanager.git
cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-db.git#release-4.6.0
cordova-plugin=https://github.com/Sunbird-Ed/sb-cordova-plugin-customtabs.git#release-5.0.2 --variable URL_SCHEME=@string/custom_scheme_url --variable URL_HOST=mobile
cordova-plugin=cordova-sqlite-storage
cordova plugin=cordova-plugin-googleplus
cordova-plugin=https://github.com/vishwanath1004/cordova-plugin-camera.git
cordova-plugin=https://github.com/shikshalokam/cordova-plugin-camera.git
[email protected]
cordova-plugin=cordova-plugin-filechooser
cordova-plugin=cordova-plugin-media
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ export class AttachmentService {
const file = await this.chooser.getFile('application/pdf');
let sizeOftheFile: number = file.data.length
if (sizeOftheFile > localStorageConstants.FILE_LIMIT) {
this.actionSheetController.dismiss();
this.presentToast(this.texts["FRMELEMNTS_MSG_ERROR_FILE_SIZE_LIMIT"]);
this.presentToast(this.texts["FRMELEMNTS_LBL_FILE_SIZE_EXCEEDED"]);
this.actionSheetOpen ? this.actionSheetController.dismiss() :'';
} else {
const pathToWrite = path ? path :this.directoryPath();
const newFileName = this.createFileName(file.name)
Expand All @@ -291,7 +291,11 @@ export class AttachmentService {
}

} catch (error) {
this.presentToast(this.texts["FRMELEMNTS_MSG_ERROR_WHILE_STORING_FILE"]);
if(error == "OutOfMemory"){
this.presentToast(this.texts["FRMELEMNTS_LBL_FILE_SIZE_EXCEEDED"]);
}else{
this.presentToast(this.texts["FRMELEMNTS_MSG_ERROR_WHILE_STORING_FILE"]);
}
}
}

Expand Down

0 comments on commit 0ad1903

Please sign in to comment.