Skip to content

Commit 404210a

Browse files
committed
do not review: kokoro experiment
1 parent 32eefda commit 404210a

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

buildscripts/kokoro/cronet.sh

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,36 @@
33
set -exu -o pipefail
44
cat /VERSION
55

6-
cd ./github/grpc-java/cronet
7-
./cronet_deps.sh
8-
../gradlew --include-build .. build
6+
7+
${ANDROID_HOME}/tools/bin/apkanalyzer dex references app/build/outputs/apk/release/app-release-unsigned.apk
8+
9+
#cd ./github/grpc-java/cronet
10+
#./cronet_deps.sh
11+
#../gradlew --include-build .. build
12+
13+
#cd ../
14+
15+
export GRADLE_OPTS=-Xmx512m
16+
export PROTOBUF_VERSION=3.5.1
17+
export LDFLAGS=-L/tmp/protobuf/lib
18+
export CXXFLAGS=-I/tmp/protobuf/include
19+
export LD_LIBRARY_PATH=/tmp/protobuf/lib
20+
export OS_NAME=$(uname)
21+
22+
cd ./github/grpc-java
23+
24+
# Proto deps
25+
buildscripts/make_dependencies.sh
26+
ln -s "/tmp/protobuf-${PROTOBUF_VERSION}/$(uname -s)-$(uname -p)" /tmp/protobuf
27+
28+
./gradlew install
29+
30+
cd ./examples/android/helloworld
31+
32+
# Composite build can't find protoc-gen-grpc-java
33+
#../../../gradlew --include-build ../../.. build
34+
./gradlew build
35+
36+
${ANDROID_HOME}/tools/bin/apkanalyzer dex references app/build/outputs/apk/release/app-release-unsigned.apk
37+
38+

0 commit comments

Comments
 (0)