Merge branch 'development' into l10n_development

This commit is contained in:
Feruz M 2021-04-09 07:36:57 +03:00 committed by GitHub
commit a549160217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 67 additions and 29 deletions

View File

@ -143,7 +143,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "3.0.16" versionName "3.0.17"
resValue "string", "build_config_package", "app.esteem.mobile.android" resValue "string", "build_config_package", "app.esteem.mobile.android"
multiDexEnabled true multiDexEnabled true
// react-native-image-crop-picker // react-native-image-crop-picker

View File

@ -15,11 +15,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.0.16</string> <string>3.0.17</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2795</string> <string>2796</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true /> <true />
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>

View File

@ -15,10 +15,10 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>BNDL</string> <string>BNDL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.0.16</string> <string>3.0.17</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2795</string> <string>2796</string>
</dict> </dict>
</plist> </plist>

View File

@ -1112,7 +1112,7 @@
CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2795; CURRENT_PROJECT_VERSION = 2796;
DEAD_CODE_STRIPPING = NO; DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = 75B6RXTKGT; DEVELOPMENT_TEAM = 75B6RXTKGT;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
@ -1188,7 +1188,7 @@
CODE_SIGN_ENTITLEMENTS = Ecency/Ecency.entitlements; CODE_SIGN_ENTITLEMENTS = Ecency/Ecency.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2795; CURRENT_PROJECT_VERSION = 2796;
DEAD_CODE_STRIPPING = NO; DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = 75B6RXTKGT; DEVELOPMENT_TEAM = 75B6RXTKGT;
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (

View File

@ -19,7 +19,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.0.16</string> <string>3.0.17</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>

View File

@ -15,10 +15,10 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>BNDL</string> <string>BNDL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.0.16</string> <string>3.0.17</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2795</string> <string>2796</string>
</dict> </dict>
</plist> </plist>

View File

@ -17,9 +17,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.0.16</string> <string>3.0.17</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2795</string> <string>2796</string>
<key>NSExtension</key> <key>NSExtension</key>
<dict> <dict>
<key>NSExtensionAttributes</key> <key>NSExtensionAttributes</key>

View File

@ -1,6 +1,6 @@
{ {
"name": "ecency", "name": "ecency",
"version": "3.0.16", "version": "3.0.17",
"displayName": "Ecency", "displayName": "Ecency",
"private": true, "private": true,
"rnpm": { "rnpm": {

View File

@ -116,8 +116,22 @@ export const UploadsGalleryModal = forwardRef(({username, handleOnSelect, handl
} }
const _onRemovePress = async () => { const _onRemovePress = async () => {
const _onConfirm = () => {
_deleteMediaItem(item._id) _deleteMediaItem(item._id)
} }
Alert.alert(
intl.formatMessage({id:'alert.delete'}),
intl.formatMessage({id:'alert.remove_alert'}),
[{
text:intl.formatMessage({id:'alert.cancel'}),
style:'cancel'
},{
text:intl.formatMessage({id:'alert.confirm'}),
onPress:_onConfirm
}]
)
}
const thumbUrl = proxifyImageSrc(item.url, 600, 500, Platform.OS === 'ios' ? 'match' : 'webp'); const thumbUrl = proxifyImageSrc(item.url, 600, 500, Platform.OS === 'ios' ? 'match' : 'webp');

View File

@ -301,7 +301,18 @@
"my_communities": "My Communities", "my_communities": "My Communities",
"top_communities": "Top Communities", "top_communities": "Top Communities",
"schedule_modal_title": "Schedule Post", "schedule_modal_title": "Schedule Post",
"snippets": "Snippets" "snippets": "Snippets",
"alert_init_title":"New Content",
"alert_init_body":"Open recent draft or Create new post",
"alert_btn_draft":"Recent Draft",
"alert_btn_new":"New Post",
"alert_pub_edit_title":"Publishing edits",
"alert_pub_new_title":"Publishing new post",
"alert_pub_body":"Are you sure?",
"alert_btn_yes":"Yes",
"alert_btn_no":"No",
"draft_save_success":"Draft Saved",
"draft_save_fail":"Failed to save draft"
}, },
"snippets":{ "snippets":{
"label_no_snippets":"No Snippets Found", "label_no_snippets":"No Snippets Found",
@ -319,6 +330,13 @@
"btn_confirm":"Confirm", "btn_confirm":"Confirm",
"btn_cancel":"Cancel" "btn_cancel":"Cancel"
}, },
"uploads_modal":{
"label_no_images":"No Images Found",
"title":"Uploaded Images",
"title_remove_confirmation":"Delete image",
"btn_add":"Image",
"message_failed":"Failed to upload image"
},
"pincode": { "pincode": {
"enter_text": "Enter PIN to unlock", "enter_text": "Enter PIN to unlock",
"set_new": "Set new PIN", "set_new": "Set new PIN",

View File

@ -621,7 +621,10 @@ class ApplicationContainer extends Component {
_getSettings = async () => { _getSettings = async () => {
const { dispatch } = this.props; const { dispatch } = this.props;
//reset certain properties
dispatch(hideActionModal()); dispatch(hideActionModal());
dispatch(toastNotification(''));
const settings = await getSettings(); const settings = await getSettings();
if (settings) { if (settings) {

View File

@ -594,6 +594,11 @@ class EditorContainer extends Component {
_saveCurrentDraft = async (fields) => { _saveCurrentDraft = async (fields) => {
const { draftId, isReply, isEdit, isPostSending } = this.state; const { draftId, isReply, isEdit, isPostSending } = this.state;
//skip draft save in case post is sending or is post beign edited
if (isPostSending || isEdit) {
return;
}
const { currentAccount } = this.props; const { currentAccount } = this.props;
const username = currentAccount && currentAccount.name ? currentAccount.name : ''; const username = currentAccount && currentAccount.name ? currentAccount.name : '';
@ -602,7 +607,6 @@ class EditorContainer extends Component {
tags: fields.tags && fields.tags.length > 0 ? fields.tags.toString() : '', tags: fields.tags && fields.tags.length > 0 ? fields.tags.toString() : '',
}; };
if (!isPostSending) {
//save reply data //save reply data
if (isReply && draftField.body !== null) { if (isReply && draftField.body !== null) {
await AsyncStorage.setItem('temp-reply', draftField.body); await AsyncStorage.setItem('temp-reply', draftField.body);
@ -616,7 +620,6 @@ class EditorContainer extends Component {
else if (!isReply) { else if (!isReply) {
setDraftPost(draftField, username); setDraftPost(draftField, username);
} }
}
}; };
_submitPost = async (fields, scheduleDate) => { _submitPost = async (fields, scheduleDate) => {

View File

@ -66,8 +66,8 @@ class EditorScreen extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
const { isReply } = this.props; const { isReply, isEdit } = this.props;
if (!isReply) { if (!isReply && !isEdit) {
this._saveDraftToDB(); this._saveDraftToDB();
} }
} }