Skip to content

Commit cfc7271

Browse files
committed
Merge branch 'develop' into issue/view-site-internal-browser
2 parents 1b0dd18 + 26767c8 commit cfc7271

File tree

157 files changed

+7860
-4165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+7860
-4165
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
type: instrumentation
7272
apk-path: WordPress/build/outputs/apk/vanilla/debug/WordPress-vanilla-debug.apk
7373
test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/WordPress-vanilla-debug-androidTest.apk
74+
test-targets: package org.wordpress.android.e2e
7475
device: model=Nexus5X,version=26,locale=en,orientation=portrait
7576
project: api-project-108380595987
7677
timeout: 10m

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Using another account like bar@email.com will cause the `Client cannot use "pass
4949

5050
For security reasons, some account-related actions aren't supported for development
5151
builds when using a WordPress.com account with 2-factor authentication enabled.
52-
There is also currently an [issue](https://github.com/wordpress-mobile/WordPress-Android/issues/8754) where a restart of the app is required to complete login in this case.
5352

5453
Read more about [OAuth2][6] and the [WordPress.com REST endpoint][7].
5554

RELEASE-NOTES.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
12.8
2+
-----
3+
4+
15
12.7
26
-----
37
* Show upload in progress notification when retrying
48
* Fix issue where two identical drafts were created
9+
* Block Editor: Fixed keyboard flickering issue after pressing Enter repeatedly on the Post Title.
10+
* Block Editor: New blocks are available: video/quote/more
11+
* Block Editor: performance improvements
12+
* Fixed issue where text appeared behind list of themes on the theme screen
13+
* Domain Registration functionality for Business plan customers on a site without a custom domain during plugin installation
514

615
12.6
716
-----
@@ -68,3 +77,4 @@
6877
* Updated Notifications with tabs
6978
* Add Posting activity block to the Stats/Insights
7079
* Fixed error notifications for failed uploads
80+

WordPress/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ android {
4444

4545
defaultConfig {
4646
applicationId "org.wordpress.android"
47-
versionName "alpha-172"
48-
versionCode 734
47+
versionName "alpha-175"
48+
versionCode 741
4949
minSdkVersion 21
5050
targetSdkVersion 26
5151

WordPress/metadata/PlayStoreStrings.po

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ msgstr ""
1111
"Project-Id-Version: Release Notes & Play Store Descriptions\n"
1212

1313
#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
14+
msgctxt "release_note_127"
15+
msgid ""
16+
"12.7:\n"
17+
"* Quote and More blocks are now available, and we fixed an issue that caused the keyboard in the editor to flicker if you repeatedly pressed Enter on a post title.\n"
18+
"* Business plan customers can register a custom domain when installing a plugin.\n"
19+
"* Sometimes when you started a new draft, the app would create two. Fixed!\n"
20+
msgstr ""
21+
1422
msgctxt "release_note_126"
1523
msgid ""
1624
"12.6:\n"
1725
"* Block Editor improvements: You’ll see clearer error messages when a block contains invalid content, and an issue in link settings (“Open in New Tab” was always OFF on open) is fixed.\n"
1826
"* Better offline support: If you draft a page while offline, the app will automatically upload it to the server as soon as an internet connection is available.\n"
1927
msgstr ""
2028

21-
msgctxt "release_note_125"
22-
msgid ""
23-
"12.5:\n"
24-
"Better offline support: If you draft offline, drafts automatically upload to the server when you log in.\n"
25-
"Clearer stats: Navigate to a post’s detailed data by clicking on its title on the Stats screen. The current day’s stats appear in gray to help you remember that they’re not final.\n"
26-
msgstr ""
27-
2829
msgctxt "sample_post_content"
2930
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."
3031
msgstr ""
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
* Block Editor improvements: You’ll see clearer error messages when a block contains invalid content, and an issue in link settings (“Open in New Tab” was always OFF on open) is fixed.
2-
* Better offline support: If you draft a page while offline, the app will automatically upload it to the server as soon as an internet connection is available.
1+
* Quote and More blocks are now available, and we fixed an issue that caused the keyboard in the editor to flicker if you repeatedly pressed Enter on a post title.
2+
* Business plan customers can register a custom domain when installing a plugin.
3+
* Sometimes when you started a new draft, the app would create two. Fixed!

WordPress/src/androidTest/java/org/wordpress/android/e2e/flows/LoginFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.wordpress.android.R;
1313
import org.wordpress.android.ui.accounts.LoginMagicLinkInterceptActivity;
1414

15-
import static androidx.test.InstrumentationRegistry.getTargetContext;
15+
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
1616
import static androidx.test.espresso.Espresso.onView;
1717
import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA;
1818
import static androidx.test.espresso.matcher.ViewMatchers.withId;
@@ -76,7 +76,7 @@ private void chooseMagicLink(ActivityTestRule<LoginMagicLinkInterceptActivity> m
7676
// Follow the magic link to continue login
7777
// Intent is invoked directly rather than through a browser as WireMock is unavailable once in the background
7878
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("wordpress://magic-login?token=valid_token"))
79-
.setPackage(getTargetContext().getPackageName());
79+
.setPackage(getApplicationContext().getPackageName());
8080
magicLinkActivityTestRule.launchActivity(intent);
8181
}
8282

WordPress/src/androidTest/java/org/wordpress/android/e2e/flows/SignupFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.wordpress.android.R;
1010
import org.wordpress.android.ui.accounts.LoginMagicLinkInterceptActivity;
1111

12-
import static androidx.test.InstrumentationRegistry.getTargetContext;
12+
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
1313
import static androidx.test.espresso.Espresso.onView;
1414
import static androidx.test.espresso.matcher.ViewMatchers.withHint;
1515
import static androidx.test.espresso.matcher.ViewMatchers.withId;
@@ -36,7 +36,7 @@ public void enterEmail(String email,
3636
Intent intent = new Intent(
3737
Intent.ACTION_VIEW,
3838
Uri.parse("wordpress://magic-login?token=valid_token&new_user=1")
39-
).setPackage(getTargetContext().getPackageName());
39+
).setPackage(getApplicationContext().getPackageName());
4040

4141
magicLinkActivityTestRule.launchActivity(intent);
4242
}

WordPress/src/androidTest/java/org/wordpress/android/e2e/pages/EditorPage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import org.wordpress.android.R;
77

8-
import static androidx.test.InstrumentationRegistry.getInstrumentation;
8+
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
99
import static androidx.test.espresso.Espresso.onView;
1010
import static androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu;
1111
import static androidx.test.espresso.Espresso.pressBack;
@@ -76,7 +76,7 @@ public void enterImage() {
7676
}
7777

7878
public void openSettings() {
79-
openActionBarOverflowOrOptionsMenu(getInstrumentation().getTargetContext());
79+
openActionBarOverflowOrOptionsMenu(getApplicationContext());
8080
clickOn(onView(withText("Post settings")));
8181
}
8282

WordPress/src/androidTest/java/org/wordpress/android/support/BaseTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.wordpress.android.support;
22

3-
import androidx.test.InstrumentationRegistry;
3+
import androidx.test.core.app.ApplicationProvider;
4+
import androidx.test.platform.app.InstrumentationRegistry;
45
import androidx.test.rule.ActivityTestRule;
56

67
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
@@ -31,8 +32,7 @@ public class BaseTest {
3132

3233
@Before
3334
public void setup() {
34-
mAppContext =
35-
(WordPress) InstrumentationRegistry.getInstrumentation().getTargetContext().getApplicationContext();
35+
mAppContext = ApplicationProvider.getApplicationContext();
3636
mMockedAppComponent = DaggerAppComponentTest.builder()
3737
.application(mAppContext)
3838
.build();
@@ -41,7 +41,8 @@ public void setup() {
4141
@Rule
4242
public WireMockRule wireMockRule = new WireMockRule(
4343
options().port(WIREMOCK_PORT)
44-
.fileSource(new AssetFileSource(InstrumentationRegistry.getContext().getAssets()))
44+
.fileSource(new AssetFileSource(
45+
InstrumentationRegistry.getInstrumentation().getContext().getAssets()))
4546
.extensions(new ResponseTemplateTransformer(true))
4647
.notifier(new AndroidNotifier()));
4748
@Rule

0 commit comments

Comments
 (0)