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

1.29.0 Release #2321

Merged
merged 151 commits into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
de59a3e
Update Gutenberg ref to point to text-clipping fix attempt
hypest Apr 10, 2020
82b609f
Add empty mention implementation for demo app
mchowning Apr 16, 2020
2cbc40a
Update release notes
mchowning Apr 15, 2020
4b76cff
Update gutenberg ref
mchowning Apr 10, 2020
0d04a82
Add stub function for iOS
SergioEstevao Apr 16, 2020
ce88a8a
Implement delegate method for requesting mentions.
SergioEstevao Apr 16, 2020
a0a3ec5
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 17, 2020
fae7dc6
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 20, 2020
41dbe0a
User error domain and code information on the promise's rejecter
SergioEstevao Apr 20, 2020
8446c5b
Stub demo app to always mention "matt"
mchowning Apr 20, 2020
db492a3
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 21, 2020
7532fb4
Update GB reference.
SergioEstevao Apr 21, 2020
58d372e
Update bundles.
SergioEstevao Apr 21, 2020
c06e7b6
Update GB reference.
SergioEstevao Apr 22, 2020
411492e
Update GB reference.
SergioEstevao Apr 23, 2020
8eb2c1b
Update bundles.
SergioEstevao Apr 23, 2020
65383b8
Update GB reference.
SergioEstevao Apr 24, 2020
167a947
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 24, 2020
c9cfbb0
Add capabilities check support for mentions.
SergioEstevao Apr 24, 2020
3ec3a90
Update bundles.
SergioEstevao Apr 24, 2020
1a57491
Make sure there is a default value for capabilities when is not defined.
SergioEstevao Apr 24, 2020
e49d01b
Formating fix to make Prettier happy
mchowning Apr 24, 2020
08f760f
Add capabilities initial prop for Android
mchowning Apr 24, 2020
5c7bea0
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 27, 2020
166cca2
Update GB reference.
SergioEstevao Apr 27, 2020
4d923da
Update GB reference.
SergioEstevao Apr 27, 2020
94cca3d
Update GB reference.
SergioEstevao Apr 28, 2020
f145c1b
Update bundles.
SergioEstevao Apr 28, 2020
27411aa
Update gutenberg ref
mchowning Apr 28, 2020
84632cc
Patch react native to get posibility to disable buttons in ActionSheet
lukewalczak Apr 30, 2020
f3552d1
Merge branch 'develop' into issue_331/mention_support
SergioEstevao Apr 30, 2020
9356fd8
Update gutenberg reference
mkevins May 8, 2020
0895dd6
Update gutenberg reference
mkevins May 8, 2020
35d2519
Add release note for Cover block color settings
mkevins May 8, 2020
4a0547e
Update GB reference.
SergioEstevao May 8, 2020
5980b5e
Merge branch 'develop' into issue_331/mention_support
SergioEstevao May 8, 2020
800c121
Retrieve react-native version from package.json
trackq May 9, 2020
adac1a2
Delete external dependency
trackq May 9, 2020
7d2114b
Return react-native version based on environment
trackq May 9, 2020
8bef3f0
Refactored codestyle
trackq May 9, 2020
2932bdb
Reverted back to original
trackq May 11, 2020
7b1cc91
Update bundles.
SergioEstevao May 11, 2020
b33bbb0
Merge branch 'develop' into issue_331/mention_support
SergioEstevao May 11, 2020
76e43cb
Update bundles.
SergioEstevao May 11, 2020
6248f47
Updating gutenberg ref after fix merge to master
cameronvoell May 11, 2020
fefdb76
Merge pull request #2151 from wordpress-mobile/issue/2136-text-gets-c…
cameronvoell May 12, 2020
cb72ac2
Update gutenberg reference
mkevins May 12, 2020
32c42f2
Merge branch 'develop' into feature/cover-block-color-settings
mkevins May 12, 2020
523310c
Bump release note to next version
mkevins May 13, 2020
ab7ecbc
Update gutenberg reference
mkevins May 13, 2020
e6d8fbf
Merge pull request #2242 from wordpress-mobile/feature/cover-block-co…
mkevins May 13, 2020
efe0087
Refactor: remove override support inserter for columns block (#2221)
jbinda May 13, 2020
a11a5c7
Feat: entry/exit animation in FloatingToolbar (#2225)
jbinda May 13, 2020
6193bd1
Update Gutenberg ref
May 13, 2020
f8b46f6
Update Gutenberg ref
May 13, 2020
99dfa39
Feat: BottomSheet ripple effect (#2235)
jbinda May 13, 2020
a34ff36
Merge branch 'develop' into fix/spt-portfolio-template-gallery
May 13, 2020
d7fcfc1
Merge pull request #2257 from wordpress-mobile/fix/spt-portfolio-temp…
May 13, 2020
840678c
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
mchowning May 16, 2020
26fdb56
Merge pull request #2269 from wordpress-mobile/master-to-develop-post…
mchowning May 18, 2020
53e317b
Update GB reference.
SergioEstevao May 18, 2020
399ef0b
Enable verse block (#2185)
guarani May 18, 2020
db05178
Update GB reference.
SergioEstevao May 19, 2020
f6346f6
Merge branch 'develop' into issue_331/mention_support
SergioEstevao May 19, 2020
a0df91e
Update GB reference.
SergioEstevao May 20, 2020
1f5ee28
Update bundles.
SergioEstevao May 20, 2020
bd44f9a
Merge pull request #2163 from wordpress-mobile/issue_331/mention_support
SergioEstevao May 20, 2020
4e09c07
Defend the code from NPE (check if layout isn't null)
marecar3 May 20, 2020
fbbc2d7
Update GB reference.
SergioEstevao May 20, 2020
ca3687b
Merge branch 'develop' into issue/1873_styled_text_not_merged
SergioEstevao May 20, 2020
2539b60
Update release notes.
SergioEstevao May 20, 2020
7ad201d
Merge pull request #2271 from wordpress-mobile/issue/1873_styled_text…
SergioEstevao May 20, 2020
c7af6ca
Reverted back to '8bef3f0'
trackq May 21, 2020
c38c98d
[UI tests] Run canaries on a PR and optionally full suite (#2137)
Stojdza May 21, 2020
5b5d8cc
Change log from error to warning
marecar3 May 21, 2020
954845b
Merge branch 'develop' into issue/11821_Attempt-to-invoke-virtual-met…
marecar3 May 21, 2020
dd2a9a7
Merge pull request #2276 from wordpress-mobile/issue/11821_Attempt-to…
hypest May 21, 2020
7bb27c3
Insure bundle file exists when determining up-to-date status
mchowning May 21, 2020
51389eb
Merge pull request #2299 from wordpress-mobile/improve_incremental_bu…
hypest May 22, 2020
f48f1cf
Merge remote-tracking branch 'upstream/develop' into fixme-react-nati…
trackq May 22, 2020
2fdc03d
Use RN patch, update tests
lukewalczak May 22, 2020
8849d32
Merge branch 'develop' into allow-shrink-mobile
lukewalczak May 22, 2020
e7433cb
Update RELEASE-NOTES
lukewalczak May 22, 2020
5ca1a2f
Update GB reference to fix web breakage in Clipboard.
SergioEstevao May 22, 2020
d95255a
Merge pull request #2248 from trackq/fixme-react-native-version
mchowning May 22, 2020
f5828cd
Delete temporary RN tools before building
hypest May 22, 2020
7a41649
Merge branch 'develop' into issue/fix_clipboard_web_breakage
SergioEstevao May 22, 2020
4a7065a
Update GB reference with fix for clipboard breakage.
SergioEstevao May 22, 2020
a5d8b2a
Update ref to point to gutenberg master
lukewalczak May 22, 2020
dbbc15f
Merge branch 'develop' into allow-shrink-mobile
lukewalczak May 22, 2020
710cd95
Update RELEASE-NOTES
lukewalczak May 22, 2020
d57c647
Allow shrink mobile toolbar (#2220)
lukewalczak May 22, 2020
3bedc0c
Update GB reference.
SergioEstevao May 22, 2020
712fab2
Update initial HTML.
SergioEstevao May 22, 2020
ce9e380
Add jetpack block.
SergioEstevao May 22, 2020
4a51136
Merge pull request #2304 from wordpress-mobile/issue/fix_clipboard_we…
SergioEstevao May 22, 2020
448c537
[tech-debt] block-list optimisation (#2262)
dratwas May 22, 2020
b0c8747
Merge branch 'develop' into issue/update_initial_html
SergioEstevao May 22, 2020
8c94ccf
Adding unsupported block to initial HTML example
etoledom May 22, 2020
56f6486
Change reference .com vs .org
SergioEstevao May 22, 2020
956fa4d
Merge pull request #2306 from wordpress-mobile/issue/update_initial_html
SergioEstevao May 22, 2020
b193c71
Merge pull request #2305 from wordpress-mobile/issue/2302-cannot-foll…
hypest May 25, 2020
9ecd115
Add selectionStart and selectionEnd to transientEdits (#2285)
dratwas May 25, 2020
a6c3457
Update Appium version to 1.16.0
SergioEstevao May 25, 2020
cd2fadd
Merge pull request #2309 from wordpress-mobile/issue/update_appium_on…
SergioEstevao May 25, 2020
c868cb8
Update gutenberg ref
Tug May 25, 2020
aba6552
Merge remote-tracking branch 'origin/develop' into master_develop_1.2…
mchowning May 25, 2020
c30e2fa
Resolve Podfile conflict
mchowning May 25, 2020
95324ed
Update bundles
mchowning May 25, 2020
f103034
Update podfile.lock
SergioEstevao May 25, 2020
3ff6c13
Update gutenberg reference
mkevins May 26, 2020
59220b0
Tooltip for page template selection buttons (#2216)
May 26, 2020
8dfb75d
Update gutenberg reference
mkevins May 26, 2020
42752c0
Merge branch 'develop' into fix/page-templates-button-alignment-and-s…
mkevins May 26, 2020
717a91b
Add release note
mkevins May 26, 2020
6f9ce56
Update gutenberg ref
Tug May 26, 2020
ebd2c08
Update gutenberg reference
mkevins May 26, 2020
1a01789
Update gutenberg reference
mkevins May 26, 2020
cb87b86
Update gutenberg ref
Tug May 26, 2020
ce09238
Update gutenberg reference
mkevins May 26, 2020
3b61505
Merge remote-tracking branch 'origin/develop' into fix/freeform
Tug May 26, 2020
ecddba0
Update gutenberg reference
mkevins May 26, 2020
f691caa
Try getting the HTML from the component state instead of syncing to t…
Tug May 26, 2020
cdf59ac
Merge branch 'develop' into master_develop_1.28.1_merge
SergioEstevao May 26, 2020
c3c0e40
Update gutenberg reference
mkevins May 26, 2020
4df37e6
Update gutenberg reference
mkevins May 26, 2020
e01a976
Merge pull request #2314 from wordpress-mobile/fix/page-templates-but…
mkevins May 26, 2020
448ae0c
Skip list with spaces test that started failing
mchowning May 26, 2020
a4419c3
Merge pull request #2313 from wordpress-mobile/master_develop_1.28.1_…
SergioEstevao May 26, 2020
ae69fc5
Update gutenberg submodule ref
mchowning May 26, 2020
bff2e1a
Re-enable list spaces test
mchowning May 26, 2020
b8f9998
Update gutenberg submodule ref
mchowning May 26, 2020
486acca
Merge pull request #2317 from wordpress-mobile/update_to_latest_guten…
mchowning May 26, 2020
22feeab
Display radial gradient in block which supporting gradients (#2266)
lukewalczak May 26, 2020
fc396db
Update Aztec to version 1.19.2
SergioEstevao May 26, 2020
c9b13fa
Update gutenberg ref before merge
Tug May 26, 2020
85e36ce
Merge remote-tracking branch 'origin/develop' into fix/freeform
Tug May 26, 2020
855620e
Merge pull request #2312 from wordpress-mobile/fix/freeform
Tug May 26, 2020
619c084
Merge pull request #2318 from wordpress-mobile/issue/update_aztec_to_…
mchowning May 26, 2020
c85e8a2
yarn version to 1.29.0
mchowning May 26, 2020
d4e4c9b
Fix release note formatting
mchowning May 26, 2020
522570d
Merge pull request #2322 from wordpress-mobile/issue/update_aztec_to_…
SergioEstevao May 26, 2020
fab6583
Update podfile.lock file.
SergioEstevao May 26, 2020
63e8a69
Update GB reference.
SergioEstevao May 27, 2020
fedace0
Update bundles.
SergioEstevao May 27, 2020
30fad62
Merge remote-tracking branch 'origin/master' into update_1.29.0_with_…
mchowning May 28, 2020
698ab39
Update gutenberg submodule ref
mchowning May 28, 2020
54de16f
Update bundles
mchowning May 28, 2020
b83c9c4
Update GB reference.
SergioEstevao May 29, 2020
dc63859
Update gb reference
mchowning May 29, 2020
553babc
Update bundle files
mchowning May 29, 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
30 changes: 26 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
description: Post to Slack when tests fail. SLACK_WEBHOOK ENV variable must be set.
type: boolean
default: false
is-canary:
type: string
default: ""
docker:
- image: circleci/android:api-29-node
steps:
Expand All @@ -92,7 +95,8 @@ jobs:
curl -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" -X POST -H "Content-Type: application/octet-stream" https://saucelabs.com/rest/v1/storage/automattic/Gutenberg-$SAUCE_FILENAME.apk?overwrite=true --data-binary @./android/app/build/outputs/apk/debug/app-debug.apk
- run:
name: Run Device Tests
command: yarn device-tests
command: yarn device-tests<<parameters.is-canary>>
no_output_timeout: 1200
environment:
JEST_JUNIT_OUTPUT: "reports/test-results/android-test-results.xml"
- store_test_results:
Expand Down Expand Up @@ -125,6 +129,9 @@ jobs:
description: Post to Slack when tests fail. SLACK_WEBHOOK ENV variable must be set.
type: boolean
default: false
is-canary:
type: string
default: ""
macos:
xcode: "11.2.1"
steps:
Expand Down Expand Up @@ -178,7 +185,8 @@ jobs:
- run:
name: Run Device Tests
command: |
yarn device-tests
yarn device-tests<<parameters.is-canary>>
no_output_timeout: 1200
environment:
JEST_JUNIT_OUTPUT: "reports/test-results/ios-test-results.xml"
- store_test_results:
Expand Down Expand Up @@ -215,9 +223,23 @@ workflows:
platform: android
check-tests: true
- ios-device-checks:
name: Test iOS on Device
name: Test iOS on Device - Canaries
is-canary: "-canary"
- android-device-checks:
name: Test Android on Device - Canaries
is-canary: "-canary"
- Optional UI Tests:
type: approval
filters:
branches:
ignore:
- develop
- ios-device-checks:
name: Test iOS on Device - Full
requires: [ "Optional UI Tests" ]
- android-device-checks:
name: Test Android on Device
name: Test Android on Device - Full
requires: [ "Optional UI Tests" ]
- android-native-unit-tests:
name: Android Native Unit Tests

Expand Down
13 changes: 13 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
1.29.0
------
* [**] Add support for changing overlay color settings in Cover block
* Add enter/exit animation in FloatingToolbar
* [***] New block: Verse
* [*] Fix merging of text blocks when text had active formatting (bold, italic, strike, link)
* [***] Trash icon that is used to remove blocks is moved to the new menu reachable via ellipsis button in the block toolbar
* [**] Block toolbar can now collapse when the block width is smaller than the toolbar content
* [**] Creating undo levels less frequently
* [**] Tooltip for page template selection buttons
* [*] Fix button alignment in page templates and make strings consistent
* [*] Add support for displaying radial gradients in Buttons and Cover blocks
1.28.2
------
* [***] Disable Pullquote Block on Android
Expand All @@ -21,6 +33,7 @@

1.27.0
------
* Block Editor: Add dialog for mentioning other users in your post
* Prefill caption for image blocks when available on the Media library
* New block: Buttons. From now you’ll be able to add the individual Button block only inside the Buttons block
* Fix bug where whitespaces at start of text blocks were being removed
Expand Down
2 changes: 1 addition & 1 deletion RNTAztecView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pod::Spec.new do |s|
s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.dependency 'React-Core'
s.dependency 'WordPress-Aztec-iOS', '~> 1.19.0'
s.dependency 'WordPress-Aztec-iOS', '~> 1.19.2'

end
2 changes: 1 addition & 1 deletion __device-tests__/gutenberg-editor-heading.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import testData from './helpers/test-data';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor tests', () => {
describe( 'Gutenberg Editor tests @canary', () => {
let driver;
let editorPage;
let allPassed = true;
Expand Down
2 changes: 1 addition & 1 deletion __device-tests__/gutenberg-editor-image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import testData from './helpers/test-data';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor Image Block tests', () => {
describe( 'Gutenberg Editor Image Block tests @canary', () => {
let driver;
let editorPage;
let allPassed = true;
Expand Down
2 changes: 1 addition & 1 deletion __device-tests__/gutenberg-editor-lists.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import testData from './helpers/test-data';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor tests for List block', () => {
describe( 'Gutenberg Editor tests for List block @canary', () => {
let driver;
let editorPage;
let allPassed = true;
Expand Down
57 changes: 57 additions & 0 deletions __device-tests__/gutenberg-editor-verse.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* @format
* */

/**
* Internal dependencies
*/
import EditorPage from './pages/editor-page';
import {
setupDriver,
isLocalEnvironment,
stopDriver,
} from './helpers/utils';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor Verse Block Tests', () => {
let driver;
let editorPage;
let allPassed = true;
const verseBlockName = 'Verse';

// Use reporter for setting status for saucelabs Job
if ( ! isLocalEnvironment() ) {
const reporter = {
specDone: async ( result ) => {
allPassed = allPassed && result.status !== 'failed';
},
};

jasmine.getEnv().addReporter( reporter );
}

beforeAll( async () => {
driver = await setupDriver();
editorPage = new EditorPage( driver );
} );

it( 'should be able to see visual editor', async () => {
await expect( editorPage.getBlockList() ).resolves.toBe( true );
} );

it( 'should be able to add a verse block', async () => {
await editorPage.addNewBlock( verseBlockName );
const verseBlock = await editorPage.getBlockAtPosition( verseBlockName );

expect( verseBlock ).toBeTruthy();
await editorPage.removeBlockAtPosition( verseBlockName );
} );

afterAll( async () => {
if ( ! isLocalEnvironment() ) {
driver.sauceJobStatus( allPassed );
}
await stopDriver( driver );
} );
} );
4 changes: 2 additions & 2 deletions __device-tests__/helpers/caps.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ios = {
os: 'iOS',
deviceOrientation: 'portrait',
automationName: 'XCUITest',
appiumVersion: '1.15.0', // SauceLabs requires appiumVersion to be specified.
appiumVersion: '1.16.0', // SauceLabs requires appiumVersion to be specified.
app: undefined, // will be set later, locally this is relative to root of project
processArguments: {
args: [
Expand Down Expand Up @@ -37,6 +37,6 @@ exports.android8 = {
appPackage: 'com.gutenberg',
appActivity: 'com.gutenberg.MainActivity',
deviceOrientation: 'portrait',
appiumVersion: '1.15.0',
appiumVersion: '1.16.0',
app: undefined,
};
19 changes: 13 additions & 6 deletions __device-tests__/pages/editor-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class EditorPage {
accessibilityIdKey: string;
accessibilityIdXPathAttrib: string;
paragraphBlockName = 'Paragraph';
verseBlockName = 'Verse';
orderedListButtonName = 'Convert to ordered list';

constructor( driver: wd.PromiseChainWebdriver ) {
Expand Down Expand Up @@ -242,20 +243,26 @@ export default class EditorPage {
}

const buttonElementName = isAndroid() ? '//*' : '//XCUIElementTypeButton';
const removeButtonIdentifier = `Remove block at row ${ position }`;
const removeBlockLocator = `${ buttonElementName }[contains(@${ this.accessibilityIdXPathAttrib }, "${ removeButtonIdentifier }")]`;
const blockActionsMenuButtonIdentifier = `Open Block Actions Menu`;
const blockActionsMenuButtonLocator = `${ buttonElementName }[contains(@${ this.accessibilityIdXPathAttrib }, "${ blockActionsMenuButtonIdentifier }")]`;

if ( isAndroid() ) {
const block = await this.getBlockAtPosition( blockName, position );
let checkList = await this.driver.elementsByXPath( removeBlockLocator );
let checkList = await this.driver.elementsByXPath( blockActionsMenuButtonLocator );
while ( checkList.length === 0 ) {
await swipeUp( this.driver, block ); // Swipe up to show remove icon at the bottom
checkList = await this.driver.elementsByXPath( removeBlockLocator );
checkList = await this.driver.elementsByXPath( blockActionsMenuButtonLocator );
}
}

const removeButton = await this.driver.elementByXPath( removeBlockLocator );
await removeButton.click();
const blockActionsMenuButton = await this.driver.elementByXPath( blockActionsMenuButtonLocator );
await blockActionsMenuButton.click();

const removeActionButtonIdentifier = `Remove ${ blockName }`;
const removeActionButtonLocator = `${ buttonElementName }[contains(@${ this.accessibilityIdXPathAttrib }, "${ removeActionButtonIdentifier }")]`;
const removeActionButton = await this.driver.elementByXPath( removeActionButtonLocator );

await removeActionButton.click();
}

// =========================
Expand Down
22 changes: 22 additions & 0 deletions android/app/src/main/java/com/gutenberg/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
package com.gutenberg;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;

import org.wordpress.mobile.WPAndroidGlue.WPAndroidGlueCode;

public class MainActivity extends ReactActivity {

Expand All @@ -12,4 +19,19 @@ public class MainActivity extends ReactActivity {
protected String getMainComponentName() {
return "gutenberg";
}

@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Nullable
@Override
protected Bundle getLaunchOptions() {
Bundle bundle = new Bundle();
Bundle capabilities = new Bundle();
capabilities.putBoolean(WPAndroidGlueCode.PROP_NAME_CAPABILITIES_MENTIONS, true);
bundle.putBundle(WPAndroidGlueCode.PROP_NAME_CAPABILITIES, capabilities);
return bundle;
}
};
}
}
13 changes: 13 additions & 0 deletions android/app/src/main/java/com/gutenberg/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ public void requestMediaEditor(MediaUploadCallback mediaUploadCallback, String m
public void logUserEvent(GutenbergUserEvent gutenbergUserEvent, ReadableMap eventProperties) {
}

@Override
public void setStarterPageTemplatesTooltipShown(boolean tooltipShown) {
}

@Override
public void requestStarterPageTemplatesTooltipShown(StarterPageTemplatesTooltipShownCallback starterPageTemplatesTooltipShownCallback) {
}

@Override
public void editorDidEmitLog(String message, LogLevel logLevel) {
switch (logLevel) {
Expand All @@ -136,6 +144,11 @@ public void editorDidEmitLog(String message, LogLevel logLevel) {
@Override
public void performRequest(String path, Consumer<String> onSuccess, Consumer<Bundle> onError) {}

@Override
public void onAddMention(Consumer<String> onSuccess) {
onSuccess.accept("matt");
}

}, isDarkMode());

return new ReactNativeHost(this) {
Expand Down
Loading