Skip to content

Commit b4c7478

Browse files
authored
Merge pull request #792 from wordpress-mobile/feature/update-docs-for-v1.3.21
Update README and CHANGELOG for a v1.3.21
2 parents 181cba9 + 0063b45 commit b4c7478

File tree

31 files changed

+228
-62
lines changed

31 files changed

+228
-62
lines changed

.circleci/config.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
version: 2.1
2+
3+
orbs:
4+
android: wordpress-mobile/[email protected]
5+
6+
jobs:
7+
Lint:
8+
executor:
9+
name: android/default
10+
api-version: "27"
11+
steps:
12+
- checkout
13+
- android/restore-gradle-cache:
14+
cache-prefix: lint
15+
- run:
16+
name: klint
17+
command: ./gradlew --stacktrace ktlint
18+
- run:
19+
name: Lint
20+
command: ./gradlew --stacktrace lintRelease
21+
- android/save-gradle-cache:
22+
cache-prefix: lint
23+
- store_artifacts:
24+
path: aztec/build/reports
25+
destination: reports
26+
Unit Tests:
27+
executor:
28+
name: android/default
29+
api-version: "27"
30+
steps:
31+
- checkout
32+
- android/restore-gradle-cache:
33+
cache-prefix: unit-tests
34+
- run:
35+
name: Unit tests
36+
command: ./gradlew --stacktrace -PtestsMaxHeapSize=1536m aztec:testRelease
37+
- android/save-gradle-cache:
38+
cache-prefix: unit-tests
39+
- android/save-test-results
40+
Connected Tests:
41+
executor:
42+
name: android/default
43+
api-version: "27"
44+
steps:
45+
- checkout
46+
- android/restore-gradle-cache:
47+
cache-prefix: connected-tests
48+
- run:
49+
name: Build
50+
command: ./gradlew --stacktrace app:assembleDebug app:assembleDebugAndroidTest
51+
- run:
52+
name: Decrypt credentials
53+
command: openssl aes-256-cbc -md sha256 -d -in .firebase.secrets.json.enc -out .firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}"
54+
- android/firebase-test:
55+
key-file: .firebase.secrets.json
56+
type: instrumentation
57+
apk-path: app/build/outputs/apk/debug/app-debug.apk
58+
test-apk-path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
59+
device: model=Nexus5X,version=26,locale=en,orientation=portrait
60+
project: api-project-108380595987
61+
timeout: 10m
62+
- android/save-gradle-cache:
63+
cache-prefix: connected-tests
64+
65+
workflows:
66+
AztecEditor-Android:
67+
jobs:
68+
- Lint
69+
- Unit Tests
70+
- Connected Tests

.firebase.secrets.json.enc

32 Bytes
Binary file not shown.

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android:
99
- extra-google-m2repository
1010
- platform-tools
1111
- tools
12-
- build-tools-27.0.3
12+
- build-tools-28.0.3
1313
- android-27
1414

1515
env:
@@ -21,7 +21,7 @@ env:
2121

2222
before_install:
2323
# Decrypt secret.json (firebase access)
24-
- openssl aes-256-cbc -K $encrypted_3480988b28c1_key -iv $encrypted_3480988b28c1_iv -in .firebase.secrets.json.enc -out .firebase.secrets.json -d
24+
- openssl aes-256-cbc -md sha256 -d -in .firebase.secrets.json.enc -out .firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}"
2525

2626
script:
2727
# Build

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Changelog
2+
## [v1.3.21](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.21)
3+
### Changed
4+
- Some performance improvements, mostly visible via the WPAndroid app https://github.com/wordpress-mobile/gutenberg-mobile/issues/672
5+
6+
## [v1.3.20](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.20)
7+
### Changed
8+
- Support for `<em>` for italic and using it as default via the formatting toolbar #777
9+
10+
## [v1.3.19](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.19)
11+
### Fixed
12+
- Option to avoid autofocus when getting visible #783
13+
14+
## [v1.3.18](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.18)
15+
### Fixed
16+
- Revert merge #776
17+
18+
## [v1.3.17](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.17)
19+
### Fixed
20+
- Add jitpack.yml to work around the Google licence issue (#778)
21+
222
## [v1.3.16](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.16)
323
### Fixed
424
- Fix onSelectionChange being emitted twice when calling fromHTML (#776)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ repositories {
105105
```
106106
```gradle
107107
dependencies {
108-
api ('com.github.wordpress-mobile.WordPress-Aztec-Android:aztec:v1.3.16')
108+
api ('com.github.wordpress-mobile.WordPress-Aztec-Android:aztec:v1.3.21')
109109
}
110110
```
111111

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
33

44
android {
55
compileSdkVersion 27
6-
buildToolsVersion '27.0.3'
6+
buildToolsVersion '28.0.3'
77

88
defaultConfig {
99
applicationId "org.wordpress.aztec"

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/FormattingHistoryTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class FormattingHistoryTests : BaseHistoryTest() {
187187
@Test
188188
fun testAddItalicAndUnderlineUndoRedo() {
189189
val text = "There's no crying in baseball!"
190-
val htmlRegex = Regex("<i><u>$text</u></i>|<u><i>$text</i></u>")
190+
val htmlRegex = Regex("<em><u>$text</u></em>|<u><em>$text</em></u>")
191191
val editorPage = EditorPage()
192192

193193
// Insert text snippet

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/MixedTextFormattingTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MixedTextFormattingTests : BaseTest() {
2222
val text1 = "so"
2323
val text2 = "me "
2424
val text3 = "text "
25-
val regex = Regex("<strong>$text1</strong><i>$text2</i><(strong|i)><(strong|i)>$text3</(strong|i)></(strong|i)>")
25+
val regex = Regex("<strong>$text1</strong><em>$text2</em><(strong|em)><(strong|em)>$text3</(strong|em)></(strong|em)>")
2626

2727
EditorPage()
2828
.toggleBold()

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/SimpleTextFormattingTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SimpleTextFormattingTests : BaseTest() {
3232
fun testSimpleItalicFormatting() {
3333
val text1 = "some"
3434
val text2 = "text"
35-
val html = "$text1<i>$text2</i>"
35+
val html = "$text1<em>$text2</em>"
3636

3737
EditorPage()
3838
.insertText(text1)
@@ -335,7 +335,7 @@ class SimpleTextFormattingTests : BaseTest() {
335335
@Test
336336
fun testInlineStyleAndDelete() {
337337
val text1 = "some"
338-
val html = "<i>som</i>"
338+
val html = "<em>som</em>"
339339

340340
EditorPage()
341341
.toggleItalics()

aztec/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
33

44
android {
55
compileSdkVersion 27
6-
buildToolsVersion "27.0.3"
6+
buildToolsVersion "28.0.3"
77

88
defaultConfig {
99
minSdkVersion 16
@@ -27,6 +27,13 @@ android {
2727
testOptions {
2828
unitTests {
2929
includeAndroidResources = true
30+
all {
31+
if (project.hasProperty('testsMaxHeapSize')) {
32+
// maxHeapSize for tests is not limited unless we give an explicit value
33+
// See https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html
34+
maxHeapSize project.properties.get('testsMaxHeapSize')
35+
}
36+
}
3037
}
3138
}
3239
}

0 commit comments

Comments
 (0)