Skip to content

Commit 0234dbd

Browse files
authored
Merge pull request #129 from wordpress-mobile/build/enable-non-transitive-resources
[Build] Enable Non-Transitive Resources
2 parents 20c490b + ff353f3 commit 0234dbd

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
plugins: *common_plugins
1818
command: |
1919
cp gradle.properties-example gradle.properties
20-
./gradlew lint checkstyle
20+
./gradlew lintRelease checkstyle
2121
artifact_paths:
2222
- "**/build/reports/lint-results.*"
2323
- "**/build/reports/checkstyle/checkstyle.*"
@@ -27,7 +27,7 @@ steps:
2727
plugins: *common_plugins
2828
command: |
2929
cp gradle.properties-example gradle.properties
30-
./gradlew test
30+
./gradlew testRelease
3131
3232
- label: "Build and upload to S3"
3333
depends_on:

WordPressUtils/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,17 @@ dependencies {
1919
implementation "org.greenrobot:eventbus:$eventBusVersion"
2020

2121
implementation "androidx.core:core-ktx:$androidxCoreVersion"
22-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$gradle.ext.kotlinVersion"
2322

2423
testImplementation "junit:junit:$junitVersion"
2524
testImplementation "org.assertj:assertj-core:$assertjVersion"
2625
testImplementation "org.robolectric:robolectric:$robolectricVersion"
2726
testImplementation "androidx.test:core:$androidxTestCoreVersion"
2827

2928
lintChecks "org.wordpress:lint:$wordpressLintVersion"
29+
3030
androidTestImplementation "androidx.test:runner:$androidxTestCoreVersion"
3131
androidTestImplementation "androidx.test:rules:$androidxTestCoreVersion"
3232
androidTestImplementation "androidx.test.ext:junit:$jUnitExtVersion"
33-
androidTestImplementation "com.android.support.test.uiautomator:uiautomator-v18:$uiAutomatorVersion"
34-
3533
}
3634

3735
android {

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ ext {
5050
androidxTestCoreVersion = '1.4.0'
5151
assertjVersion = '3.11.1'
5252
junitVersion = '4.12'
53-
jUnitExtVersion = '1.1.3'
5453
robolectricVersion = '4.9'
55-
uiAutomatorVersion = '2.1.2'
54+
55+
// android test
56+
jUnitExtVersion = '1.1.3'
5657
}

gradle.properties-example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
# WordPress-Utils-Android properties.
2+
13
android.useAndroidX=true
4+
android.enableJetifier=false
5+
6+
android.nonTransitiveRClass=true

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
pluginManagement {
22
gradle.ext.kotlinVersion = '1.6.10'
33
gradle.ext.agpVersion = '7.2.1'
4+
gradle.ext.automatticPublishToS3Version = '0.7.0'
45

56
plugins {
67
id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion
78
id "com.android.library" version gradle.ext.agpVersion
8-
id "com.automattic.android.publish-to-s3" version "0.7.0"
9+
id "com.automattic.android.publish-to-s3" version gradle.ext.automatticPublishToS3Version
910
}
1011
repositories {
1112
maven {

0 commit comments

Comments
 (0)