Skip to content

Commit cafefbf

Browse files
committed
Merge branch 'trunk' into customize_toolbar_layout
2 parents dae74b2 + 2043b6d commit cafefbf

File tree

36 files changed

+496
-241
lines changed

36 files changed

+496
-241
lines changed

.buildkite/pipeline.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
common-params:
2+
&publish-android-artifacts-docker-container
3+
docker#v3.8.0:
4+
image: "public.ecr.aws/automattic/android-build-image:v1.1.0"
5+
propagate-environment: true
6+
environment:
7+
# DO NOT MANUALLY SET THESE VALUES!
8+
# They are passed from the Buildkite agent to the Docker container
9+
- "AWS_ACCESS_KEY"
10+
- "AWS_SECRET_KEY"
11+
12+
steps:
13+
- label: "Publish :aztec"
14+
key: "publish-aztec"
15+
plugins:
16+
- *publish-android-artifacts-docker-container
17+
command: |
18+
.buildkite/publish-aztec.sh
19+
20+
- label: "Publish :glide-loader"
21+
key: "publish-glide-loader"
22+
depends_on:
23+
- "publish-aztec"
24+
plugins:
25+
- *publish-android-artifacts-docker-container
26+
command: |
27+
.buildkite/publish-glide-loader.sh
28+
29+
- label: "Publish :picasso-loader"
30+
key: "publish-picasso-loader"
31+
depends_on:
32+
- "publish-aztec"
33+
plugins:
34+
- *publish-android-artifacts-docker-container
35+
command: |
36+
.buildkite/publish-picasso-loader.sh
37+
38+
- label: "Publish :wordpress-shortcodes"
39+
key: "publish-wordpress-shortcodes"
40+
depends_on:
41+
- "publish-aztec"
42+
plugins:
43+
- *publish-android-artifacts-docker-container
44+
command: |
45+
.buildkite/publish-wordpress-shortcodes.sh
46+
47+
- label: "Publish :wordpress-comments"
48+
key: "publish-wordpress-comments"
49+
depends_on:
50+
- "publish-aztec"
51+
plugins:
52+
- *publish-android-artifacts-docker-container
53+
command: |
54+
.buildkite/publish-wordpress-comments.sh

.buildkite/publish-aztec.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
./gradlew \
6+
:aztec:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
7+
:aztec:publish
8+
9+
# Add meta-data for the published version so we can use it in subsequent steps
10+
cat ./aztec/build/published-version.txt | buildkite-agent meta-data set "PUBLISHED_AZTEC_VERSION"

.buildkite/publish-glide-loader.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:glide-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:glide-loader:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:picasso-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:picasso-loader:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:wordpress-comments:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:wordpress-comments:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:wordpress-shortcodes:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:wordpress-shortcodes:publish

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ annotations/
4242
!/.idea/codeStyleSettings.xml
4343
!/.idea/encodings.xml
4444
!/.idea/copyright/
45-
!/.idea/compiler.xml
4645
# Enforce plugins
4746
!/.idea/externalDependencies.xml
4847

.idea/compiler.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android'
1+
plugins {
2+
id "com.android.application"
3+
id "org.jetbrains.kotlin.android"
4+
}
35

46
android {
57
compileSdkVersion 28
6-
buildToolsVersion '28.0.3'
78

89
defaultConfig {
910
applicationId "org.wordpress.aztec"
10-
minSdkVersion 16
11-
targetSdkVersion 28
11+
minSdkVersion commonMinSdkVersion
12+
targetSdkVersion commonTargetSdkVersion
1213
versionCode 1
1314
versionName "1.0"
1415
vectorDrawables.useSupportLibrary = true
@@ -39,7 +40,7 @@ dependencies {
3940
implementation project(':wordpress-comments')
4041
implementation project(':wordpress-shortcodes')
4142

42-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
43+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
4344

4445
implementation 'androidx.appcompat:appcompat:1.0.0'
4546
implementation "org.wordpress:utils:$wordpressUtilsVersion"
@@ -50,5 +51,4 @@ dependencies {
5051
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0', {
5152
exclude group: 'com.android.support', module: 'support-annotations'
5253
}
53-
androidTestImplementation('com.xamarin.testcloud:espresso-support:1.3')
5454
}
Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
package org.wordpress.aztec.demo
22

3+
import android.util.Log
34
import androidx.test.rule.GrantPermissionRule
45
import androidx.test.runner.AndroidJUnit4
5-
import com.xamarin.testcloud.espresso.Factory
6-
import com.xamarin.testcloud.espresso.ReportHelper
7-
import org.junit.Before
86
import org.junit.Rule
97
import org.junit.runner.RunWith
108

119
@RunWith(AndroidJUnit4::class)
1210
abstract class BaseTest {
13-
14-
@Rule
15-
@JvmField
16-
val mReportHelper: ReportHelper = Factory.getReportHelper()
17-
1811
@Rule
1912
@JvmField
2013
val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(android.Manifest.permission.CAMERA,
2114
android.Manifest.permission.WRITE_EXTERNAL_STORAGE)
2215

2316
companion object {
24-
private lateinit var reportHelper: ReportHelper
25-
2617
fun label(label: String) {
27-
reportHelper.label(label)
18+
Log.d("BaseTest", label)
2819
}
2920
}
30-
31-
init {
32-
BaseTest.reportHelper = mReportHelper
33-
}
34-
35-
@Before
36-
fun SetUp() {
37-
reportHelper.label("Starting App")
38-
}
3921
}

0 commit comments

Comments
 (0)