diff --git a/.configure b/.configure
index a0781f31f527..a5ae25087593 100644
--- a/.configure
+++ b/.configure
@@ -1,7 +1,7 @@
{
"project_name": "WordPress-Android",
"branch": "master",
- "pinned_hash": "62249ca6e914a98dcee0bb715fab1d24053ce65b",
+ "pinned_hash": "e0baad79188676d7447d5b8eca1cb27dd949bf4a",
"files_to_copy": [
{
"file": "android/WPAndroid/gradle.properties",
@@ -27,6 +27,11 @@
"file": "android/automattic.jks",
"destination": "WordPress/release.jks",
"encrypt": false
+ },
+ {
+ "file": "android/WPAndroid/google-upload-credentials.json",
+ "destination": "google-upload-credentials.json",
+ "encrypt": true
}
],
"file_dependencies": [
diff --git a/.configure-files/google-upload-credentials.json.enc b/.configure-files/google-upload-credentials.json.enc
new file mode 100644
index 000000000000..0cfcc8972372
Binary files /dev/null and b/.configure-files/google-upload-credentials.json.enc differ
diff --git a/.gitignore b/.gitignore
index bcf1c94c7f3b..55973889ee2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,7 +70,7 @@ WordPress/src/main/res/values/com_crashlytics_export_strings.xml
# Google services configuration
google-services.json
-# Fastlane
+# Fastlane
fastlane/.env*
fastlane/report.xml
fastlane/README.md
@@ -78,6 +78,7 @@ fastlane/metadata/android/screenshots.html
fastlane/metadata/android/*/images/
fastlane/screenshots_orig
default.profraw
+google-upload-credentials.json
# Bundler
/.bundle
diff --git a/WordPress/build.gradle b/WordPress/build.gradle
index faca61addfe9..96677bdab019 100644
--- a/WordPress/build.gradle
+++ b/WordPress/build.gradle
@@ -55,9 +55,9 @@ android {
if (project.hasProperty("versionName")) {
versionName project.property("versionName")
} else {
- versionName "alpha-229"
+ versionName "alpha-230"
}
- versionCode 882
+ versionCode 884
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
@@ -85,9 +85,9 @@ android {
dimension "buildType"
// Only set the release version if one isn't provided
if (!project.hasProperty("versionName")) {
- versionName "15.1-rc-1"
+ versionName "15.1-rc-2"
}
- versionCode 881
+ versionCode 883
buildConfigField "boolean", "ME_ACTIVITY_AVAILABLE", "false"
buildConfigField "boolean", "TENOR_AVAILABLE", "false"
buildConfigField "boolean", "READER_IMPROVEMENTS_PHASE_2", "false"
diff --git a/WordPress/metadata/PlayStoreStrings.po b/WordPress/metadata/PlayStoreStrings.po
index 27e8980f3169..6294e61390fa 100644
--- a/WordPress/metadata/PlayStoreStrings.po
+++ b/WordPress/metadata/PlayStoreStrings.po
@@ -11,6 +11,14 @@ 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_151"
+msgid ""
+"15.1:\n"
+"Block editor improvements: Scheduling, tag, and visibility settings pop up in the post editor and post list when you tap Publish — tweak them and tap “Publish Now” to complete publication. Pressing enter after adding a caption in Image, Video, Gallery, Quote, and Pullquote blocks automatically adds a new block.\n"
+"\n"
+"Fixes: Video thumbnails, settings, and preview display properly in the Media section on private sites. Notifications and Install Jetpack tabs no longer display on top of one another.\n"
+msgstr ""
+
msgctxt "release_note_150"
msgid ""
"15.0:\n"
@@ -20,15 +28,15 @@ msgid ""
"Other updates: Added homepage settings to pages list and to site settings. Improved Reader UI.\n"
msgstr ""
-msgctxt "release_note_149"
+#. translators: A shorter version of the Release notes to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
+msgctxt "release_note_short_151"
msgid ""
-"14.9:\n"
-"Block editor enhancements: New Pullquote block, Button block color options, updated page templates.\n"
+"15.1:\n"
+"Improvements: Scheduling, tag, and visibility panel pops up in editor and post list pre-publication. Pressing enter after adding captions in Image, Video, Gallery, Quote, and Pullquote blocks adds a new block.\n"
"\n"
-"Block editor fixes: Free Photo Library bug that inserted single images even if several were selected, preview failure when switching to the classic editor. Removed non-functional Subscription Button from Blog template.\n"
+"Fixes: Video thumbnails, settings, and preview display properly on private sites. Notifications and Install Jetpack tabs no longer overlay.\n"
msgstr ""
-#. translators: A shorter version of the Release notes to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "release_note_short_150"
msgid ""
"15.0:\n"
@@ -37,12 +45,6 @@ msgid ""
"Other updates: Added homepage settings to pages list and to site settings.\n"
msgstr ""
-msgctxt "release_note_short_149"
-msgid ""
-"14.9:\n"
-"Block editor enhancements: New Pullquote block, Button block color options, updated page templates.\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."
diff --git a/WordPress/metadata/release_notes.txt b/WordPress/metadata/release_notes.txt
index 6cb321b11b78..11474cec8db2 100644
--- a/WordPress/metadata/release_notes.txt
+++ b/WordPress/metadata/release_notes.txt
@@ -1,4 +1,3 @@
-Block editor additions: New Verse block. Support for overlay colors in Cover block. Enter/exit animation for the Floating Toolbar. Tooltip for page template selection buttons.
-Block editor updates: “Trash block” in a menu reachable from the block toolbar.
-Block editor fixes: Text block merging issue, button alignment in page templates, string inconsistencies.
-Other updates: Added homepage settings to pages list and to site settings. Improved Reader UI.
+Block editor improvements: Scheduling, tag, and visibility settings pop up in the post editor and post list when you tap Publish — tweak them and tap “Publish Now” to complete publication. Pressing enter after adding a caption in Image, Video, Gallery, Quote, and Pullquote blocks automatically adds a new block.
+
+Fixes: Video thumbnails, settings, and preview display properly in the Media section on private sites. Notifications and Install Jetpack tabs no longer display on top of one another.
diff --git a/WordPress/metadata/release_notes_short.txt b/WordPress/metadata/release_notes_short.txt
index 52d6729ec466..b5472bb46454 100644
--- a/WordPress/metadata/release_notes_short.txt
+++ b/WordPress/metadata/release_notes_short.txt
@@ -1,3 +1,3 @@
-Block editor additions: New Verse block. Support for overlay colors in Cover block. Enter/exit animation for Floating Toolbar. Tooltip for page template selection buttons.
-Block editor updates: “Trash block” in a menu reachable from the block toolbar.
-Other updates: Added homepage settings to pages list and to site settings.
+Improvements: Scheduling, tag, and visibility panel pops up in editor and post list pre-publication. Pressing enter after adding captions in Image, Video, Gallery, Quote, and Pullquote blocks adds a new block.
+
+Fixes: Video thumbnails, settings, and preview display properly on private sites. Notifications and Install Jetpack tabs no longer overlay.
diff --git a/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java
index b0f54e25b956..c8f94eb36ab8 100644
--- a/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java
+++ b/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java
@@ -1401,7 +1401,7 @@ private void showMoreMenu(View view) {
}
private void trashComment() {
- if (!isAdded() && mComment == null) {
+ if (!isAdded() || mComment == null) {
return;
}
diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt b/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt
index 3a36505d11a0..adf3f94a28dc 100644
--- a/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt
+++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/PrepublishingTagsViewModel.kt
@@ -39,10 +39,11 @@ class PrepublishingTagsViewModel @Inject constructor(
val toolbarTitleUiState: LiveData = _toolbarTitleUiState
fun start(editPostRepository: EditPostRepository) {
+ this.editPostRepository = editPostRepository
+
if (isStarted) return
isStarted = true
- this.editPostRepository = editPostRepository
setToolbarTitleUiState()
}
diff --git a/build.gradle b/build.gradle
index 209721da04d2..6df4d73b7add 100644
--- a/build.gradle
+++ b/build.gradle
@@ -124,7 +124,7 @@ ext {
androidxWorkVersion = "2.0.1"
daggerVersion = '2.22.1'
- fluxCVersion = '1.6.14'
+ fluxCVersion = '1.6.14.1'
appCompatVersion = '1.0.2'
constraintLayoutVersion = '1.1.3'
diff --git a/fastlane/Fastfile b/fastlane/Fastfile
index 19aa3a68ed7b..48c1020af9e8 100644
--- a/fastlane/Fastfile
+++ b/fastlane/Fastfile
@@ -52,7 +52,7 @@ ENV["HAS_ALPHA_VERSION"]="true"
# bundle exec fastlane code_freeze [update_release_branch_version:] [skip_confirm:]
#
# Example:
- # bundle exec fastlane code_freeze
+ # bundle exec fastlane code_freeze
# bundle exec fastlane code_freeze update_release_branch_version:false
# bundle exec fastlane code_freeze skip_confirm:true
#####################################################################################
@@ -60,13 +60,13 @@ ENV["HAS_ALPHA_VERSION"]="true"
lane :code_freeze do | options |
gutenberg_dep_check()
old_version = android_codefreeze_prechecks(options)
-
+
android_bump_version_release()
new_version = android_get_app_version()
android_update_release_notes(new_version: new_version)
setbranchprotection(repository:GHHELPER_REPO, branch: "release/#{new_version}")
setfrozentag(repository:GHHELPER_REPO, milestone: new_version)
-
+
localize_gutenberg(skip_module_update: true)
localize_libs()
ensure_git_status_clean()
@@ -74,7 +74,7 @@ ENV["HAS_ALPHA_VERSION"]="true"
end
#####################################################################################
-# update_appstore_strings
+# update_appstore_strings
# -----------------------------------------------------------------------------------
# This lane gets the data from the txt files in the WordPress/metadata/ folder
# and updates the .po file that is then picked by GlotPress for translations.
@@ -86,7 +86,7 @@ ENV["HAS_ALPHA_VERSION"]="true"
# fastlane update_appstore_strings version:10.3
#####################################################################################
desc "Updates the PlayStoreStrings.po file"
- lane :update_appstore_strings do |options|
+ lane :update_appstore_strings do |options|
prj_folder = Dir.pwd + "/.."
files = {
@@ -110,10 +110,10 @@ ENV["HAS_ALPHA_VERSION"]="true"
enhanced_app_store_screenshot_7: prj_folder + "/WordPress/metadata/enhanced_screenshot_7.html",
}
- android_update_metadata_source(po_file_path: prj_folder + "/WordPress/metadata/PlayStoreStrings.po",
- source_files: files,
+ android_update_metadata_source(po_file_path: prj_folder + "/WordPress/metadata/PlayStoreStrings.po",
+ source_files: files,
release_version: options[:version])
- end
+ end
#####################################################################################
# new_beta_release
@@ -141,7 +141,7 @@ ENV["HAS_ALPHA_VERSION"]="true"
#####################################################################################
# new_hotfix_release
# -----------------------------------------------------------------------------------
- # This lane updates the release branch for a new hotix release.
+ # This lane updates the release branch for a new hotix release.
# -----------------------------------------------------------------------------------
# Usage:
# bundle exec fastlane new_hotfix_release [skip_confirm:] [version:]
@@ -156,18 +156,18 @@ ENV["HAS_ALPHA_VERSION"]="true"
android_bump_version_hotfix(previous_version_name: prev_ver, version_name: options[:version_name], version_code: options[:version_code])
android_tag_build(tag_alpha: false)
end
-
+
#####################################################################################
# finalize_release
# -----------------------------------------------------------------------------------
# This lane finalize a release: updates store metadata and runs the release checks
# -----------------------------------------------------------------------------------
# Usage:
- # bundle exec fastlane finalize_release [skip_confirm:]
+ # bundle exec fastlane finalize_release [skip_confirm:]
#
# Example:
- # bundle exec fastlane finalize_release
- # bundle exec fastlane finalize_release skip_confirm:true
+ # bundle exec fastlane finalize_release
+ # bundle exec fastlane finalize_release skip_confirm:true
#####################################################################################
desc "Updates store metadata and runs the release checks"
lane :finalize_release do | options |
@@ -189,62 +189,64 @@ ENV["HAS_ALPHA_VERSION"]="true"
#####################################################################################
# build_release
# -----------------------------------------------------------------------------------
- # This lane builds the final release of the app and uploads it
+ # This lane builds the final release of the app and uploads it
# -----------------------------------------------------------------------------------
# Usage:
# bundle exec fastlane build_release [skip_confirm:]
#
# Example:
- # bundle exec fastlane build_release
- # bundle exec fastlane build_release skip_confirm:true
+ # bundle exec fastlane build_release
+ # bundle exec fastlane build_release skip_confirm:true
#####################################################################################
desc "Builds and updates for distribution"
- lane :build_release do | options |
- android_build_prechecks(skip_confirm: options[:skip_confirm],
+ lane :build_and_upload_release do | options |
+ android_build_prechecks(skip_confirm: options[:skip_confirm],
alpha: false,
beta: false,
final: true)
android_build_preflight()
-
+
# Create the file names
version=android_get_release_version()
build_bundle(version: version, flavor:"Vanilla", buildType: "release")
+
+ upload_build_to_play_store(version: version["name"], track: "production")
end
#####################################################################################
- # build_pre_releases
+ # build_and_upload_pre_releases
# -----------------------------------------------------------------------------------
- # This lane builds the app it for both internal and external distribution
+ # This lane builds the app it for both internal and external distribution and uploads them
# -----------------------------------------------------------------------------------
# Usage:
- # bundle exec fastlane build_pre_releases [skip_confirm:]
+ # bundle exec fastlane build_and_upload_pre_releases [skip_confirm:]
#
# Example:
- # bundle exec fastlane build_pre_releases
- # bundle exec fastlane build_pre_releases skip_confirm:true
+ # bundle exec fastlane build_and_upload_pre_releases
+ # bundle exec fastlane build_and_upload_pre_releases skip_confirm:true
#####################################################################################
desc "Builds and updates for distribution"
- lane :build_pre_releases do | options |
- android_build_prechecks(skip_confirm: options[:skip_confirm],
+ lane :build_and_upload_pre_releases do | options |
+ android_build_prechecks(skip_confirm: options[:skip_confirm],
alpha: true,
beta: true,
final: false)
android_build_preflight()
- build_alpha(skip_prechecks: true, skip_confirm: options[:skip_confirm])
- build_beta(skip_prechecks: true, skip_confirm: options[:skip_confirm])
+ build_alpha(skip_prechecks: true, skip_confirm: options[:skip_confirm], upload_to_play_store: true)
+ build_beta(skip_prechecks: true, skip_confirm: options[:skip_confirm], upload_to_play_store: true)
end
#####################################################################################
# build_alpha
# -----------------------------------------------------------------------------------
- # This lane builds the app it for internal testing
+ # This lane builds the app it for internal testing and optionally uploads it
# -----------------------------------------------------------------------------------
# Usage:
- # bundle exec fastlane build_alpha [skip_confirm:]
+ # bundle exec fastlane build_alpha [skip_confirm:] [upload_to_play_store:]
#
# Example:
- # bundle exec fastlane build_alpha
- # bundle exec fastlane build_alpha skip_confirm:true
+ # bundle exec fastlane build_alpha
+ # bundle exec fastlane build_alpha skip_confirm:true upload_to_play_store:true
#####################################################################################
desc "Builds and updates for distribution"
lane :build_alpha do | options |
@@ -254,19 +256,23 @@ ENV["HAS_ALPHA_VERSION"]="true"
# Create the file names
version=android_get_alpha_version()
build_bundle(version: version, flavor:"Zalpha", buildType: "release")
+
+ if (options[:upload_to_play_store]) then
+ upload_build_to_play_store(version: version["name"], track: "alpha")
+ end
end
#####################################################################################
# build_beta
# -----------------------------------------------------------------------------------
- # This lane builds the app it for internal testing
+ # This lane builds the app it for internal testing and optionally uploads it
# -----------------------------------------------------------------------------------
# Usage:
- # bundle exec fastlane build_beta [skip_confirm:]
+ # bundle exec fastlane build_beta [skip_confirm:] [upload_to_play_store:]
#
# Example:
- # bundle exec fastlane build_beta
- # bundle exec fastlane build_beta skip_confirm:true
+ # bundle exec fastlane build_beta
+ # bundle exec fastlane build_beta skip_confirm:true upload_to_play_store:true
#####################################################################################
desc "Builds and updates for distribution"
lane :build_beta do | options |
@@ -276,10 +282,48 @@ ENV["HAS_ALPHA_VERSION"]="true"
# Create the file names
version=android_get_release_version()
build_bundle(version: version, flavor:"Vanilla", buildType: "release")
+
+ if (options[:upload_to_play_store]) then
+ upload_build_to_play_store(version: version["name"], track: "beta")
+ end
end
#####################################################################################
- # download_metadata_string
+ # upload_build_to_play_store
+ # -----------------------------------------------------------------------------------
+ # This lane uploads the build to Play Store for the given version to the given track
+ # -----------------------------------------------------------------------------------
+ # Usage:
+ # bundle exec fastlane upload_build_to_play_store version: track: