Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 14.0 final into develop #11170

Merged
merged 28 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fad132d
Dismissing create FAB tooltip forever when tapping on tooltip itself.
develric Jan 15, 2020
9ed0918
Adding Toast tip to FAB on long press.
develric Jan 15, 2020
08fc55e
Removing unneeded empty line.
develric Jan 15, 2020
6d2f220
Adding styles for bottom sheet.
develric Jan 16, 2020
db5158f
Making bottom sheet uses created style.
develric Jan 16, 2020
12d0f9e
Covering tooltip disabling logic with unit testing.
develric Jan 17, 2020
941f902
Update release note
jkmassel Jan 17, 2020
acfba3c
Update metadata strings
jkmassel Jan 17, 2020
76408aa
Adding tooltip dismiss logic on fab long-press.
develric Jan 20, 2020
aa01445
Merge pull request #11106 from wordpress-mobile/issue/11088-create-fa…
theck13 Jan 20, 2020
faff76b
Merge pull request #11107 from wordpress-mobile/issue/11018-nav-bar-s…
ashiagr Jan 21, 2020
4340165
Update gutenberg-mobile reference
mkevins Jan 21, 2020
7c3ea57
Bump version number
jkmassel Jan 21, 2020
3dc8dcb
Update gutenberg-mobile reference
mkevins Jan 22, 2020
f77478b
Merge pull request #11120 from wordpress-mobile/fix/disable-gallery-s…
mkevins Jan 22, 2020
0ceca89
Fix for 11135
hafizrahman Jan 23, 2020
c1cb3b5
lint fix.
hafizrahman Jan 23, 2020
f15903f
Bump version number
jkmassel Jan 23, 2020
8c55f00
Updates translations
jkmassel Jan 24, 2020
200c422
Bump version number
jkmassel Jan 24, 2020
b5de913
Update metadata translations for 14.0
jkmassel Jan 24, 2020
1e0090a
Disable a release check that breaks the build
jkmassel Jan 26, 2020
1492315
Tag 14.0
jkmassel Jan 27, 2020
4a26470
Merge remote-tracking branch 'origin/develop' into merge/14.0-final-i…
jkmassel Jan 27, 2020
774a02d
Bump version code after a fix and a versionCode bump in 10.9.4 hotfix
maxme Jan 27, 2020
6ece14b
Bump version number
maxme Jan 27, 2020
52029eb
Update metadata translations for 14.0
maxme Jan 27, 2020
71f893f
Merge branch 'release/14.0' into merge/14.0-final-into-develop
maxme Jan 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ android {
if (project.hasProperty("versionName")) {
versionName project.property("versionName")
} else {
versionName "alpha-203"
versionName "alpha-205"
}
versionCode 813
versionCode 817
minSdkVersion 21
targetSdkVersion 28

Expand All @@ -84,9 +84,9 @@ android {
dimension "buildType"
// Only set the release version if one isn't provided
if (!project.hasProperty("versionName")) {
versionName "14.0-rc-1"
versionName "14.0"
}
versionCode 812
versionCode 819
buildConfigField "boolean", "ME_ACTIVITY_AVAILABLE", "false"
}

Expand Down
17 changes: 8 additions & 9 deletions WordPress/metadata/PlayStoreStrings.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ msgstr ""
"Project-Id-Version: Release Notes & Play Store Descriptions\n"

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "release_note_140"
msgid ""
"14.0:\n"
"- Block editor: Sometimes the Block editor would crash when you tried to undo, which is a little too much undoing. That’s fixed, along with a bug affecting image placeholders.\n"
"- Moved the “me” section of the app to within "My Site".\n"
"- Added a floating action button to My Site for quick creation of new posts and pages.\n"
msgstr ""

msgctxt "release_note_139"
msgid ""
"13.9:\n"
"• Block editor additions: Added a new Gallery block for creating image galleries using files from your Media Library, along with support for the Preformatted block.\n"
"• Block editor enhancements: Added support for settings in the List and Video blocks.\n"
msgstr ""

msgctxt "release_note_138"
msgid ""
"13.8:\n"
"* Block editor improvements: Added Spacer block for creating white space between content.\n"
"* Modified Blog Post Search to include posts under all categories.\n"
"* Lots of under-the-hood improvements across the entire app –26 unique crash and bug fixes in all.\n"
"\n"
msgstr ""

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "sample_post_content"
msgid "The best moment of any trip, for me, is when I first step foot off the plane. The whole of the trip is in front me, ripe with possibility."
Expand Down
5 changes: 3 additions & 2 deletions WordPress/metadata/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
• Block editor additions: Added a new Gallery block for creating image galleries using files from your Media Library, along with support for the Preformatted block.
• Block editor enhancements: Added support for settings in the List and Video blocks.
- Block editor: Sometimes the Block editor would crash when you tried to undo, which is a little too much undoing. That’s fixed, along with a bug affecting image placeholders.
- Moved the “me” section of the app to within "My Site".
- Added a floating action button to My Site for quick creation of new posts and pages.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ class CommentFullScreenDialogFragment : Fragment(), CollapseFullScreenDialogCont
reply.setSelection(it.getInt(EXTRA_SELECTION_START), it.getInt(EXTRA_SELECTION_END))
viewModel.init()

siteModel = siteStore.getSiteBySiteId(it.getLong(EXTRA_SITE_ID))
setupSuggestionServiceAndAdapter(siteModel)
// Allow @username suggestion in full screen comment Editor on the Reader,
// but only on sites in the siteStore (i.e: current user's site).
// No suggestion is available for external sites that the user follows in the Reader.
val siteModel: SiteModel? = siteStore.getSiteBySiteId(it.getLong(EXTRA_SITE_ID))
if (siteModel != null) {
setupSuggestionServiceAndAdapter(siteModel)
}
}

return layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class MainBottomSheetFragment : BottomSheetDialogFragment() {
@Inject lateinit var viewModelFactory: ViewModelProvider.Factory
private lateinit var viewModel: WPMainActivityViewModel

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setStyle(STYLE_NORMAL, R.style.LoginTheme_BottomSheetDialogStyle)
}

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.HapticFeedbackConstants;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
Expand Down Expand Up @@ -114,6 +116,7 @@
import org.wordpress.android.util.ShortcutUtils;
import org.wordpress.android.util.SiteUtils;
import org.wordpress.android.util.ToastUtils;
import org.wordpress.android.util.ViewUtilsKt;
import org.wordpress.android.util.WPActivityUtils;
import org.wordpress.android.util.analytics.AnalyticsUtils;
import org.wordpress.android.util.analytics.service.InstallationReferrerServiceStarter;
Expand Down Expand Up @@ -416,6 +419,17 @@ private void initViewModel() {
mViewModel.setIsBottomSheetShowing(true);
});

mFloatingActionButton.setOnLongClickListener(v -> {
if (v.isHapticFeedbackEnabled()) {
v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
}
mViewModel.onFabLongPressed();
Toast.makeText(v.getContext(), R.string.create_post_page_fab_tooltip, Toast.LENGTH_SHORT).show();
return true;
});

ViewUtilsKt.redirectContextClickToLongPressListener(mFloatingActionButton);

mFabTooltip.setOnClickListener(v -> {
mViewModel.onTooltipTapped();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ class WPMainActivityViewModel @Inject constructor(private val appPrefsWrapper: A
_createAction.postValue(actionType)
}

private fun disableTooltip() {
appPrefsWrapper.setMainFabTooltipDisabled(true)

val oldState = _fabUiState.value
oldState?.let {
_fabUiState.value = MainFabUiState(
isFabVisible = it.isFabVisible,
isFabTooltipVisible = false
)
}
}

fun setIsBottomSheetShowing(showing: Boolean) {
appPrefsWrapper.setMainFabTooltipDisabled(true)
setMainFabUiState(true)
Expand All @@ -82,13 +94,11 @@ class WPMainActivityViewModel @Inject constructor(private val appPrefsWrapper: A
}

fun onTooltipTapped() {
val oldState = _fabUiState.value
oldState?.let {
_fabUiState.value = MainFabUiState(
isFabVisible = it.isFabVisible,
isFabTooltipVisible = false
)
}
disableTooltip()
}

fun onFabLongPressed() {
disableTooltip()
}

private fun setMainFabUiState(isFabVisible: Boolean) {
Expand Down
3 changes: 2 additions & 1 deletion WordPress/src/main/res/layout/add_content_bottom_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true">
android:animateLayoutChanges="true"
android:fitsSystemWindows="true">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/create_actions_recycler_view"
Expand Down
37 changes: 28 additions & 9 deletions WordPress/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Translation-Revision-Date: 2019-12-12 00:55:12+0000
Translation-Revision-Date: 2020-01-24 00:54:10+0000
Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;
Generator: GlotPress/2.4.0-alpha
Language: ar
-->
<resources>
<string name="gutenberg_native_remove_image">إزالة الصورة</string>
<string name="gutenberg_native_move_image_forward">تحريك الصورة إلى الأمام</string>
<string name="gutenberg_native_move_image_backward">تحريك الصورة إلى الخلف</string>
<string name="gutenberg_native_gallery_caption_s">التسمية التوضيحية لمعرض الصور. %s</string>
<string name="gutenberg_native_1_s_current_value_is_2_s">%1$s. القيمة الحالية هي %2$s</string>
<string name="create_post_page_fab_tooltip">إنشاء مقالة أو صفحة</string>
<string name="quick_start_dialog_create_new_post_message_short_posts">انقر على %1$sإضافة مقالة%2$s لإنشاء مقالة جديدة.</string>
<string name="quick_start_dialog_create_new_post_message_short">انقر على %1$sمقالات المدونة%2$s للمتابعة.</string>
<string name="content_description_person_building_website">شخص ينشئ موقعًا على الويب</string>
<string name="post_signup_interstitial_not_right_now">ليس الآن</string>
<string name="post_signup_interstitial_subtitle">سواء أرغبتَ في الإنشاء أو المشاركة، فإنَّنا سنساعدك على القيام بذلك بشكل صحيح.</string>
<string name="post_signup_interstitial_title">مرحبًا بك في ووردبريس.</string>
<string name="stock_media_picker_list_content_description">مكتبة الصور</string>
<string name="photo_picker_image_thumbnail_unselected">لم تُحدَّد أي صور</string>
<string name="photo_picker_image_selected">، محدَّدة</string>
<string name="photo_picker_image_thumbnail_selected">تم تحديد صورة</string>
<string name="photo_picker_image_thumbnail_content_description">الصورة المصغَّرة</string>
<string name="my_site_bottom_sheet_add_post">مقالة المدونة</string>
<string name="my_site_bottom_sheet_title">إضافة جديد</string>
<string name="post_settings_publish">نشر</string>
<string name="dialog_gutenberg_informative_description_v2">أجرينا تحسينات هائلة في محرِّر المكوّن، ونظن أنها تستحق عناء المحاولة! قمنا بتمكينها في المقالات والصفحات الجديدة، ولكن إذا رغبتَ في التغيير إلى المحرِّر التقليدي فانتقل إلى \"موقعي\" > \"إعدادات الموقع\".</string>
<string name="dialog_confirm_scheduled_post_sync_yes">المزامنة الآن</string>
<string name="dialog_confirm_scheduled_post_sync_message">ستتم مزامنة هذه المقالة فورًا.</string>
<string name="dialog_confirm_scheduled_post_sync_title">هل أنت جاهز للمزامنة؟</string>
<string name="new_site_creation_unavailable_domain">هذا النطاق غير متاح.</string>
<string name="login_promo_viewpager_content_description">المقدمة</string>
<string name="negative_prefix">-%s</string>
<string name="login_discovery_error_generic">تعذر علينا الوصول إلى موقعك. سيتعين عليك الوصول إلى مضيفك لحل هذا الأمر.</string>
<string name="login_discovery_error_ssl">تعذر علينا الوصول إلى موقعك بسبب حدوث مشكلة في &lt;b>شهادة SSL&lt;/b>. سيتعين عليك الوصول إلى مضيفك لحل هذا الأمر.</string>
<string name="login_discovery_error_http_auth">تعذر علينا الوصول إلى موقعك لأنه يتطلب &lt;b>مصادقة HTTP&lt;/b>. سيتعين عليك الوصول إلى مضيفك لحل هذا الأمر.</string>
Expand All @@ -14,8 +41,6 @@ Language: ar
<string name="enter_site_credentials_instead">تسجيل الدخول باستخدام بيانات اعتماد الموقع</string>
<string name="enter_credentials_for_site">تسجيل الدخول باستخدام بيانات اعتماد الموقع %1$s الخاصة بك</string>
<string name="send_verification_email">إرسال رسالة تحقق عبر البريد الإلكتروني</string>
<string name="my_site_bottom_sheet_add_page">إنشاء صفحة جديدة</string>
<string name="my_site_bottom_sheet_add_post">إنشاء مقالة جديدة</string>
<string name="reader_following_display_name">المتابعة</string>
<string name="posts_cannot_be_started">يتعذر علينا فتح هذه المقالات الآن. يرجى المحاولة مجددًا في وقت لاحق</string>
<string name="suffix_1_000">%sk</string>
Expand Down Expand Up @@ -156,8 +181,6 @@ Language: ar
<string name="site_settings_editor">المُحرر</string>
<string name="description_expand">توسيع</string>
<string name="description_collapse">طيّ</string>
<string name="editor_retry_failed_uploads">إعادة محاولة الرفع</string>
<string name="editor_toast_failed_uploads">فشلت بعض عمليات رفع الوسائط. لا يمكنك حفظ أو نشر\n مقالتك في هذه الحالة.</string>
<string name="my_site_verify_your_email_without_email">تحقق من عنوان بريدك الإلكتروني - تم إرسال الإرشادات إلى بريدك الإلكتروني</string>
<string name="my_site_verify_your_email">تحقق من عنوان بريدك الإلكتروني - تم إرسال الإرشادات إلى %s</string>
<string name="link_dialog_button_cancel">إلغاء</string>
Expand Down Expand Up @@ -647,7 +670,6 @@ Language: ar
<string name="activity_log_rewind_started_snackbar_message">يتم الآن استعادة موقعك\nالاسترجاع إلى %1$s %2$s</string>
<string name="activity_log_button">زر الإجراء في سجل النشاط</string>
<string name="plugin_auto_managed">إدارة تلقائية</string>
<string name="reader_save_posts_locally_dialog_message">احفظ هذه المقالة، وعُد إلى قراءتها وقتما تشاء. لن تكون متاحة إلا على هذا الجهاز — لا تقوم المقالات المحفوظة بالمزامنة مع الأجهزة الأخرى. (ومع ذلك! نحن نعمل على إيجاد حل لهذا الأمر.)</string>
<string name="reader_save_posts_locally_dialog_title">حفظ المقالات لوقت لاحق</string>
<string name="reader_empty_search_request_failed">يتعذر إجراء البحث</string>
<string name="reader_empty_search_title">لم يتم العثور على نتائج</string>
Expand All @@ -672,7 +694,6 @@ Language: ar
<string name="reader_add_bookmark">إضافة إلى المقالات المحفوظة</string>
<string name="reader_save_for_later_title">المقالات المحفوظة</string>
<string name="removed">تم الحذف</string>
<string name="tabbar_accessibility_label_write">مقالة جديدة. كتابة مقالة جديدة.</string>
<string name="my_site_icon_content_description">تغيير رمز الموقع</string>
<string name="my_site_icon_dialog_cancel_button">إلغاء</string>
<string name="my_site_icon_dialog_remove_button">إزالة</string>
Expand Down Expand Up @@ -703,7 +724,6 @@ Language: ar
<string name="preference_privacy_settings">إعدادات الخصوصية</string>
<string name="preference_collect_information">جمع المعلومات</string>
<string name="post_submitted">تم إرسال المقالة</string>
<string name="write_post">كتابة مقالة</string>
<string name="login_email_button_signup">ليس لديك حساب؟ %1$sالتسجيل%2$s</string>
<string name="plugin_install_site_ineligible_site_graylisted">تتطلب ميزة المكوّن الإضافي أن يكون الموقع في وضع جيد.</string>
<string name="plugin_install_site_ineligible_not_domain_owner">تتطلب ميزة المكوّن الإضافي ربط اشترك النطاق الأساسي بهذا المستخدم.</string>
Expand Down Expand Up @@ -1258,7 +1278,6 @@ Language: ar
<string name="sharing">مشاركة</string>
<string name="tabbar_accessibility_label_notifications">تنبيهات. قم بإدارة تنبيهاتك.</string>
<string name="tabbar_accessibility_label_reader">القارئ. متابعة محتوى من مواقع أخرى.</string>
<string name="tabbar_accessibility_label_me">أنا. اعرض ملفك الشخصي وقم بإجراء تغييرات.</string>
<string name="tabbar_accessibility_label_my_site">موقعي. اعرض موقعك وقم بإدارته، بما في ذلك الإحصاءات.</string>
<string name="my_site_btn_sharing">مشاركة</string>
<string name="button_not_now">ليس الآن</string>
Expand Down
7 changes: 2 additions & 5 deletions WordPress/src/main/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Translation-Revision-Date: 2020-01-05 15:09:12+0000
Translation-Revision-Date: 2020-01-15 19:06:01+0000
Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
Generator: GlotPress/2.4.0-alpha
Language: cs_CZ
Expand Down Expand Up @@ -278,7 +278,7 @@ Language: cs_CZ
<string name="activity_log_rewind_started_snackbar_message">Vaše stránky jsou obnovovány.\nObnovuji stránku k %1$s %2$s</string>
<string name="activity_log_button">Tlačítko akce s protokolem aktivit</string>
<string name="plugin_auto_managed">Spravován automaticky</string>
<string name="reader_save_posts_locally_dialog_message">Uložte si příspěvek a kdykoli se k němu vraťe. Příspěvek bude dostupný pouze na tomto zařízení — na synchronizaci mezi zařízeními pracujeme.</string>
<string name="reader_save_posts_locally_dialog_message">Uložte si příspěvek a kdykoli se k němu vraťte. Příspěvek bude dostupný pouze na tomto zařízení.</string>
<string name="reader_save_posts_locally_dialog_title">Uložit příspěvek na později</string>
<string name="reader_empty_search_request_failed">Vyhledávání se nezdařilo</string>
<string name="reader_empty_search_title">Nebyly nalezeny žádné výsledky</string>
Expand All @@ -303,7 +303,6 @@ Language: cs_CZ
<string name="reader_add_bookmark">Přidat do uložených příspěvků</string>
<string name="reader_save_for_later_title">Uložené příspěvky</string>
<string name="removed">Odstraněno</string>
<string name="tabbar_accessibility_label_write">Nový příspěvek. Napište nový příspěvek.</string>
<string name="my_site_icon_content_description">Změnit ikonu webu</string>
<string name="my_site_icon_dialog_cancel_button">Zrušit</string>
<string name="my_site_icon_dialog_remove_button">Odstranit</string>
Expand Down Expand Up @@ -334,7 +333,6 @@ Language: cs_CZ
<string name="preference_privacy_settings">Nastavení ochrany osobních údajů</string>
<string name="preference_collect_information">Sbírat informace</string>
<string name="post_submitted">Příspěvek odeslán</string>
<string name="write_post">Napsat příspěvek</string>
<string name="login_email_button_signup">Ještě nemáte svůj účet? %1$sRegistrujte se%2$s</string>
<string name="plugin_install_site_ineligible_site_graylisted">Funkce pluginu vyžaduje, aby stránka byla v dobrém stavu.</string>
<string name="plugin_install_site_ineligible_not_domain_owner">Funkce tohoto pluginu vyžadují, aby byl tento uživatel přiřazen k odběru primární domény.</string>
Expand Down Expand Up @@ -889,7 +887,6 @@ Language: cs_CZ
<string name="sharing">Sdílení</string>
<string name="tabbar_accessibility_label_notifications">Notifikace. Spravovat notifikace.</string>
<string name="tabbar_accessibility_label_reader">Čtenář. Sledujte obsah z jiných stránek.</string>
<string name="tabbar_accessibility_label_me">Mě. Zobrazte svůj profil a proveďte změny.</string>
<string name="tabbar_accessibility_label_my_site">Moje stránka. Zobrazte své stránky a spravujte je, včetně statistik.</string>
<string name="my_site_btn_sharing">Sdílení</string>
<string name="button_not_now">Teď ne</string>
Expand Down
Loading