Skip to content

Commit

Permalink
buildscripts: Build android instrumentation tests in android CI
Browse files Browse the repository at this point in the history
Binder's :build was missing. Cronet build failed without specifying
Java 8 because of the transitive Guava dependency.
  • Loading branch information
ejona86 committed Aug 2, 2021
1 parent f781d24 commit 57bd087
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildscripts/kokoro/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ buildscripts/make_dependencies.sh
:grpc-android-interop-testing:build \
:grpc-android:build \
:grpc-cronet:build \
:grpc-binder:build \
assembleAndroidTest \
publishToMavenLocal

if [[ ! -z $(git status --porcelain) ]]; then
Expand Down
4 changes: 4 additions & 0 deletions cronet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ android {
consumerProguardFiles 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions { unitTests { includeAndroidResources = true } }
lintOptions { disable 'InvalidPackage' }
}
Expand Down

0 comments on commit 57bd087

Please sign in to comment.