-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·28 lines (22 loc) · 967 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
echo -ne "\n\ncompiling\n"
gradle clean build
if [[ $? -ne 0 ]]; then
echo "compile failed"
exit
fi
# sign and align release
#jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/keystore/indefatigable.keystore build/outputs/apk/familyphotoframe-release-unsigned.apk indefatigable
#$ANDROID_HOME/build-tools/20.0.0/zipalign -v 4 build/outputs/apk/familyphotoframe-release-unsigned.apk build/outputs/apk/familyphotoframe-release.apk
echo -ne "\n\ntransferring to device\n"
adb install -r build/outputs/apk/FamilyPhotoFrame-debug.apk
if [[ $? -ne 0 ]]; then
echo -ne "transfer failed\n"
exit
fi
echo -ne "transfer successful, opening app\n"
adb shell am start -n app.familyphotoframe/.LoginActivity
# echo -ne "\n\nclearing log\n"
adb logcat -c
# echo -ne "\n\nreading log\n"
adb logcat *:E LoginActivity:I PhotoFrameActivity:I FlickrClient:D PhotoCollection:D ShowPlanner:I Display:I SleepCycle:I ShareHandler:I Glide:I