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

Release v1.15.0 #1445

Merged
merged 204 commits into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
addb56e
Update gutenberg ref
etoledom Sep 6, 2019
d4b1907
Intercept paste without formatting command.
SergioEstevao Sep 9, 2019
1835f14
Update Gutenberg ref
geriux Sep 9, 2019
e2defe5
Fix store crash with gutenberg master
Tug Sep 13, 2019
4433387
Update gutenberg ref
Tug Sep 13, 2019
a652ccc
Update gutenberg ref
Tug Sep 19, 2019
a630726
Update Gutenberg version.
SergioEstevao Sep 19, 2019
5035525
Merge branch 'develop' into issue/562_add_underline
SergioEstevao Sep 19, 2019
e267cb3
Update GB reference.
SergioEstevao Sep 20, 2019
8ab38d5
Remove unused require
Tug Sep 20, 2019
fb33f0c
Fix tests
Tug Sep 20, 2019
d0cc756
Merge remote-tracking branch 'origin/develop' into update/fix-store-c…
Tug Sep 20, 2019
8c2c477
Add missing @wordpress/block-directory package in symlinked-packages
Tug Sep 20, 2019
08caa7c
Update gutenberg ref
Tug Sep 20, 2019
fc8eb7d
Only report selection changes if text view is still first responder.
SergioEstevao Sep 20, 2019
e71f34a
Don't allow interactions with URL in Aztec text blocks.
SergioEstevao Sep 20, 2019
e74f4cd
Merge pull request #1376 from wordpress-mobile/master
daniloercoli Sep 23, 2019
ba7d6f0
Updated gutenberg ref
geriux Sep 23, 2019
f84373a
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
geriux Sep 23, 2019
0ba72e8
Update GB reference.
SergioEstevao Sep 23, 2019
8b0bb3a
Update GB reference.
SergioEstevao Sep 23, 2019
88b921c
Pass media filter on media upload
geriux Sep 23, 2019
02965cc
Update gutenberg ref
geriux Sep 23, 2019
1e0ad56
Use real timers for e2e tests
Tug Sep 24, 2019
4dc784e
Update GB reference.
SergioEstevao Sep 24, 2019
25c4488
Move selection to the start of the URL.
SergioEstevao Sep 24, 2019
0fec680
Make sure links selection is still possible.
SergioEstevao Sep 24, 2019
e930453
Join two guards.
SergioEstevao Sep 24, 2019
e309cd8
Update GB reference.
SergioEstevao Sep 24, 2019
97da943
Use fake timers in unit tests not config
Tug Sep 24, 2019
66b4f92
Enable the CSSUnderlinePlugin on Aztec Android
daniloercoli Sep 25, 2019
8e187d5
Make sure to handle the new available format `underline`, passed from…
daniloercoli Sep 25, 2019
ec4d74c
Update GB ref
daniloercoli Sep 25, 2019
2cf5c1b
Update GB reference.
SergioEstevao Sep 25, 2019
e220399
Merge pull request #1374 from wordpress-mobile/issue/1368_add_link_to…
SergioEstevao Sep 25, 2019
36cfcb3
Update GB reference.
SergioEstevao Sep 25, 2019
6c9af81
Merge branch 'develop' into issue/1373_tap_links_opens_safari
SergioEstevao Sep 25, 2019
0aaeceb
Update GB reference.
SergioEstevao Sep 25, 2019
97b34f0
Update GB reference.
SergioEstevao Sep 25, 2019
dd3a6d6
Merge pull request #1377 from wordpress-mobile/issue/1261_add_missing…
SergioEstevao Sep 25, 2019
091a75e
Merge branch 'develop' into issue/1311_fix_paste_without_formatting
SergioEstevao Sep 25, 2019
5b48d58
Update GB reference.
SergioEstevao Sep 25, 2019
f168710
Merge branch 'develop' into issue/562_add_underline
SergioEstevao Sep 25, 2019
89d265e
Update gutenberg ref
geriux Sep 26, 2019
44b5f6b
Update gutenberg ref
geriux Sep 26, 2019
8500674
Update gutenberg ref
geriux Sep 26, 2019
03cc901
Update gutenberg ref
Tug Sep 26, 2019
47ed605
Update gutenberg ref
Tug Sep 26, 2019
bfe9d35
Update GB reference.
SergioEstevao Sep 26, 2019
042ee2b
Merge remote-tracking branch 'origin/develop' into update/fix-store-c…
Tug Sep 26, 2019
79009b1
Add comment explaining why we need to call jest.runAllTicks();
Tug Sep 26, 2019
82ce8df
Fix lint issue on rmobile/master on gutenberg repo (#1388)
lukewalczak Sep 26, 2019
257733d
Update GB reference.
SergioEstevao Sep 26, 2019
69c339d
Merge remote-tracking branch 'origin/develop' into update/fix-store-c…
Tug Sep 26, 2019
d597760
Merge branch 'develop' into issue/1311_fix_paste_without_formatting
SergioEstevao Sep 26, 2019
b651fbe
Update gutenberg ref
Tug Sep 26, 2019
640455e
Merge pull request #1360 from wordpress-mobile/issue/1311_fix_paste_w…
SergioEstevao Sep 26, 2019
b7d3cfd
Update GB reference.
SergioEstevao Sep 26, 2019
3695a12
Merge branch 'develop' into issue/562_add_underline
SergioEstevao Sep 26, 2019
0a29522
Update gutenberg ref
etoledom Sep 26, 2019
e7e7b7b
Merge remote-tracking branch 'origin/develop' into update/fix-store-c…
Tug Sep 26, 2019
4b6e763
Update gutenberg ref
geriux Sep 26, 2019
169c04e
Update gutenberg ref
geriux Sep 27, 2019
6eb780d
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
geriux Sep 27, 2019
155d694
Gitmodules update
geriux Sep 27, 2019
b390e1d
Update gutenberg ref
geriux Sep 27, 2019
1e3e16a
Update GB reference.
SergioEstevao Sep 27, 2019
c364ab4
Merge pull request #1361 from wordpress-mobile/feature/move-media-upl…
koke Sep 27, 2019
545ab3e
Update GB reference.
SergioEstevao Sep 27, 2019
20a565c
Increase the number of workers so tests don't get queued when calling…
Tug Sep 27, 2019
3b5577f
Reenable disabled e2e tests
Tug Sep 27, 2019
6c75768
Reenable disabled e2e tests
Tug Sep 27, 2019
8c9f4cb
Update gutenberg ref
Tug Sep 27, 2019
81168f5
Update gutenberg ref
Tug Sep 27, 2019
fb6db57
Disable warning notices
Tug Sep 27, 2019
561f27e
Disable warning notices, fix lint
Tug Sep 27, 2019
078e62d
Merge remote-tracking branch 'origin/develop' into update/fix-store-c…
Tug Sep 27, 2019
39856db
Update GB reference.
SergioEstevao Sep 27, 2019
56f8d09
Merge branch 'develop' into issue/1373_tap_links_opens_safari
SergioEstevao Sep 27, 2019
0081ee8
Update gutenberg ref
Tug Sep 27, 2019
71815cb
Update GB reference.
SergioEstevao Sep 27, 2019
be87adf
Revert max workers to 3 and increase timeout in tests for now
Tug Sep 27, 2019
b55f55d
Update gutenberg ref
Tug Sep 27, 2019
36fb499
Merge pull request #1366 from wordpress-mobile/update/fix-store-crash
Tug Sep 27, 2019
9aaa7d6
Update GB reference.
SergioEstevao Sep 29, 2019
57459f9
Add isAppender functionality to MediaPlaceholder (#1327)
lukewalczak Sep 30, 2019
945626e
Only apply selection fix on iOS 13.0.0
SergioEstevao Sep 30, 2019
731b965
Merge branch 'develop' into issue/1373_tap_links_opens_safari
SergioEstevao Sep 30, 2019
fbc1ad1
Update GB reference.
SergioEstevao Sep 30, 2019
2b1673b
Feat: Cross platform InspectorControls (#1341)
jbinda Sep 30, 2019
e0c41aa
Update release notes.
SergioEstevao Sep 30, 2019
040d5ad
Update GB reference.
SergioEstevao Sep 30, 2019
662a3f7
iOS bridge updated with media type
geriux Sep 30, 2019
36c1153
Update GB reference.
SergioEstevao Sep 30, 2019
16283de
Update GB reference.
SergioEstevao Oct 1, 2019
c523a94
Update gutenberg ref
etoledom Oct 1, 2019
e0e76bd
Update GB reference.
SergioEstevao Oct 1, 2019
1ddbc6f
Merge pull request #1393 from wordpress-mobile/master
SergioEstevao Oct 1, 2019
44544a9
Merge branch 'develop' into issue/1373_tap_links_opens_safari
SergioEstevao Oct 1, 2019
3f07a87
Update gutenberg ref
etoledom Oct 1, 2019
638c72e
Merge pull request #1375 from wordpress-mobile/issue/1373_tap_links_o…
SergioEstevao Oct 1, 2019
58ea6d3
Update gutenberg ref
etoledom Oct 1, 2019
d418604
Mock media type for media upload
geriux Oct 1, 2019
c0a9832
Update gutenberg ref
geriux Oct 1, 2019
89f4ba2
Return media type in Android's bridge
geriux Oct 1, 2019
9f01b36
Refactor: BottomSheet controls (#1380)
jbinda Oct 2, 2019
f942586
Fix when multiple media selection adds only one image or video block …
marecar3 Oct 2, 2019
b8e8fe1
Feat: support of multiple selection in media upload (#1331)
dratwas Oct 2, 2019
4932f88
Update gutenberg ref
etoledom Oct 2, 2019
882b290
Merge branch 'develop' into issue/1337-link-to-open-new-tab
etoledom Oct 2, 2019
39bc443
Adding Link Target entry to release notes 1.15.0
etoledom Oct 2, 2019
1100c3d
Update Gutenberg
koke Oct 2, 2019
baf32b3
Update gutenberg ref to master
etoledom Oct 3, 2019
717c69d
Merge remote-tracking branch 'origin/develop' into issue/darkmode-too…
etoledom Oct 3, 2019
488af84
Merge pull request #1357 from wordpress-mobile/issue/darkmode-toolbar…
etoledom Oct 3, 2019
c5e7dcf
Update gutenberg ref to master
etoledom Oct 3, 2019
e13d739
Merge remote-tracking branch 'origin/develop' into issue/1337-link-to…
etoledom Oct 3, 2019
e3d7753
Merge pull request #1394 from wordpress-mobile/issue/1337-link-to-ope…
etoledom Oct 3, 2019
054a92b
Feat: Ungrouping (#1381)
jbinda Oct 3, 2019
70061b2
Add FloatingToolbar component (#1362)
lukewalczak Oct 3, 2019
a154f5c
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
geriux Oct 3, 2019
9e7b2e8
Update to fork
geriux Oct 3, 2019
6149454
Merge branch 'develop' into issue/562_add_underline
SergioEstevao Oct 4, 2019
84db3e6
Update Aztec to version 1.10.1
SergioEstevao Oct 4, 2019
00b7b05
Merge pull request #1370 from wordpress-mobile/issue/562_add_underline
SergioEstevao Oct 4, 2019
e3fc356
Merge branch 'develop' into master-v1.14.0-to-develop
marecar3 Oct 4, 2019
465cdbf
Revert gb ref to latest from develop
marecar3 Oct 4, 2019
a4136a3
Media & Text - Android: Fix return media type
geriux Oct 5, 2019
33f3f22
Update gutenberg ref
geriux Oct 5, 2019
edfae08
Add upload media to button listener interface in glue code
mkevins Oct 7, 2019
56ffdcb
Add "media" MediaType
mkevins Oct 7, 2019
796d3ca
Detect "media" MediaType from filter
mkevins Oct 7, 2019
fc85748
Invoke button listener method for "media" MediaType
mkevins Oct 7, 2019
4097c57
Use MediaType static import consistently
mkevins Oct 7, 2019
58a7345
[RNAztec iOS]: Improve sync of placeholder attributes and typing attr…
etoledom Oct 7, 2019
8a3aa11
Update gutenberg ref
etoledom Oct 7, 2019
fc5ca0b
Update release notes
etoledom Oct 7, 2019
e6dc2db
Update gutenberg ref
geriux Oct 7, 2019
e0fbf04
Feat: Navigation Upward in InnerBlocks (#1371)
jbinda Oct 8, 2019
fff1857
Update gutenberg ref
etoledom Oct 8, 2019
db457da
Merge remote-tracking branch 'origin/develop' into master-v1.14.0-to-…
etoledom Oct 8, 2019
6ceeab3
Update JS Bundles
etoledom Oct 8, 2019
0d13e85
Merge pull request #1410 from wordpress-mobile/master-v1.14.0-to-develop
etoledom Oct 8, 2019
bf332c6
Merge remote-tracking branch 'origin/develop' into issue/1391-ios-dar…
etoledom Oct 9, 2019
b5c2b1c
Update gutenberg ref
etoledom Oct 9, 2019
a2623b9
Merge pull request #1415 from wordpress-mobile/issue/1391-ios-dark-mo…
etoledom Oct 9, 2019
7009c25
Update Gutenberg
koke Oct 9, 2019
370ea44
Merge branch 'develop' into media-text-stacking
koke Oct 9, 2019
8b40aa7
Update Gutenberg
koke Oct 9, 2019
4c435bc
Update to iOS11 and Swift 5.
SergioEstevao Oct 9, 2019
f0012fe
Remove check for iOS 11
SergioEstevao Oct 9, 2019
164281c
Fix SafeArea (#1425)
lukewalczak Oct 9, 2019
e0496dc
Update Gutenberg
koke Oct 10, 2019
6acee9d
Merge branch 'develop' into media-text-stacking
koke Oct 10, 2019
a461fc8
Merge pull request #1400 from wordpress-mobile/media-text-stacking
koke Oct 10, 2019
6523e9d
Merge pull request #1426 from wordpress-mobile/issue/update_to_iOS11_…
SergioEstevao Oct 10, 2019
db7e303
Update Gutenberg
koke Oct 10, 2019
16d03ab
Merge branch 'develop' into feature/media-text-improvements
koke Oct 10, 2019
70b4f7c
Update gutenberg submodule
koke Oct 10, 2019
e9de861
Update gutenberg submodule
koke Oct 10, 2019
c7e573a
Updated bundles
koke Oct 10, 2019
de6141a
Merge pull request #1378 from wordpress-mobile/feature/media-text-imp…
koke Oct 10, 2019
1ec600a
Merge branch 'develop' into try/fix-media-text-device-picker-android
mkevins Oct 10, 2019
2fb8c33
Update gutenberg reference
mkevins Oct 10, 2019
3bfb7aa
Call media library method for media mediatype
mkevins Oct 10, 2019
be4a276
Update deployment target for RNTAztecView to iOS 11
koke Oct 10, 2019
b2a5295
Fix header search path for libmxl2
koke Oct 10, 2019
377f4bb
Bump swift_version to 5.0 on RNTAztecView podspec
etoledom Oct 11, 2019
9c1cfb8
Merge pull request #1434 from wordpress-mobile/rntaztec-ios11
koke Oct 11, 2019
ad425a3
Import new location for base styles
koke Oct 11, 2019
65d8efa
Update gutenberg
koke Oct 11, 2019
5d854d8
Update gutenberg
koke Oct 11, 2019
045af30
Update bundles
koke Oct 11, 2019
2c16ab5
Update release notes
koke Oct 11, 2019
24b7f64
Don't display UngroupingButton for Media&Text block (#1420)
lukewalczak Oct 11, 2019
e228e17
Update gutenberg
koke Oct 11, 2019
1cbdf92
Update gutenberg
koke Oct 11, 2019
8587620
Update gutenberg
koke Oct 11, 2019
6354239
Merge branch 'develop' into issue/fix-scrollViewRef-crash
koke Oct 11, 2019
f5a2739
Merge pull request #1438 from wordpress-mobile/issue/fix-scrollViewRe…
koke Oct 11, 2019
fe20493
Merge branch 'develop' into try/fix-media-text-device-picker-android
mkevins Oct 14, 2019
50ed338
Merge pull request #1412 from wordpress-mobile/try/fix-media-text-dev…
mkevins Oct 14, 2019
9db0e46
Merge pull request #1435 from wordpress-mobile/add/package-base-styles
hypest Oct 14, 2019
6de84cb
Update Gutenberg
koke Oct 14, 2019
1c8c2d8
Merge branch 'develop' into fix/button-active
koke Oct 14, 2019
18876f1
Merge pull request #1440 from wordpress-mobile/fix/button-active
koke Oct 14, 2019
d7cf6f9
Update Gutenberg
koke Oct 14, 2019
8b07ba8
Merge branch 'develop' into enable-media-text
koke Oct 14, 2019
658eeba
Updated bundles
koke Oct 14, 2019
57c630f
Merge pull request #1439 from wordpress-mobile/enable-media-text
koke Oct 14, 2019
df0f112
Update Gutenberg
koke Oct 14, 2019
0ef429f
Add Media & Text block to initial HTML
koke Oct 14, 2019
895edaa
Update Gutenberg
koke Oct 14, 2019
3e9536a
Merge pull request #1443 from wordpress-mobile/issue/1411-media-text-…
koke Oct 14, 2019
87baa75
Bump version to 1.15.0
etoledom Oct 14, 2019
69ca678
Update bundles
etoledom Oct 14, 2019
b20d4bb
Update Aztec-iOS ref
etoledom Oct 14, 2019
cefeda0
Update Aztec-Android ref to v1.3.32
etoledom Oct 15, 2019
0bf06a8
Update Aztec-iOS ref to 1.11.0
etoledom Oct 15, 2019
e396206
revert missing toggle editor mode call (#1444)
marecar3 Oct 15, 2019
d6e1628
Update bundles
hypest Oct 16, 2019
a142ebe
Update Aztec-Android ref to v1.3.33
hypest Oct 16, 2019
e094abe
Expose WordPressUtils for consumption by gutenberg-bridge
mchowning Oct 15, 2019
eca36ca
Update RELEASE notes with iOS11 and Swift 5 update
hypest Oct 17, 2019
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
4 changes: 2 additions & 2 deletions Gutenberg.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/wordpress-mobile/gutenberg-mobile'
s.license = package['license']
s.authors = 'Automattic'
s.platform = :ios, '10.0'
s.platform = :ios, '11.0'
s.source = { :git => 'https://github.com/wordpress-mobile/gutenberg-mobile.git' }
s.source_files = 'react-native-gutenberg-bridge/ios/*.{h,m,swift}'
s.requires_arc = true
s.preserve_paths = 'bundle/ios/*'
s.swift_version = '4.2'
s.swift_version = '5.0'

s.dependency 'React', react_native_version
s.dependency 'React-RCTImage', react_native_version
Expand Down
9 changes: 9 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
1.15.0
------
* Fix issue when multiple media selection adds only one image or video block on Android
* Fix issue when force Touch app shortcut doesn't work properly selecting "New Photo Post" on iOS
* Add Link Target (Open in new tab) to Image Block.
* [iOS] DarkMode improvements.
* [iOS] Update to iOS 11 and Swift 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this "[Platform] changes" format for platform-specific changes. I think I'll use this format going forward.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about [iOS] Update to iOS 11 and Swift 5, since it's not an user facing change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that is a fair point. 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some context on why I added it: since we also add some notes to the GitHub Release of the library itself, I figured that such upgrade is important to mention there. And indeed, it's not user facing so, happy it didn't reach the release-notes in the main app.

Maybe we can starting thinking of a way to denote this kind of "news" that are important/non-trivial for the library but not useful to bubble up to the main apps.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea. If you look at core releases, there's often the news for users, and then a section of changes for developers.

* New block: Media & Text

1.14.0
------
* Fix a bug on iOS 13.0 were tapping on a link opens Safari
Expand Down
6 changes: 3 additions & 3 deletions RNTAztecView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Pod::Spec.new do |s|
s.source_files = 'react-native-aztec/ios/RNTAztecView/*.{h,m,swift}'
s.public_header_files = 'react-native-aztec/ios/RNTAztecView/*.h'
s.requires_arc = true
s.platforms = { :ios => "10.0" }
s.swift_version = '4.2'
s.platforms = { :ios => "11.0" }
s.swift_version = '5.0'
s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.dependency 'React-Core'
s.dependency 'WordPress-Aztec-iOS'

Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/java/com/gutenberg/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public void requestMediaPickerFromDeviceCamera(MediaUploadCallback mediaUploadCa
}

@Override
public void requestMediaPickFromDeviceLibrary(MediaUploadCallback mediaUploadCallback, MediaType mediaType) {
public void requestMediaPickFromDeviceLibrary(MediaUploadCallback mediaUploadCallback, Boolean allowMultipleSelection, MediaType mediaType) {
}

@Override
public void requestMediaPickFromMediaLibrary(MediaSelectedCallback mediaSelectedCallback, MediaType mediaType) {
public void requestMediaPickFromMediaLibrary(MediaSelectedCallback mediaSelectedCallback, Boolean allowMultipleSelection, MediaType mediaType) {
}


Expand Down
1,155 changes: 585 additions & 570 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

1,167 changes: 591 additions & 576 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gutenberg
Submodule gutenberg updated 358 files
12 changes: 6 additions & 6 deletions ios/gutenberg.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@
"$(SRCROOT)/../node_modules/react-native-video/ios/**",
);
INFOPLIST_FILE = gutenberg/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(SRCROOT)/../react-native-aztec/ios/**",
Expand All @@ -1558,7 +1558,7 @@
PRODUCT_NAME = gutenberg;
SWIFT_OBJC_BRIDGING_HEADER = "gutenberg-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
};
Expand All @@ -1582,7 +1582,7 @@
"$(SRCROOT)/../node_modules/react-native-video/ios/**",
);
INFOPLIST_FILE = gutenberg/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(SRCROOT)/../react-native-aztec/ios/**",
Expand All @@ -1595,7 +1595,7 @@
);
PRODUCT_NAME = gutenberg;
SWIFT_OBJC_BRIDGING_HEADER = "gutenberg-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
};
Expand Down Expand Up @@ -1797,7 +1797,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1832,7 +1832,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
20 changes: 14 additions & 6 deletions ios/gutenberg/GutenbergViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extension GutenbergViewController: GutenbergBridgeDelegate {
print("↳ HTML: \(html)")
}

func gutenbergDidRequestMedia(from source: MediaPickerSource, filter: [MediaFilter]?, with callback: @escaping MediaPickerDidPickMediaCallback) {
func gutenbergDidRequestMedia(from source: MediaPickerSource, filter: [MediaFilter]?, allowMultipleSelection: Bool, with callback: @escaping MediaPickerDidPickMediaCallback) {
guard let currentFilter = filter?.first else {
return
}
Expand All @@ -73,9 +73,17 @@ extension GutenbergViewController: GutenbergBridgeDelegate {
print("Gutenberg did request media picker, passing a sample url in callback")
switch currentFilter {
case .image:
callback(1, "https://cldup.com/cXyG__fTLN.jpg")
if(allowMultipleSelection) {
callback([(1, "https://cldup.com/cXyG__fTLN.jpg", "image"), (3, "https://cldup.com/cXyG__fTLN.jpg", "image")])
} else {
callback([(1, "https://cldup.com/cXyG__fTLN.jpg", "image")])
}
case .video:
callback(2, "https://i.cloudup.com/YtZFJbuQCE.mov")
if(allowMultipleSelection) {
callback([(2, "https://i.cloudup.com/YtZFJbuQCE.mov", "video"), (4, "https://i.cloudup.com/YtZFJbuQCE.mov", "video")])
} else {
callback([(2, "https://i.cloudup.com/YtZFJbuQCE.mov", "video")])
}
default:
break
}
Expand All @@ -90,16 +98,16 @@ extension GutenbergViewController: GutenbergBridgeDelegate {

func gutenbergDidRequestImport(from url: URL, with callback: @escaping MediaPickerDidPickMediaCallback) {
let id = mediaUploadCoordinator.upload(url: url)
callback(id, url.absoluteString)
callback([(id, url.absoluteString, "image")])
}

func pickAndUpload(from source: UIImagePickerController.SourceType, filter: MediaFilter, callback: @escaping MediaPickerDidPickMediaCallback) {
mediaPickCoordinator = MediaPickCoordinator(presenter: self, filter: filter, callback: { (url) in
guard let url = url, let mediaID = self.mediaUploadCoordinator.upload(url: url) else {
callback(nil, nil)
callback([(nil, nil, nil)])
return
}
callback(mediaID, url.absoluteString)
callback([(mediaID, url.absoluteString, "image")])
self.mediaPickCoordinator = nil
} )
mediaPickCoordinator?.pick(from: source)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg-mobile",
"version": "1.14.0",
"version": "1.15.0",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions react-native-aztec/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
wordpressUtilsVersion = '1.22'
espressoVersion = '3.0.1'

aztecVersion = 'v1.3.31'
aztecVersion = 'v1.3.33'
}

repositories {
Expand Down Expand Up @@ -97,11 +97,11 @@ dependencies {
api ("com.github.wordpress-mobile.WordPress-Aztec-Android:wordpress-shortcodes:$aztecVersion")
api ("com.github.wordpress-mobile.WordPress-Aztec-Android:wordpress-comments:$aztecVersion")
api ("com.github.wordpress-mobile.WordPress-Aztec-Android:glide-loader:$aztecVersion")
api "org.wordpress:utils:$wordpressUtilsVersion"

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"

implementation 'androidx.appcompat:appcompat:1.0.0'
implementation "org.wordpress:utils:$wordpressUtilsVersion"

implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected ReactAztecText createViewInstance(ThemedReactContext reactContext) {
new LinkFormatter.LinkStyle(
Color.parseColor("#016087"), true)
));
aztecText.addPlugin(new CssUnderlinePlugin());
return aztecText;
}

Expand Down Expand Up @@ -413,7 +414,6 @@ public void disableGBMode(final ReactAztecText view, boolean disable) {
view.addPlugin(new VideoShortcodePlugin());
view.addPlugin(new AudioShortcodePlugin());
view.addPlugin(new HiddenGutenbergPlugin(view));
view.addPlugin(new CssUnderlinePlugin());
view.setImageGetter(new GlideImageLoader(view.getContext()));
view.setVideoThumbnailGetter(new GlideVideoThumbnailLoader(view.getContext()));
// we need to restart the editor now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public class ReactAztecText extends AztecText {
put(AztecTextFormat.FORMAT_ITALIC, "italic");
put(AztecTextFormat.FORMAT_CITE, "italic");
put(AztecTextFormat.FORMAT_STRIKETHROUGH, "strikethrough");
put(AztecTextFormat.FORMAT_UNDERLINE, "underline");
}
};

Expand Down Expand Up @@ -481,6 +482,9 @@ public void setActiveFormats(Iterable<String> newFormats) {
case "strikethrough":
newFormatsSet.add(AztecTextFormat.FORMAT_STRIKETHROUGH);
break;
case "underline":
newFormatsSet.add(AztecTextFormat.FORMAT_UNDERLINE);
break;
}
}
selectedStylesSet.removeAll(typingFormatsMap.keySet());
Expand Down
2 changes: 1 addition & 1 deletion react-native-aztec/ios/Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "wordpress-mobile/AztecEditor-iOS" "1.10.1"
github "wordpress-mobile/AztecEditor-iOS" "1.11.0"
2 changes: 1 addition & 1 deletion react-native-aztec/ios/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "wordpress-mobile/AztecEditor-iOS" "1.10.1"
github "wordpress-mobile/AztecEditor-iOS" "1.11.0"
10 changes: 5 additions & 5 deletions react-native-aztec/ios/RNTAztecView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
TargetAttributes = {
F145CFC52087D16A006C159A = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 0940;
LastSwiftMigration = 1110;
};
};
};
Expand Down Expand Up @@ -287,7 +287,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -341,7 +341,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -371,7 +371,7 @@
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNTAztecView/RCTAztecView-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -396,7 +396,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNTAztecView/RCTAztecView-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
26 changes: 21 additions & 5 deletions react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ class RCTAztecView: Aztec.TextView {
textContainerInset = .zero
contentInset = .zero
addPlaceholder()
if #available(iOS 11.0, *) {
textDragInteraction?.isEnabled = false
}
textDragInteraction?.isEnabled = false
storage.htmlConverter.characterToReplaceLastEmptyLine = Character(.zeroWidthSpace)
shouldNotifyOfNonUserChanges = false
}
Expand Down Expand Up @@ -407,12 +405,23 @@ class RCTAztecView: Aztec.TextView {
}
}

override var textColor: UIColor? {
didSet {
typingAttributes[NSAttributedString.Key.foregroundColor] = self.textColor
}
}

override var typingAttributes: [NSAttributedString.Key : Any] {
didSet {
// Keep placeholder attributes in sync with typing attributes.
placeholderLabel.attributedText = NSAttributedString(string: placeholderLabel.text ?? "", attributes: placeholderAttributes)
}
}

// MARK: - Placeholder

@objc var placeholder: String {
set {
var placeholderAttributes = typingAttributes
placeholderAttributes[.foregroundColor] = placeholderTextColor
placeholderLabel.attributedText = NSAttributedString(string: newValue, attributes: placeholderAttributes)
}

Expand All @@ -421,6 +430,13 @@ class RCTAztecView: Aztec.TextView {
}
}

/// Attributes to use on the placeholder.
var placeholderAttributes: [NSAttributedString.Key: Any] {
var placeholderAttributes = typingAttributes
placeholderAttributes[.foregroundColor] = placeholderTextColor
return placeholderAttributes
}

@objc var placeholderTextColor: UIColor {
set {
placeholderLabel.textColor = newValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
package org.wordpress.mobile.ReactNativeGutenbergBridge;

import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.WritableMap;

import java.util.List;

public interface GutenbergBridgeJS2Parent {
interface RNMedia {
String getUrl();
int getId();
String getType();
WritableMap toMap();
}

void responseHtml(String title, String html, boolean changed);

void editorDidMount(ReadableArray unsupportedBlockNames);

interface MediaSelectedCallback {
void onMediaSelected(int mediaId, String mediaUrl);
void onMediaSelected(List<RNMedia> mediaList);
}

interface MediaUploadCallback {
void onUploadMediaFileSelected(int mediaId, String mediaUri);
void onUploadMediaFileSelected(List<RNMedia> mediaList);
void onUploadMediaFileClear(int mediaId);
void onMediaFileUploadProgress(int mediaId, float progress);
void onMediaFileUploadSucceeded(int mediaId, String mediaUrl, int serverId);
Expand Down Expand Up @@ -45,6 +55,7 @@ public static LogLevel valueOf(int id) {
enum MediaType {
IMAGE("image"),
VIDEO("video"),
MEDIA("media"),
AUDIO("audio"),
OTHER("other");

Expand All @@ -65,9 +76,9 @@ public static MediaType getEnum(String value) {
}
}

void requestMediaPickFromMediaLibrary(MediaSelectedCallback mediaSelectedCallback, MediaType mediaType);
void requestMediaPickFromMediaLibrary(MediaSelectedCallback mediaSelectedCallback, Boolean allowMultipleSelection, MediaType mediaType);

void requestMediaPickFromDeviceLibrary(MediaUploadCallback mediaUploadCallback, MediaType mediaType);
void requestMediaPickFromDeviceLibrary(MediaUploadCallback mediaUploadCallback, Boolean allowMultipleSelection, MediaType mediaType);

void requestMediaPickerFromDeviceCamera(MediaUploadCallback mediaUploadCallback, MediaType mediaType);

Expand Down
Loading