This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-10-16 09:51:29.452 6514-6514/org.wordpress.aztec E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: org.wordpress.aztec, PID: 6514 | |
java.lang.ArrayIndexOutOfBoundsException: length=39; index=-1 | |
at android.text.DynamicLayout.getBlockIndex(DynamicLayout.java:646) | |
at android.widget.Editor.drawHardwareAccelerated(Editor.java:1695) | |
at android.widget.Editor.onDraw(Editor.java:1664) | |
at android.widget.TextView.onDraw(TextView.java:6880) | |
at android.view.View.draw(View.java:19123) | |
at android.view.View.updateDisplayListIfDirty(View.java:18073) | |
at android.view.View.draw(View.java:18851) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/build.gradle b/app/build.gradle | |
index 25384818..c9669794 100644 | |
--- a/app/build.gradle | |
+++ b/app/build.gradle | |
@@ -2,13 +2,13 @@ apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
android { | |
- compileSdkVersion 27 | |
+ compileSdkVersion 28 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/block-library/src/code/edit.native.js b/packages/block-library/src/code/edit.native.js | |
index d4ee2c807..1439c1371 100644 | |
--- a/packages/block-library/src/code/edit.native.js | |
+++ b/packages/block-library/src/code/edit.native.js | |
@@ -36,6 +36,7 @@ export default function CodeEdit( props ) { | |
isSelected={ props.isSelected } | |
onFocus={ onFocus } | |
onBlur={ onBlur } | |
+ fontFamily={ styles.blockCode.fontFamily } | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.JsonSlurper | |
def readHashedVersion(packagejson, packageName, section) { | |
def packageSlurper = new JsonSlurper() | |
def packageJson = packageSlurper.parse file(packagejson) | |
def dep = packageJson.get(section).get(packageName) | |
def hash = dep.substring(dep.lastIndexOf('#') + 1) | |
return hash; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def waitJitpack(group, module, hash) { | |
preBuild.dependsOn(tasks.create(name: "waitJitpack-${module}-${hash}") { thisTask -> | |
def url = "https://jitpack.io/${group.replace('.', '/')}/${module}/${hash}/${module}-${hash}.pom" | |
def backoffLimit = 7 | |
for (def backoffCount : (0..backoffLimit)) { | |
def connection = new URL(url).openConnection() as HttpURLConnection | |
def timeout = (2**backoffCount) * 5 * 1000; // exponential timeout | |
connection.setConnectTimeout(timeout) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.JsonSlurper | |
def readReactNativeVersion(packagejson, section) { | |
def packageSlurper = new JsonSlurper() | |
def packageJson = packageSlurper.parse file(packagejson) | |
return packageJson.get(section).get('react-native') | |
} | |
ext { | |
readReactNativeVersion = this.&readReactNativeVersion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def submoduleGitHash(workDir, gitSubmodulePath) { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
workingDir workDir | |
commandLine 'git', 'submodule', 'status', gitSubmodulePath | |
standardOutput = stdout | |
} | |
def submoduleStatus = stdout.toString().trim() | |
def match = (submoduleStatus =~ /^([-+]?)([a-z\d]*) ${gitSubmodulePath}/) | |
switch (match[0][1]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:cover-image {"url":"https://cldup.com/Fz-ASbo2s3.jpg","align":"wide"} --> | |
<div class="wp-block-cover-image has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"> | |
<p class="wp-block-cover-image-text">Of Mountains & Printing Presses</p> | |
</div> | |
<!-- /wp:cover-image --> | |
<!-- wp:paragraph --> | |
<p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you'll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.</p> | |
<!-- /wp:paragraph --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.gradle b/build.gradle | |
index 29290bc..fb8d9b4 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -1,6 +1,19 @@ | |
buildscript { | |
- ext.kotlin_version = '1.2.31' | |
- ext.arch_components_version = '1.1.1' | |
+ ext { | |
+ gradlePluginVersion = '3.0.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pegOptions = { | |
cache: true, | |
dependencies: {}, | |
format: 'commonjs', | |
optimize: 'speed', | |
output: 'source', | |
trace: false, | |
}; |